/* ==========================================================================
   The Developer's Life — tema "newdev" (redesign 2026)
   Minimalista + editorial + cultura dev. Ver axethemes/REDESIGN-NEWDEV.md
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --surface: #ffffff;
  --stage: #f2f2f4;
  --text: #111111;
  --text-2: #3f3f46;
  --muted: #71717a;
  --border: #e6e6ea;
  --accent: #6d4aff;
  --accent-hover: #5935f0;
  --accent-soft: #f0ecff;
  --accent-ink: #ffffff;
  --cta: #ffd23f;
  --cta-hover: #ffc61a;
  --cta-ink: #111111;
  --grid-line: rgba(17, 17, 17, 0.055);
  --transcricao-bg: #fffbea;
  --transcricao-border: #f1e3a6;
  --transcricao-text: #3b3415;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05);
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px rgba(17, 17, 17, 0.07);
  --shadow-lg: 0 2px 6px rgba(17, 17, 17, 0.05), 0 24px 48px rgba(17, 17, 17, 0.12);

  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-brand: 'Space Mono', ui-monospace, Menlo, Consolas, monospace; /* mesma pegada do logo */
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

  --bar-h: 64px;
  color-scheme: light;
}

html[data-theme='dark'] {
  --bg: #0d0d10;
  --bg-soft: #131317;
  --surface: #17171c;
  --stage: #1e1e25;
  --text: #ededf0;
  --text-2: #c7c7cf;
  --muted: #8f8f9b;
  --border: #29292f;
  --accent: #a08bff;
  --accent-hover: #b8a8ff;
  --accent-soft: #231d3f;
  --accent-ink: #0d0d10;
  --grid-line: rgba(255, 255, 255, 0.045);
  --transcricao-bg: #1c1a10;
  --transcricao-border: #3d3820;
  --transcricao-text: #ece3b5;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 48px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; border: 0; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }

pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.5;
}

blockquote {
  margin: 0 0 1.2em;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--text-2);
  font-style: italic;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

table { border-collapse: collapse; max-width: 100%; }
td, th { border: 1px solid var(--border); padding: 6px 10px; }

input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[type="checkbox"], input[type="radio"] { padding: 0; width: auto; accent-color: var(--accent); }
textarea { min-height: 100px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

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

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--accent-ink); }

.js-only { display: none !important; }
html.js .js-only { display: inline-flex !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow a { color: inherit; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: 600 0.95rem/1.2 var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { color: var(--text); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }

.btn-cta { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--cta-ink); }

.btn-ghost { background: transparent; }

.btn-sm { padding: 6px 12px; font-size: 0.82rem; border-radius: var(--radius-sm); }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 0.68rem/18px var(--font-sans);
  text-align: center;
}

