/* IA Marketing BR — design system
   Two visual systems (A: dark/galaxy, B: light/editorial) toggled via data-theme on <html>.
*/

:root {
  /* Categories — shared across both themes */
  --cat-ferramentas: #C97DFF;
  --cat-chatgpt: #7DD4FC;
  --cat-seo: #86EFAC;
  --cat-conteudo: #FCD34D;
  --cat-trafego: #F87171;
  --cat-estrategia: #FB923C;
  --cat-automacao: #E879F9;

  /* Reset/utility tokens */
  --max-w: 1400px;
  --pad-h: 36px;
}

/* ---------- THEME A: Dark / Galaxy ---------- */
html[data-theme="A"] {
  --bg: #000000;
  --bg-card: #0a0a0a;
  --bg-elev: #111111;
  --text: #FFFFFF;
  --text-sub: rgba(255,255,255,0.45);
  --text-mute: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.3);
  --accent: #C97DFF;
  --accent-2: rgba(255,200,90,0.9); /* gold ring color */
  --radius: 0px;
  --font-head: "Press Start 2P", "Pixelify Sans", monospace;
  --font-body: "Share Tech Mono", ui-monospace, monospace;
  --shadow-card: none;
  --cursor-default: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='0' y='0' width='2' height='2' fill='white'/><rect x='0' y='2' width='2' height='2' fill='white'/><rect x='2' y='2' width='2' height='2' fill='white'/><rect x='0' y='4' width='2' height='2' fill='white'/><rect x='2' y='4' width='2' height='2' fill='white'/><rect x='4' y='4' width='2' height='2' fill='white'/><rect x='0' y='6' width='2' height='2' fill='white'/><rect x='2' y='6' width='2' height='2' fill='white'/><rect x='4' y='6' width='2' height='2' fill='white'/><rect x='6' y='6' width='2' height='2' fill='white'/><rect x='0' y='8' width='2' height='2' fill='white'/><rect x='2' y='8' width='2' height='2' fill='white'/><rect x='4' y='8' width='2' height='2' fill='white'/><rect x='6' y='8' width='2' height='2' fill='white'/><rect x='8' y='8' width='2' height='2' fill='white'/><rect x='0' y='10' width='2' height='2' fill='white'/><rect x='2' y='10' width='2' height='2' fill='white'/><rect x='6' y='10' width='2' height='2' fill='white'/><rect x='8' y='10' width='2' height='2' fill='white'/><rect x='0' y='12' width='2' height='2' fill='white'/><rect x='8' y='12' width='2' height='2' fill='white'/></svg>") 0 0, auto;
  --cursor-pointer: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='0' y='0' width='2' height='2' fill='%23C97DFF'/><rect x='0' y='2' width='2' height='2' fill='%23C97DFF'/><rect x='2' y='2' width='2' height='2' fill='%23C97DFF'/><rect x='0' y='4' width='2' height='2' fill='%23C97DFF'/><rect x='2' y='4' width='2' height='2' fill='%23C97DFF'/><rect x='4' y='4' width='2' height='2' fill='%23C97DFF'/><rect x='0' y='6' width='2' height='2' fill='%23C97DFF'/><rect x='2' y='6' width='2' height='2' fill='%23C97DFF'/><rect x='4' y='6' width='2' height='2' fill='%23C97DFF'/><rect x='6' y='6' width='2' height='2' fill='%23C97DFF'/><rect x='0' y='8' width='2' height='2' fill='%23C97DFF'/><rect x='2' y='8' width='2' height='2' fill='%23C97DFF'/><rect x='4' y='8' width='2' height='2' fill='%23C97DFF'/><rect x='6' y='8' width='2' height='2' fill='%23C97DFF'/><rect x='8' y='8' width='2' height='2' fill='%23C97DFF'/><rect x='0' y='10' width='2' height='2' fill='%23C97DFF'/><rect x='2' y='10' width='2' height='2' fill='%23C97DFF'/><rect x='6' y='10' width='2' height='2' fill='%23C97DFF'/><rect x='8' y='10' width='2' height='2' fill='%23C97DFF'/><rect x='0' y='12' width='2' height='2' fill='%23C97DFF'/><rect x='8' y='12' width='2' height='2' fill='%23C97DFF'/></svg>") 0 0, pointer;
}

