/* NAVEBLOG: estilos compartilhados pela página do blog e pelos artigos */
:root {
  --navy-1: #0a1a36; --navy-2: #06122a;
  --gold: #d9a441; --gold-soft: #e9c27a; --gold-pale: #f7e2a6;
  --white: #ffffff; --muted: rgba(255,255,255,.80);
  --line: rgba(217,164,65,.35); --card: rgba(255,255,255,.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif; color: var(--white);
  background: linear-gradient(170deg, var(--navy-1), var(--navy-2) 70%);
  min-height: 100vh; line-height: 1.65; font-size: 18px; overflow-x: hidden;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 780px; }
.eyebrow { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* Cabeçalho */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(6,18,42,.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.07); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
header.top img { height: 44px; width: auto; display: block; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--muted); padding: 10px 14px; border-radius: 999px; transition: .2s; }
nav.main a:hover { color: var(--gold-soft); }
nav.main a.active { color: var(--navy-2); background: linear-gradient(180deg, var(--gold-pale), var(--gold)); }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 20; background: linear-gradient(90deg, var(--gold-pale), var(--gold)); }

.btn { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: var(--navy-2); font-weight: 800; padding: 14px 26px; border-radius: 999px; text-decoration: none; font-size: 16px; box-shadow: 0 10px 30px rgba(217,164,65,.22); }
.tag { display: inline-block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-2); background: linear-gradient(180deg, var(--gold-pale), var(--gold)); padding: 5px 11px; border-radius: 999px; font-weight: 800; }
.tag.soft { background: transparent; color: var(--gold-soft); border: 1px solid var(--line); }
.meta { color: rgba(255,255,255,.62); font-size: 14px; }

/* Página do blog */
.blog-hero { position: relative; padding: 84px 0 64px; text-align: center; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.07); background:
  radial-gradient(ellipse at 20% 0%, rgba(42,90,160,.55), transparent 55%),
  radial-gradient(ellipse at 90% 100%, rgba(217,164,65,.22), transparent 55%),
  linear-gradient(160deg, #0b2250, var(--navy-2)); }
.blog-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.blog-hero .wrap { position: relative; z-index: 2; }
.hero-scan { position: absolute; inset: -12px; z-index: 0; filter: blur(2.5px); opacity: .8; pointer-events: none; }
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  radial-gradient(ellipse 62% 70% at 50% 50%, rgba(6,18,42,.6), rgba(6,18,42,.24) 60%, transparent 100%),
  linear-gradient(180deg, transparent 70%, rgba(6,18,42,.6)); }