/* ---------- Chips (tags) ---------- */
.chip, .card-tags a, .tag-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font: 500 0.82rem/1.2 var(--font-sans);
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover, .card-tags a:hover, .tag-list a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.chip span { color: var(--muted); font-size: 0.75rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-lg .chip { font-size: 0.92rem; padding: 7px 14px; }

/* As tags vêm do axe como "<a>x</a>, <a>y</a>": esconde as vírgulas */
.card-tags, .tag-list { font-size: 0; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Header ---------- */
/* Barra preta fixa, nos dois temas, com o logo animado clássico do site */
.site-header {
  --header-h: 150px;
  background: #000;
  color: #f2f2f2;
  border-bottom: 3px solid var(--accent);
}

.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; flex-shrink: 0; height: 100%; }
.brand img { display: block; height: 100%; width: auto; }
html[data-theme='dark'] .footer-brand img { filter: invert(1); }

.main-nav { flex: 1; min-width: 0; }
.main-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
/* cantoneiras iguais às do logo aparecem no hover e no item ativo */
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  color: #d6d6d6;
  white-space: nowrap;
  font: 700 0.92rem/1.2 var(--font-brand);
  letter-spacing: 0.02em;
}
.main-nav a::before,
.main-nav a::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 0 solid currentColor;
  opacity: 0;
  transition: opacity 0.15s;
}
.main-nav a::before { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.main-nav a::after { right: 0; bottom: 0; border-bottom-width: 2px; border-right-width: 2px; }
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a:hover::before, .main-nav a:hover::after,
.main-nav a.is-active::before, .main-nav a.is-active::after { opacity: 1; }
.main-nav .nav-apoie { color: var(--cta); }
.main-nav .nav-apoie:hover { color: var(--cta); }
.main-nav .nav-apoie span { margin-right: 6px; }

.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header .icon-btn { background: transparent; border-color: #3a3a3a; color: #d6d6d6; }
.site-header .icon-btn:hover { border-color: #fff; color: #fff; }
.lang-link { font: 700 0.8rem/1 var(--font-brand); color: #9a9a9a; padding: 8px 6px; letter-spacing: 0.04em; }
.lang-link:hover { color: #fff; }

#toggle-dark .ico-sun { display: none; }
html[data-theme='dark'] #toggle-dark .ico-sun { display: block; }
html[data-theme='dark'] #toggle-dark .ico-moon { display: none; }

#btn-salvas.tem-salvas svg { fill: currentColor; color: var(--accent); }

/* ---------- Barra de descoberta (busca + tags + filtros) ---------- */
.discovery-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.discovery-inner { display: flex; align-items: center; gap: 16px; min-height: var(--bar-h); }

.search { position: relative; flex: 0 0 260px; margin: 0; }
.search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.92rem;
}
.search .search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }

.discovery-bar .chips {
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
  mask-image: linear-gradient(90deg, #000 90%, transparent);
  padding-block: 4px;
}
.discovery-bar .chips::-webkit-scrollbar { display: none; }

.filters {
  display: flex;
  flex-shrink: 0;
  padding: 3px;
  gap: 2px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.filters a {
  padding: 6px 12px;
  border-radius: 9px;
  color: var(--muted);
  font: 600 0.85rem/1.2 var(--font-sans);
}
.filters a:hover { color: var(--text); }
.filters a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Publicidade do topo ---------- */
.ad-top { display: flex; justify-content: center; padding-top: 20px; }
#rec-header { width: 728px; max-width: 100%; min-height: 90px; }
/* anúncio sem preenchimento: recolhe o espaço reservado */
.ad-top:has(ins[data-ad-status="unfilled"]) { display: none; }

/* ---------- Conteúdo ---------- */
main { padding-block: 28px 64px; }

/* Listagens (home, tags): grid de cards. ".grid-cards" é aplicada via JS para
   navegadores sem :has(); a versão masonry (".is-masonry") também vem do JS. */
.content:has(> .card),
.content.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}
.content:has(> .card) > :not(.card),
.content.grid-cards > :not(.card) { grid-column: 1 / -1; }

.content.is-masonry { grid-auto-rows: 4px; row-gap: 0; }
.content.is-masonry > * { margin-bottom: 20px; }

@supports (grid-template-rows: masonry) {
  .content:has(> .card) { grid-template-rows: masonry; }
}

/* Cabeçalho de páginas de listagem */
.page-head { margin: 4px 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 6px; }
.page-sub { color: var(--muted); margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4.5vw, 56px);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 70% 80% at 85% 40%, var(--accent-soft), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg-soft);
  overflow: hidden;
}

.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 16px; }
.hero-sub { color: var(--text-2); font-size: 1.08rem; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-cta .btn { padding: 12px 20px; font-size: 1rem; }

.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulso 2s infinite; }
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-comic { margin: 0; }
.hero-comic > a {
  display: block;
  padding: clamp(8px, 1.2vw, 14px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease;
}
.hero-comic > a:hover { transform: translateY(-3px) rotate(-0.3deg); }
.hero-comic img { display: block; width: 100%; max-height: 560px; object-fit: contain; border-radius: 8px; }
.hero-comic figcaption { margin-top: 12px; font: 600 0.95rem/1.3 var(--font-head); }
.hero-comic figcaption a { color: var(--text-2); }
.hero-comic figcaption a:hover { color: var(--accent); }

/* ---------- Cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }

.card-media { display: block; padding: 10px 10px 0; }
.card-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--stage);
}
.card-media.sem-imagem { display: none; }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.card-title { font-size: 1.12rem; line-height: 1.25; margin: 0; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }

.card-tags a { padding: 3px 9px; font-size: 0.74rem; }
.card-tags a:nth-child(n+6) { display: none; }
.card-tags:empty { display: none; }
/* post sem tags: o axe gera um link vazio para "tag-.html" */
.card-tags a[href$="/tag-.html"], .tag-list a[href$="/tag-.html"] { display: none; }

/* tags genéricas demais para ajudar na descoberta */
.card-tags a[href$="/tag-tirinha.html"],
.card-tags a[href$="/tag-tirinhas.html"] { display: none; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.card-foot time { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }

/* ---------- Paginação e "carregar mais" ---------- */
.navlinks { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.navlinks a {
  display: inline-flex;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.navlinks a:hover { border-color: var(--muted); color: var(--text); }
.navlinks .prev a::after { content: '\00a0\2192'; }
.navlinks .next a::before { content: '\2190\00a0'; }

.load-more-wrap { display: flex; justify-content: center; margin-top: 8px; }
.load-more-wrap .btn { padding: 12px 22px; }
.load-more-wrap .btn[aria-busy='true'] { opacity: 0.6; pointer-events: none; }

/* ---------- Página da tirinha / post ---------- */
.single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.single-head { margin-bottom: 20px; }
.single-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin: 0; }
.single-head .eyebrow { color: var(--muted); letter-spacing: 0.04em; }

.single-body { font-size: 1.06rem; line-height: 1.75; color: var(--text-2); overflow-wrap: anywhere; }
.single-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.single-body .post-actions a { text-decoration: none; }
.single-body .post-actions { font-size: 1rem; line-height: 1.4; }
.single-body h2, .single-body h3 { margin-top: 1.6em; }
.single-body ul, .single-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }

/* a tirinha em destaque, sobre um fundo neutro */
.single-body .tirinha,
.single-body img.aligncenter {
  display: block;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  background: var(--stage);
}
.single-body .tirinha { width: 100% !important; padding: clamp(10px, 2vw, 24px); text-align: center; }
.single-body .tirinha a { text-decoration: none; cursor: zoom-in; }
.single-body .tirinha img { display: block; margin: 0 auto; width: 100%; max-height: 85vh; object-fit: contain; border-radius: 6px; background: #fff; }
.single-body img.aligncenter { padding: clamp(10px, 2vw, 24px); }
.single-body .alignleft { float: left; margin: 0 1em 1em 0; }
.single-body .alignright { float: right; margin: 0 0 1em 1em; }

/* o embed antigo (dentro do HTML do post) foi substituído pelo botão "Embed" */
.single-body .embed-code { display: none; }

.single-body iframe[src*="youtube"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* transcrição */
.transcription { margin: 0 0 1.2em; }
.transcription small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font: 600 0.78rem/1.4 var(--font-sans);
  cursor: pointer;
  user-select: none;
}
.transcription small:hover { color: var(--text); border-color: var(--muted); }
.transcription p {
  display: none;
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--transcricao-border);
  background: var(--transcricao-bg);
  color: var(--transcricao-text);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* barra de ações (compartilhar, salvar, embed) */
.post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 28px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.tipo-page .post-actions { display: none; }

.action { position: relative; }
.action > summary { list-style: none; }
.action > summary::-webkit-details-marker { display: none; }

.action-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.action-menu a, .action-menu > button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: 500 0.92rem/1.2 var(--font-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.action-menu a:hover, .action-menu > button:hover { background: var(--bg-soft); color: var(--text); }
.action-menu .fab { width: 18px; text-align: center; color: var(--muted); }

.embed-menu { width: min(440px, 86vw); gap: 10px; padding: 14px; }
.embed-menu p { margin: 0; font-size: 0.88rem; color: var(--text-2); }
.embed-menu textarea { width: 100%; min-height: 96px; font: 0.78rem/1.5 var(--font-mono); background: var(--bg-soft); resize: vertical; }
.embed-menu .btn { justify-self: start; }

.js-save[aria-pressed='true'] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.js-save[aria-pressed='true'] svg { fill: currentColor; }

.copiado { color: var(--accent) !important; }

.store-strip { display: block; max-width: 560px; margin: 0 0 36px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); opacity: 0.92; transition: opacity 0.15s; }
.store-strip:hover { opacity: 1; }
.store-strip img { display: block; width: 100%; }

.comments h2 { font-size: 1.35rem; }

/* coluna lateral */
.single-aside { position: sticky; top: calc(var(--bar-h) + 20px); display: grid; gap: 16px; }

.side-block { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.side-block h2 { font-size: 1rem; margin-bottom: 12px; }
.side-block:has(.tag-list:empty),
.side-block:has(.tag-list > a[href$="/tag-.html"]:only-child),
.side-block:has(.related:empty) { display: none; }

.related-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.related-list a { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 12px; color: var(--text); }
.related-list a:hover span { color: var(--accent); }
.related-list img { width: 76px; height: 58px; object-fit: cover; object-position: top; border-radius: 8px; background: var(--stage); border: 1px solid var(--border); }
.related-list span { font: 600 0.9rem/1.3 var(--font-head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.side-cta { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.side-cta p { font-size: 0.9rem; color: var(--text-2); }
.side-cta .btn { width: 100%; margin-top: 8px; }

/* ---------- Arquivo mensal ---------- */
.content:has(.archive-row) { max-width: 820px; }
.archive-row { display: flex; align-items: baseline; gap: 20px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.archive-date, .archive-year { flex: 0 0 96px; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.archive-year { font: 700 1.1rem/1 var(--font-head); color: var(--text); }
.archive-title, .archive-title a { color: var(--text); font-weight: 500; }
.archive-title a:hover, a.archive-title:hover { color: var(--accent); }

/* ---------- Página de categorias ---------- */
.tag-cloud, .tag-index { margin-top: 28px; }
.tag-cloud h2, .tag-index h2 { font-size: 1.25rem; }
.tag-index summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-bottom: 14px; }

/* ---------- Faixa de CTA (Apoie | Loja | Newsletter) ---------- */
.cta-band { padding-block: 48px; background: var(--bg-soft); border-top: 1px solid var(--border); }
.cta-grid { display: grid; grid-template-columns: 1.25fr 1fr 1.25fr; gap: 20px; }
.cta-grid-single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.cta-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.cta-card h2 { font-size: 1.4rem; }
.cta-card > p { color: var(--text-2); font-size: 0.95rem; }
.cta-card .btn { margin-top: auto; }
.cta-apoie { background: linear-gradient(150deg, color-mix(in srgb, var(--cta) 22%, var(--surface)), var(--surface) 65%); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: auto; }
.cta-actions .btn { margin-top: 0; }
.pix > summary { list-style: none; }
.pix > summary::-webkit-details-marker { display: none; }
.pix-box { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: #111; text-align: center; }
.pix-box img { width: 170px; display: block; margin: 0 auto 8px; }
.pix-box p { margin: 0; font-size: 0.8rem; }

.newsletter-form { display: grid; gap: 8px; width: 100%; }
.newsletter-form input[type="text"], .newsletter-form input[type="email"] { width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.newsletter-form .check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.82rem; color: var(--muted); }
.newsletter-form .btn { justify-self: start; margin-top: 4px; }

/* ---------- Rodapé ---------- */
.site-footer { padding-block: 48px 28px; border-top: 1px solid var(--border); background: var(--bg); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 38ch; }
.footer-links h3 { font-size: 0.95rem; margin-bottom: 12px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-size: 1rem; }
.social a:hover { color: var(--accent); border-color: var(--accent); }

.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Flutuantes ---------- */
.apoie-fixo {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font: 700 0.88rem/1 var(--font-sans);
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s;
}
.apoie-fixo:hover { color: var(--cta-ink); transform: translateY(-2px); }

#toTop { position: fixed; right: 16px; bottom: 88px; /* acima do selo do reCAPTCHA */ z-index: 40; box-shadow: var(--shadow); }

/* ---------- Painel de tirinhas salvas ---------- */
dialog.salvas {
  width: min(560px, calc(100% - 32px));
  max-height: min(80vh, 720px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
dialog.salvas::backdrop { background: rgba(10, 10, 14, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.salvas-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.salvas-head h2 { margin: 0; font-size: 1.3rem; }
.salvas-vazio, .salvas-nota { color: var(--muted); font-size: 0.9rem; }
.salvas-nota { margin: 14px 0 0; font-size: 0.8rem; }
.salvas-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.salvas-lista li { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); }
.salvas-lista img { width: 72px; height: 54px; object-fit: cover; object-position: top; border-radius: 6px; background: var(--stage); }
.salvas-lista a { color: var(--text); font: 600 0.95rem/1.3 var(--font-head); }
.salvas-lista small { display: block; color: var(--muted); font: 400 0.78rem var(--font-sans); }

/* ---------- Herança de páginas e posts antigos ---------- */
.contact-form { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.contact-form label { font-weight: 600; }

.videoWrapper { position: relative; padding-bottom: 56.25%; height: 0; margin-bottom: 15px; }
.videoWrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.subtirinha { text-align: center; }
.codigo-tirinha { display: none; }

#rodapes { margin-top: 2em; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--border); }
#coisos { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .single { grid-template-columns: minmax(0, 1fr); }
  .single-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 1180px) {
  .header-inner { gap: 16px; }
  .brand { height: 120px; }
  .main-nav a { padding-inline: 9px; font-size: 0.85rem; }
}

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 0 16px; height: auto; }
  .brand { height: 110px; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: -8px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { padding: 0 0 12px; }
  .main-nav a { white-space: nowrap; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-sub { max-width: none; }

  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .ad-top { display: none; }
  .discovery-bar { position: static; }
  .discovery-inner { flex-wrap: wrap; gap: 10px; padding-block: 12px; }
  .search { flex: 1 1 100%; }
  .discovery-bar .chips { order: 3; flex-basis: 100%; }
  .single-aside { top: 20px; }
}

@media (max-width: 520px) {
  .brand { height: 76px; }
  .header-inner { gap: 0 8px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .apoie-fixo span { display: none; }
  .apoie-fixo::after { content: 'Support'; }
  .post-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