/* ---------- THEME B: Light / Editorial ---------- */
html[data-theme="B"] {
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-elev: #F4F7FF;
  --text: #111111;
  --text-sub: #555555;
  --text-mute: #333333;
  --border: #E2E8F4;
  --border-strong: #CBD5E1;
  --accent: #0F2A5E;
  --accent-2: #1E4DB7;
  --radius: 8px;
  --font-head: "Karla", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, sans-serif;
  --shadow-card: 0 1px 2px rgba(15,42,94,0.04);
  --cursor-default: auto;
  --cursor-pointer: pointer;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  cursor: var(--cursor-default);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[data-theme="A"] body { font-size: 16px; line-height: 1.6; }
html[data-theme="B"] body { font-size: 16px; line-height: 1.6; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: var(--cursor-pointer); }
img { max-width: 100%; height: auto; display: block; }

a, button, .clickable, .nav-link, .star-cat, .cta-btn, .cat-pill, .article-card, .nav-search, .ham-btn {
  cursor: var(--cursor-pointer);
}

@media (hover: none) {
  html, body, a, button { cursor: auto !important; }
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

@media (max-width: 1023px) { :root { --pad-h: 24px; } }
@media (max-width: 767px)  { :root { --pad-h: 16px; } }

/* ---------- Binary background (A only) ---------- */
.binary-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,0.045);
  letter-spacing: 1px;
  word-break: break-all;
  overflow: hidden;
  padding: 16px;
  user-select: none;
}
html[data-theme="B"] .binary-bg { display: none; }
html[data-fx-bg="off"] .binary-bg { display: none; }

/* ---------- Scanline (A only, desktop only) ---------- */
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
  animation: scan 10s linear infinite;
}
@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(720px); }
}
html[data-theme="B"] .scanline { display: none; }
html[data-fx-scan="off"] .scanline { display: none; }
@media (max-width: 767px) { .scanline { display: none; } }