.scanner-container { overflow: hidden; }
.scanner-canvas, .tech-text-canvas { display: block; width: 100%; height: 100%; }
.tech-text { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.blog-hero h1 { font-size: clamp(44px, 8vw, 84px); font-weight: 900; letter-spacing: -.02em; line-height: 1; margin-top: 14px; }
.blog-hero h1 span { color: #e2b254; }
.nb-title { display: none; height: clamp(120px, 21vw, 230px); margin: -6px 0 -14px; color: #fff; font-weight: 900; }
.tt-on .nb-title { display: block; }
.tt-on #nb-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.blog-hero p { color: var(--white); font-size: 20px; max-width: 760px; margin: 20px auto 0; text-shadow: 0 2px 14px rgba(6,18,42,.9); }

.blog-main { padding: 56px 0 30px; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { display: flex; flex-direction: column; gap: 12px; text-decoration: none; border: 1px solid rgba(255,255,255,.1); background: var(--card); border-radius: 20px; padding: 26px; transition: transform .25s, border-color .25s, background .25s; }
.post:hover, .post:focus-visible { transform: translateY(-4px); border-color: var(--gold); background: rgba(217,164,65,.07); outline: none; }
.post[hidden] { display: none; }
.post h2 { font-size: 21px; line-height: 1.3; font-weight: 800; }
.post p { color: var(--muted); font-size: 16px; }
.post .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.post .more { margin-top: auto; color: var(--gold-soft); font-weight: 800; font-size: 15px; }

/* Lista de notícias + lateral */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.status { color: var(--gold-pale); font-weight: 700; font-size: 16px; }
.status:not(:empty) { margin-bottom: 18px; }
.feed { display: grid; gap: 20px; }
.item { display: block; text-decoration: none; border: 1px solid rgba(255,255,255,.1); background: var(--card); border-radius: 20px; padding: 26px 28px 24px; transition: transform .25s, border-color .25s, background .25s; }
.item:hover, .item:focus-visible { transform: translateY(-3px); border-color: var(--gold); background: rgba(217,164,65,.07); outline: none; }
.item[hidden] { display: none; }
.item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.date { flex: none; display: grid; justify-items: center; line-height: 1.1; margin: -26px 0 0; padding: 10px 12px 9px; border-radius: 0 0 12px 12px; background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: var(--navy-2); }
.date small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.date b { font-size: 24px; font-weight: 900; margin: 2px 0; }
.item h2 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.25; font-weight: 800; margin-top: 4px; max-width: 640px; }
.item .excerpt, .item .hit { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 640px; }
.item .hit[hidden], .item .excerpt[hidden] { display: none; }
.item mark { background: rgba(217,164,65,.32); color: var(--white); border-radius: 4px; padding: 0 3px; }
.item-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.item .more { color: var(--gold-soft); font-weight: 800; font-size: 15px; }

.side { display: grid; gap: 20px; position: sticky; top: 96px; }
.side-box { border: 1px solid rgba(255,255,255,.1); background: var(--card); border-radius: 20px; padding: 22px; }
.side-box h2, .side-box label { display: block; font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.side-box small { display: block; margin-top: 10px; color: rgba(255,255,255,.6); font-size: 13px; }
.search { position: relative; }
.search input { width: 100%; font: inherit; font-size: 16px; color: var(--white); background: rgba(6,18,42,.6); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 42px 12px 14px; }
.search input::placeholder { color: rgba(255,255,255,.5); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,.2); }
.search svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; fill: none; stroke: var(--gold-soft); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.cats { list-style: none; display: grid; gap: 4px; }
.cats button { width: 100%; display: flex; justify-content: space-between; gap: 10px; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: left; cursor: pointer; color: var(--muted); background: transparent; border: 0; border-radius: 10px; padding: 9px 10px; transition: .2s; }
.cats button:hover { color: var(--gold-soft); background: rgba(255,255,255,.05); }
.cats button[aria-pressed="true"] { color: var(--navy-2); background: linear-gradient(180deg, var(--gold-pale), var(--gold)); }
.cats .n { opacity: .7; font-weight: 700; }

/* Artigo */
.art-head { padding: 56px 0 10px; }
.crumb { font-size: 15px; font-weight: 700; color: var(--gold-soft); text-decoration: none; }
.crumb:hover { text-decoration: underline; }
.art-head h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; font-weight: 900; letter-spacing: -.01em; margin: 18px 0 14px; }
.art-head .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.art-head .deck { color: var(--muted); font-size: 20px; }

article.art { padding: 20px 0 30px; }
article.art h2 { font-size: clamp(23px, 3vw, 28px); line-height: 1.25; font-weight: 800; margin-top: 44px; }
article.art p { color: var(--muted); margin-top: 14px; }
article.art strong { color: var(--gold-soft); font-weight: 700; }
article.art p a, article.art li a { color: var(--gold-soft); }
article.art sup a { text-decoration: none; font-weight: 800; padding: 0 2px; }

.tldr { margin-top: 26px; border: 1px solid var(--gold); border-radius: 20px; padding: 24px 26px; background: rgba(217,164,65,.08); }
.tldr h2 { margin-top: 0 !important; font-size: 14px !important; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.tldr ul { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.tldr li { position: relative; padding-left: 24px; color: var(--white); }
.tldr li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

.example { margin-top: 22px; border: 1px dashed var(--line); border-radius: 18px; padding: 22px 24px; background: rgba(42,90,160,.16); }
.example .label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.example table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 16px; }
.example td { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--muted); }
.example td:last-child { text-align: right; color: var(--white); font-weight: 700; white-space: nowrap; padding-left: 14px; }
.example tr.total td { border-bottom: 0; color: var(--gold-pale); font-weight: 800; }
.example p.note { font-size: 15px; margin-top: 12px; }

.todo { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.todo li { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--muted); }
.todo li::before { content: "✓"; flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: var(--navy-2); font-weight: 900; font-size: 14px; margin-top: 2px; }

.sources { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; }
.sources h2 { margin-top: 0 !important; font-size: 14px !important; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.sources ol { margin: 14px 0 0 22px; display: grid; gap: 10px; font-size: 16px; color: var(--muted); }
.sources li::marker { color: var(--gold-soft); font-weight: 800; }
.sources .checked { font-size: 14px; color: rgba(255,255,255,.6); }

.cta { margin-top: 48px; text-align: center; border: 1px solid var(--line); border-radius: 22px; padding: 36px 26px; background: var(--card); }
.cta h3 { font-size: 24px; font-weight: 800; }
.cta p { max-width: 540px; margin: 10px auto 22px !important; }
.also { margin-top: 44px; }
.also .posts { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.also .post h2 { font-size: 18px; margin-top: 0; }

footer { border-top: 1px solid rgba(255,255,255,.07); padding: 36px 0 52px; margin-top: 50px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer img { height: 40px; width: auto; }
footer small { display: block; margin-top: 12px; max-width: 560px; color: rgba(255,255,255,.6); font-size: 14px; }
.back { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--gold-soft); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; }
.back:hover { background: rgba(217,164,65,.1); }

@media (max-width: 860px) {
  .posts { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .side { position: static; order: -1; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .posts, .also .posts { grid-template-columns: 1fr; }
  .blog-hero { padding: 60px 0 48px; }
  .post { padding: 22px; }
  .item { padding: 22px 20px 20px; }
  .date { margin-top: -22px; }
  nav.main a { padding: 8px 10px; font-size: 14px; }
  header.top img { height: 38px; }
  .tldr, .example { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post, .item { transition: none; }
  .post:hover, .item:hover { transform: none; }
}

/* ---------- Blocos do editor (posts do WordPress) ---------- */
.nb-content > :first-child { margin-top: 26px; }
.nb-content figure { margin: 0; }
.nb-content ul:not(.nb-todo), .nb-content ol { margin: 14px 0 0 22px; color: var(--muted); display: grid; gap: 8px; }
.nb-content img { max-width: 100%; height: auto; border-radius: 14px; }
article.art .nb-tldr { margin-top: 26px; border: 1px solid var(--gold); border-radius: 20px; padding: 24px 26px; background: rgba(217,164,65,.08); }
article.art .nb-tldr h2 { margin-top: 0; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
article.art .nb-tldr ul { list-style: none; margin: 12px 0 0; display: grid; gap: 10px; }
article.art .nb-tldr li { position: relative; padding-left: 24px; color: var(--white); }
article.art .nb-tldr li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
article.art .nb-example { margin-top: 22px; border: 1px dashed var(--line); border-radius: 18px; padding: 22px 24px; background: rgba(42,90,160,.16); }
article.art .nb-example .nb-label { margin-top: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
article.art .nb-example .wp-block-table { margin-top: 12px; overflow-x: auto; }
article.art .nb-example table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 16px; border: 0; }
article.art .nb-example thead { border: 0; }
article.art .nb-example td, article.art .nb-example th { padding: 9px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--muted); text-align: left; background: none; }
article.art .nb-example td:last-child { text-align: right; color: var(--white); font-weight: 700; white-space: nowrap; padding-left: 14px; }
article.art .nb-example tr:last-child td { border-bottom: 0; color: var(--gold-pale); font-weight: 800; }
article.art .nb-example .nb-note { font-size: 15px; margin-top: 12px; }
article.art ul.nb-todo { list-style: none; margin: 18px 0 0; display: grid; gap: 12px; }
article.art ul.nb-todo li { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--muted); }
article.art ul.nb-todo li::before { content: "✓"; flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: var(--navy-2); font-weight: 900; font-size: 14px; margin-top: 2px; }
article.art .nb-sources { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; }
article.art .nb-sources h2 { margin-top: 0; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
article.art .nb-sources ol { margin: 14px 0 0 22px; display: grid; gap: 10px; font-size: 16px; color: var(--muted); }
article.art .nb-sources li::marker { color: var(--gold-soft); font-weight: 800; }
article.art .nb-checked { font-size: 14px; color: rgba(255,255,255,.6); }
article.art .wp-block-footnotes { margin: 30px 0 0 22px; font-size: 15px; color: var(--muted); }
body.naveblog-artigo { margin: 0; }

/* Celular: menu numa linha só, com rolagem lateral */
@media (max-width: 620px) {
  header.top .wrap { gap: 8px; padding-top: 10px; padding-bottom: 6px; }
  header.top img { height: 34px; }
  nav.main { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 44px); margin: 0 -22px; padding: 0 22px 4px; scrollbar-width: none; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { flex: none; }
}