/* ---------- Binary strip separator ---------- */
.binary-strip {
  font-family: var(--font-body);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
html[data-theme="B"] .binary-strip { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
html[data-theme="A"] .nav { background: rgba(0,0,0,0.85); }
html[data-theme="B"] .nav { background: rgba(255,255,255,0.92); box-shadow: 0 1px 0 var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad-h);
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  user-select: none;
}
.logo-main {
  font-family: var(--font-head);
}
html[data-theme="A"] .logo-main {
  font-size: 13px;
  letter-spacing: 0;
}
html[data-theme="B"] .logo-main {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.logo-main .letter {
  display: inline-block;
  transition: transform 0.18s ease, color 0.18s ease;
}
.logo-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-sub);
  font-family: var(--font-body);
}
html[data-theme="B"] .logo-sub { font-family: var(--font-body); font-size: 10px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
html[data-theme="A"] .nav-links { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
html[data-theme="B"] .nav-links { font-family: var(--font-body); font-size: 14px; font-weight: 500; }

.nav-link {
  position: relative;
  color: var(--text);
  transition: color 0.18s ease;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }
.nav-link::before {
  content: "_";
  opacity: 0;
  margin-left: 2px;
}
html[data-theme="A"] .nav-link:hover::before { opacity: 1; animation: blink 0.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: inherit;
  transition: background 0.18s ease, border-color 0.18s ease;
}
html[data-theme="A"] .nav-search { background: rgba(255,255,255,0.04); }
.nav-search:hover { border-color: var(--accent); }

.ham-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.ham-btn:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .ham-btn { display: inline-flex; }
}

/* ---------- Drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85vw;
  max-width: 320px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 20px;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-title {
  font-family: var(--font-head);
  font-size: 12px;
}
html[data-theme="B"] .drawer-title { font-size: 14px; font-weight: 700; }
.drawer-close {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 4px 8px;
  font-family: inherit;
  border-radius: var(--radius);
}
.drawer .nav-search { width: 100%; justify-content: flex-start; }
.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.drawer-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
html[data-theme="B"] .drawer-list li a { font-size: 15px; }
.drawer-list .cat-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.hero-inner {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .hero { padding: 36px 0 24px; }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-sub);
  margin: 0 0 18px;
  text-transform: lowercase;
}
html[data-theme="B"] .eyebrow { font-size: 12px; }

.h1 {
  margin: 0 0 22px;
  font-family: var(--font-head);
}
html[data-theme="A"] .h1 {
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0;
}
html[data-theme="B"] .h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
}
.h1 .word {
  display: inline-block;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
  cursor: var(--cursor-pointer);
}
.h1.has-hover .word:not(.hovered) { opacity: 0.45; }
.h1 .word.hovered { color: var(--accent); transform: translateY(-1px); }
.h1 .accent { color: var(--accent); }

@media (max-width: 767px) {
  html[data-theme="A"] .h1 { font-size: 14px; line-height: 1.6; }
  html[data-theme="B"] .h1 { font-size: 28px; }
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mute);
  max-width: 480px;
  margin: 0 0 28px;
}
html[data-theme="A"] .hero-sub { font-size: 14px; font-weight: 700; letter-spacing: 0.5px; }
@media (max-width: 767px) {
  .hero-sub { font-size: 14px; }
}

/* ---------- CTA button ---------- */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  overflow: hidden;
  white-space: nowrap;
  transition: color 0.25s ease;
}
html[data-theme="B"] .cta-btn {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-family: var(--font-head);
}
.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 0;
}
.cta-btn > * { position: relative; z-index: 1; }
.cta-btn:hover::before { transform: translateX(0); }
html[data-theme="A"] .cta-btn:hover { color: #000; }
html[data-theme="B"] .cta-btn:hover { color: white; }
html[data-theme="B"] .cta-btn:hover::before { background: #081A3D; }

/* ---------- Jupiter ---------- */
.jupiter-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.jupiter-canvas {
  position: relative;
  z-index: 2;
  display: block;
}
.rings-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}
html[data-theme="B"] .rings-canvas { opacity: 0.35; }

/* ---------- Categories row ---------- */
.cats-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cats-row {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 1199px) {
  .cats-row { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 767px) {
  .cats-row { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .cats-row { grid-template-columns: repeat(3, 1fr); }
}

.star-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 12px 6px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.star-cat canvas {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}
.star-cat:hover canvas {
  transform: scale(1.35);
  filter: brightness(2.4) drop-shadow(0 0 12px var(--cat-color));
}
.star-cat .label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cat-color);
  text-align: center;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}
html[data-theme="B"] .star-cat .label {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
@media (max-width: 480px) {
  .star-cat .label { font-size: 10px; }
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 24px;
  gap: 16px;
}
.section-title {
  margin: 0;
  font-family: var(--font-head);
}
html[data-theme="A"] .section-title { font-size: 14px; }
html[data-theme="B"] .section-title { font-size: 24px; font-weight: 700; }
.section-title .accent { color: var(--accent); }
.section-meta {
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 1px;
}
html[data-theme="B"] .section-meta { font-size: 13px; letter-spacing: 0; }

/* ---------- Featured article ---------- */
.featured-section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.featured-card:hover { border-color: var(--cat-color, var(--accent)); }
html[data-theme="B"] .featured-card { box-shadow: var(--shadow-card); }
html[data-theme="B"] .featured-card:hover { box-shadow: 0 4px 16px rgba(15,42,94,0.12); }

@media (max-width: 767px) {
  .featured-card { grid-template-columns: 1fr; }
}

.featured-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.featured-img, .article-img {
  width: 100%;
  height: 100%;
  display: block;
}

.featured-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 767px) { .featured-body { padding: 22px; } }

.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cat-color);
  text-transform: uppercase;
}
html[data-theme="B"] .cat-tag { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.cat-tag .mini-star {
  width: 14px; height: 14px;
  display: inline-block;
  flex-shrink: 0;
}

.article-title {
  margin: 0;
  font-family: var(--font-head);
}
html[data-theme="A"] .featured-body .article-title { font-size: 14px; line-height: 1.6; }
html[data-theme="B"] .featured-body .article-title { font-size: 26px; line-height: 1.2; font-weight: 700; }
.article-summary {
  margin: 0;
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.7;
}
html[data-theme="A"] .article-summary { font-weight: 700; }

.meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--text-sub);
  font-family: var(--font-body);
}
html[data-theme="B"] .meta-row { font-size: 13px; }
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-sub); }

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 6px;
  position: relative;
}
.read-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
.read-link:hover::after { width: 100%; }
.read-link .arrow { transition: transform 0.2s ease; }
.read-link:hover .arrow { transform: translateX(4px); }

/* ---------- Top 3 grid ---------- */
.top3-section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.top3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
html[data-theme="B"] .article-card { box-shadow: var(--shadow-card); }
.article-card:hover { border-color: var(--cat-color, var(--accent)); }
html[data-theme="B"] .article-card:hover { box-shadow: 0 4px 16px rgba(15,42,94,0.12); transform: translateY(-2px); }

.article-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.article-img-wrap > * {
  transition: transform 0.5s ease;
}
.article-card:hover .article-img-wrap > * { transform: scale(1.05); }

.article-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
html[data-theme="A"] .article-body .article-title { font-size: 12px; line-height: 1.6; }
html[data-theme="B"] .article-body .article-title { font-size: 18px; line-height: 1.3; font-weight: 700; }

.article-body .arrow-tail {
  margin-top: auto;
  color: var(--cat-color, var(--accent));
  font-size: 16px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 32px;
  background: var(--bg);
  color: var(--text-sub);
  position: relative;
}
html[data-theme="B"] .footer { background: var(--accent); color: rgba(255,255,255,0.85); }
html[data-theme="B"] .footer .footer-link { color: rgba(255,255,255,0.85); }
html[data-theme="B"] .footer a:hover { color: white; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.8fr;
  gap: 36px;
}
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--text);
}
html[data-theme="A"] .footer-col h4 { color: white; }
html[data-theme="B"] .footer-col h4 { color: white; font-size: 14px; font-weight: 700; }
.footer-tag {
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 2px;
  text-transform: lowercase;
  margin-top: 8px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.footer-link {
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-block;
}
.footer-link:hover { transform: translateX(4px); color: var(--accent); }
html[data-theme="B"] .footer-link:hover { color: white; }
.footer-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-sub);
  max-width: 420px;
}
html[data-theme="B"] .footer-disclaimer { color: rgba(255,255,255,0.7); font-size: 13px; }
.footer-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 1px;
}
html[data-theme="B"] .footer-copy { border-top-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.6); }

/* ============================================================
   TELAS 2-5 — Listagem, Categorias, Categoria, Artigo
   ============================================================ */

/* ---------- Subheader ---------- */
.subheader {
  border-bottom: 1px solid var(--border);
  padding: 36px 0 20px;
}
.subheader .container { display: flex; flex-direction: column; gap: 18px; }
.subheader-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.subheader h1 {
  margin: 0;
  font-family: var(--font-head);
}
html[data-theme="A"] .subheader h1 { font-size: 18px; }
html[data-theme="B"] .subheader h1 { font-size: 32px; font-weight: 700; }
.subheader .count {
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 1px;
}

/* Pills filter */
.pills-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.pills-row::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--cat-color, var(--border-strong));
  background: transparent;
  color: var(--cat-color, var(--text));
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
html[data-theme="B"] .cat-pill { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; border-radius: 999px; }
.cat-pill:hover, .cat-pill.active {
  background: var(--cat-color, var(--accent));
  color: #000;
}
html[data-theme="B"] .cat-pill:hover,
html[data-theme="B"] .cat-pill.active { color: white; }
.cat-pill.all {
  --cat-color: var(--accent);
}
html[data-theme="A"] .cat-pill.all { color: var(--text); border-color: var(--border-strong); }
html[data-theme="B"] .cat-pill.all { color: var(--accent); border-color: var(--border-strong); }
.cat-pill.all.active, .cat-pill.all:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
html[data-theme="B"] .cat-pill.all.active,
html[data-theme="B"] .cat-pill.all:hover { color: white; }

.sort-toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.sort-toggle button {
  background: transparent;
  border: none;
  padding: 8px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
html[data-theme="B"] .sort-toggle button { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.sort-toggle button.active {
  background: var(--accent);
  color: var(--bg);
}
html[data-theme="B"] .sort-toggle button.active { color: white; }

/* ---------- Articles grid ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.articles-section { padding: 40px 0 64px; }

.empty-state {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--border-strong);
}
.empty-state pre {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--cat-color, var(--accent));
  white-space: pre;
  line-height: 1.2;
}
.empty-state p {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
}

/* ---------- Hero reduzido (Tela 3) ---------- */
.hero-mini {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero-mini .h1 { max-width: 720px; margin-bottom: 16px; }
.hero-mini .hero-sub { max-width: 680px; }

/* ---------- Categories grid (Tela 3) ---------- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 48px 0 80px;
}
@media (max-width: 1023px) { .cats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cats-grid { grid-template-columns: 1fr; } }

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--cat-color, var(--border));
  border-color: color-mix(in srgb, var(--cat-color) 30%, transparent);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
html[data-theme="B"] .cat-card { border-color: var(--border); background: white; }
.cat-card:hover {
  border-color: var(--cat-color, var(--accent));
  transform: scale(1.02);
  box-shadow: 0 0 24px color-mix(in srgb, var(--cat-color) 30%, transparent);
}
html[data-theme="B"] .cat-card:hover {
  background: color-mix(in srgb, var(--cat-color) 6%, white);
  box-shadow: 0 4px 16px rgba(15,42,94,0.08);
}
.cat-card h3 {
  margin: 4px 0 0;
  font-family: var(--font-head);
  color: var(--cat-color);
}
html[data-theme="A"] .cat-card h3 { font-size: 13px; }
html[data-theme="B"] .cat-card h3 { font-size: 20px; font-weight: 700; }
.cat-card .cat-count {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 1px;
}
.cat-card .cat-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 4px 0 16px;
  min-height: 40px;
}
.cat-card .explore {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cat-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html[data-theme="B"] .cat-card .explore { font-size: 13px; text-transform: none; letter-spacing: 0; }
.cat-card:hover .explore { transform: translateX(2px); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 18px 0 6px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
html[data-theme="B"] .breadcrumb { font-size: 13px; text-transform: none; letter-spacing: 0; }
.breadcrumb a { color: var(--text-sub); transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .here { color: var(--text); }

/* ---------- Hero de categoria (Tela 4) ---------- */
.cat-hero {
  position: relative;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}
html[data-theme="B"] .cat-hero {
  background: var(--bg-elev);
  border-bottom: 2px solid var(--cat-color, var(--accent));
}
.cat-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.cat-hero h1 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--cat-color);
}
html[data-theme="A"] .cat-hero h1 { font-size: 22px; }
html[data-theme="B"] .cat-hero h1 { font-size: 40px; font-weight: 700; }
.cat-hero .cat-hero-desc {
  max-width: 600px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mute);
}
html[data-theme="A"] .cat-hero .cat-hero-desc { font-weight: 700; }

/* particles bg */
.cat-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1px;
  color: color-mix(in srgb, var(--cat-color) 50%, transparent);
  opacity: 0.06;
  word-break: break-all;
  overflow: hidden;
  padding: 16px;
  user-select: none;
}
html[data-theme="B"] .cat-particles { display: none; }

/* ---------- Page with sidebar (Tela 4, Tela 5) ---------- */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 40px 0 80px;
}
@media (max-width: 1023px) {
  .page-with-sidebar { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { order: 2; }
}

.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 88px; align-self: start; }
.sidebar-block {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 20px 18px;
  border-radius: var(--radius);
}
html[data-theme="B"] .sidebar-block { box-shadow: var(--shadow-card); }
.sidebar-block h4 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 1px;
}
html[data-theme="B"] .sidebar-block h4 { font-size: 13px; color: var(--text); font-weight: 700; }
.sidebar-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar-cats a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--cat-color);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  transition: padding 0.15s ease;
}
html[data-theme="B"] .sidebar-cats a { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.sidebar-cats a:hover { padding-left: 8px; }
.sidebar-cats a:last-child { border-bottom: none; }

.sidebar-top { display: flex; flex-direction: column; gap: 14px; }
.sidebar-top-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-top-item:last-child { border-bottom: none; }
.sidebar-top-item .cat-tag { font-size: 10px; }
.sidebar-top-item .title {
  font-family: var(--font-head);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text);
}
html[data-theme="B"] .sidebar-top-item .title { font-size: 14px; font-weight: 700; font-family: var(--font-head); line-height: 1.3; }

.sidebar-toc {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-body);
  font-size: 12px;
}
html[data-theme="B"] .sidebar-toc { font-size: 13px; }
.sidebar-toc a {
  display: block;
  padding: 8px 0 8px 12px;
  border-left: 2px solid var(--border);
  color: var(--text-mute);
  transition: border-color 0.15s ease, color 0.15s ease, padding 0.15s ease;
}
.sidebar-toc a:hover, .sidebar-toc a.active {
  border-left-color: var(--accent);
  color: var(--accent);
  padding-left: 16px;
}

/* ---------- Article body (Tela 5) ---------- */
.article-page {
  display: flex;
  flex-direction: column;
}
.article-head {
  padding: 28px 0 32px;
}
.article-head h1 {
  margin: 14px 0 14px;
  font-family: var(--font-head);
  max-width: 820px;
}
html[data-theme="A"] .article-head h1 { font-size: 22px; line-height: 1.5; }
html[data-theme="B"] .article-head h1 { font-size: 40px; line-height: 1.15; font-weight: 700; }
@media (max-width: 767px) {
  html[data-theme="A"] .article-head h1 { font-size: 16px; }
  html[data-theme="B"] .article-head h1 { font-size: 28px; }
}
.article-head .lede {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 720px;
}
html[data-theme="A"] .article-head .lede { font-weight: 700; }

.article-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 820px;
  margin: 0 0 36px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-body-wrap {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
html[data-theme="A"] .article-body-wrap p,
html[data-theme="A"] .article-body-wrap li {
  font-family: var(--font-body);
}
.article-body-wrap p {
  margin: 0 0 22px;
  transition: opacity 0.2s ease;
}
.article-body-wrap h2 {
  margin: 40px 0 18px;
  font-family: var(--font-head);
  position: relative;
  display: inline-block;
}
html[data-theme="A"] .article-body-wrap h2 { font-size: 16px; line-height: 1.5; }
html[data-theme="B"] .article-body-wrap h2 { font-size: 26px; font-weight: 700; line-height: 1.25; }
.article-body-wrap h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.35s ease;
}
.article-body-wrap h2:hover::after { width: 100%; }
.article-body-wrap h3 {
  margin: 28px 0 12px;
  font-family: var(--font-head);
}
html[data-theme="A"] .article-body-wrap h3 { font-size: 13px; }
html[data-theme="B"] .article-body-wrap h3 { font-size: 20px; font-weight: 700; }
.article-body-wrap a {
  color: var(--accent);
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.article-body-wrap a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
.article-body-wrap a:hover::after { width: 100%; }
.article-body-wrap a:hover { text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 50%, transparent); }
.article-body-wrap ul, .article-body-wrap ol { padding-left: 24px; margin: 0 0 22px; }
.article-body-wrap li { margin: 0 0 8px; }
.article-body-wrap blockquote {
  margin: 28px 0;
  padding: 12px 0 12px 20px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--text-mute);
}

/* Affiliate block */
.affiliate-block {
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--cat-color, var(--accent));
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
@media (max-width: 600px) {
  .affiliate-block { grid-template-columns: 1fr; text-align: left; }
}
.affiliate-block .badge {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.affiliate-block .product {
  font-family: var(--font-head);
  margin: 0 0 6px;
}
html[data-theme="A"] .affiliate-block .product { font-size: 13px; }
html[data-theme="B"] .affiliate-block .product { font-size: 18px; font-weight: 700; }
.affiliate-block .desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mute);
}
.affiliate-block .logo {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 18px;
  background: var(--bg);
  border: 1px solid var(--cat-color, var(--accent));
  color: var(--cat-color, var(--accent));
}

/* Comparative table */
.comparative-wrap {
  margin: 36px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
}
.comparative {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
  min-width: 540px;
}
html[data-theme="B"] .comparative { font-size: 14px; }
.comparative th, .comparative td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-left-color 0.15s ease;
}
.comparative th {
  background: var(--bg-elev);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}
html[data-theme="B"] .comparative th { font-size: 12px; }
.comparative tr:hover td {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-left-color: var(--accent);
}
.comparative .check { color: var(--accent); font-weight: 700; }
.comparative .miss  { color: var(--text-sub); }

/* FAQ */
.faq-section { margin: 48px 0 36px; }
.faq-section h2 {
  margin: 0 0 16px;
  font-family: var(--font-head);
}
html[data-theme="A"] .faq-section h2 { font-size: 16px; }
html[data-theme="B"] .faq-section h2 { font-size: 24px; font-weight: 700; }
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 18px 0;
  font-family: var(--font-head);
  cursor: var(--cursor-pointer);
  transition: color 0.15s ease;
}
html[data-theme="A"] .faq-q { font-size: 12px; line-height: 1.5; }
html[data-theme="B"] .faq-q { font-size: 17px; font-weight: 700; font-family: var(--font-head); }
.faq-q:hover { color: var(--accent); }
.faq-q .icon {
  font-family: var(--font-body);
  font-size: 18px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 18px; }
.faq-a p { margin: 0; color: var(--text-mute); font-size: 14px; line-height: 1.7; }

/* "Veja também" */
.see-also { margin: 48px 0 16px; }
.see-also h2 {
  margin: 0 0 18px;
  font-family: var(--font-head);
}
html[data-theme="A"] .see-also h2 { font-size: 14px; }
html[data-theme="B"] .see-also h2 { font-size: 22px; font-weight: 700; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   REFINOS — busca, transição de tela, entrada do Júpiter
   ============================================================ */

/* Screen transition — note: NO fill-mode "both" so resting state stays visible
   even if the animation never fires (background tab, reduced contexts). */
.screen-anim {
  animation: screenIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Júpiter entrance — compositor-only props (opacity + transform); NO filter/blur
   because the canvas repaints every frame and animating blur on it janks badly. */
.jupiter-wrap .jupiter-canvas {
  animation: jupIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}
.jupiter-wrap .rings-canvas {
  animation: ringsIn 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s;
  will-change: transform, opacity;
}
@keyframes jupIn {
  from { opacity: 0; transform: scale(0.78); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ringsIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7) rotate(-8deg); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}
html[data-theme="B"] .jupiter-wrap .rings-canvas {
  animation: ringsInB 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s;
}
@keyframes ringsInB {
  from { opacity: 0.1; transform: translate(-50%, -50%) scale(0.7) rotate(-8deg); }
  to   { opacity: 0.35; transform: translate(-50%, -50%) scale(1) rotate(0); }
}

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12vh 20px 40px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
html[data-theme="B"] .search-overlay { background: rgba(255,255,255,0.9); }
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-box {
  width: 100%;
  max-width: 680px;
  transform: translateY(-10px);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.search-overlay.open .search-box { transform: translateY(0); }

.search-field {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--accent);
  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: var(--radius);
}
.search-field svg { color: var(--accent); flex-shrink: 0; }
.search-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: 0.5px;
}
html[data-theme="B"] .search-field input { font-family: var(--font-body); }
.search-field input::placeholder { color: var(--text-sub); }
.search-field .esc {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-sub);
  border: 1px solid var(--border-strong);
  padding: 4px 8px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.search-hint {
  margin: 14px 4px 0;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-sub);
  text-transform: uppercase;
}
html[data-theme="B"] .search-hint { text-transform: none; letter-spacing: 0; font-size: 13px; }

.search-results {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 52vh;
  overflow-y: auto;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease, padding 0.15s ease;
  text-align: left;
}
.search-result:hover, .search-result.active {
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 10%, transparent);
  padding-left: 18px;
}
.search-result .sr-body { flex: 1; min-width: 0; }
.search-result .sr-cat {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cat-color);
  margin-bottom: 4px;
}
html[data-theme="B"] .search-result .sr-cat { text-transform: none; letter-spacing: 0; font-size: 12px; }
.search-result .sr-title {
  font-family: var(--font-head);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-theme="A"] .search-result .sr-title { font-size: 11px; line-height: 1.4; }
html[data-theme="B"] .search-result .sr-title { font-size: 16px; font-weight: 700; }
.search-result .sr-arrow { color: var(--cat-color, var(--accent)); flex-shrink: 0; }
.search-result mark {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  padding: 0 1px;
}

.search-empty {
  padding: 40px 12px;
  text-align: center;
  color: var(--text-sub);
  font-family: var(--font-body);
  font-size: 13px;
}

/* ---------- Skeleton loading ---------- */
.skeleton-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.skeleton-card .sk-img { aspect-ratio: 16 / 9; }
.skeleton-card .sk-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.sk-line { height: 12px; border-radius: 3px; }
.sk-line.short { width: 40%; }
.sk-line.med { width: 75%; }
.sk-line.full { width: 100%; }
.sk-line.title { height: 16px; }
.skel {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
html[data-theme="A"] .skel::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
  padding: 60px 20px;
  position: relative;
}
.nf-ascii {
  font-family: var(--font-body);
  white-space: pre;
  line-height: 1.15;
  color: var(--accent);
  font-size: 12px;
  margin: 0;
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent);
}
@media (max-width: 600px) { .nf-ascii { font-size: 8px; } }
.nf-code {
  font-family: var(--font-head);
  font-size: 40px;
  margin: 0;
  letter-spacing: 4px;
  color: var(--text);
}
html[data-theme="B"] .nf-code { font-size: 56px; font-weight: 700; }
.nf-msg {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-mute);
  max-width: 440px;
  margin: 0;
  line-height: 1.7;
}
html[data-theme="A"] .nf-msg { font-weight: 700; }
.nf-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 18px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
html[data-theme="B"] .back-top { box-shadow: 0 4px 14px rgba(15,42,94,0.18); }
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: var(--accent); color: var(--bg); }
html[data-theme="B"] .back-top:hover { color: white; }
@media (max-width: 600px) { .back-top { right: 14px; bottom: 14px; } }

/* Tweaks open button */
#tweaks-open-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147483645;
  background: rgba(30,30,30,0.92);
  color: #C97DFF;
  border: 1px solid #C97DFF;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.18s ease, color 0.18s ease;
}
#tweaks-open-btn:hover {
  background: #C97DFF;
  color: #000;
}

/* ─── Card só-texto (Top3 da Home) ─────────────────────── */
.article-card--text {
  position: relative;
  padding-top: 6px;
}
.article-card--text::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 32%;
  height: 5px;
  background: var(--cat-color, var(--accent));
  transition: width 0.3s ease;
}
.article-card--text:hover::before { width: 100%; }
.article-card--text .article-body {
  padding: 24px 22px 24px;
  gap: 12px;
}
.article-card--text .article-summary {
  font-size: 14px;
  line-height: 1.7;
}
