/* ==========================================================================
   SISTEMA DE DESIGN, TOKENS DE CORES E ESCALA TIPOGRÁFICA UNIVERSAL
   Tema: Substack / Editorial Minimalista
   Fonte: Atkinson Hyperlegible Next (100% Self-Hosted)
   ========================================================================== */

:root {
  /* Tokens de Cores - Modo Claro */
  --color-bg: #ffffff;
  --color-surface: #f9f9f8;
  --color-card-bg: #ffffff;
  --color-border: #eeeeee;
  --color-border-strong: #d8d8d6;
  --color-text: #242424;
  --color-text-strong: #111111;
  --color-highlight-bg: rgba(71, 140, 103, 0.13);
  --color-meta: #737373;
  --color-accent: #478c67;
  --color-accent-text: #356e4f;
  --color-code-bg: rgba(127, 127, 127, 0.08);
  --color-code-inline: rgba(127, 127, 127, 0.12);

  /* Raios e Dimensões Globais */
  --radius: 8px;
  --radius-sm: 4px;

  /* Escala Harmônica de Tipografia (Desktop) */
  --text-xs: 0.75rem;    /* 12px - Contadores e badges */
  --text-sm: 0.875rem;   /* 14px - Metas, datas, menus, legendas, footer */
  --text-base: 1.125rem; /* 18px - Corpo de texto, resumos, parágrafos */
  --text-lg: 1.35rem;    /* 21.6px - Subtítulos h3 */
  --text-xl: 1.65rem;    /* 26.4px - Títulos no feed e subtítulos h2 */
  --text-2xl: 2.4rem;    /* 38.4px - Título principal do artigo (h1) */
}

/* Tokens de Cores - Modo Escuro (Nativo do Sistema ou via seletor) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #141715;
    --color-surface: #1c201d;
    --color-card-bg: #1c201d;
    --color-border: #282e2a;
    --color-border-strong: #3a423d;
    --color-text: #e6e9e7;
    --color-text-strong: #ffffff;
    --color-highlight-bg: rgba(126, 194, 157, 0.15);
    --color-meta: #939a95;
    --color-accent: #7ec29d;
    --color-accent-text: #7ec29d;
    --color-code-bg: rgba(255, 255, 255, 0.06);
    --color-code-inline: rgba(255, 255, 255, 0.10);
  }
}

html[data-theme="dark"], body.theme-dark {
  --color-bg: #141715;
  --color-surface: #1c201d;
  --color-card-bg: #1c201d;
  --color-border: #282e2a;
  --color-border-strong: #3a423d;
  --color-text: #e6e9e7;
  --color-text-strong: #ffffff;
  --color-highlight-bg: rgba(126, 194, 157, 0.15);
  --color-meta: #939a95;
  --color-accent: #7ec29d;
  --color-accent-text: #7ec29d;
  --color-code-bg: rgba(255, 255, 255, 0.06);
  --color-code-inline: rgba(255, 255, 255, 0.10);
}

html[data-theme="light"] {
  --color-bg: #ffffff;
  --color-surface: #f9f9f8;
  --color-card-bg: #ffffff;
  --color-border: #eeeeee;
  --color-border-strong: #d8d8d6;
  --color-text: #242424;
  --color-text-strong: #111111;
  --color-highlight-bg: rgba(71, 140, 103, 0.13);
  --color-meta: #737373;
  --color-accent: #478c67;
  --color-accent-text: #356e4f;
  --color-code-bg: rgba(127, 127, 127, 0.08);
  --color-code-inline: rgba(127, 127, 127, 0.12);
}

@media (max-width: 680px) {
  :root {
    --text-base: 1.0625rem;
    --text-xl: 1.45rem;
    --text-2xl: 2.0rem;
  }
}

/* Base Global */
html, body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
}

/* Ocultar elementos legados da sidebar */
/* classes legadas descontinuadas no HTML */ .sidebar-unused {
  display: none;
}

/* Container Centralizado Unificado */
.layout {
  display: block;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.content {
  max-width: 100%;
  margin: 0;
  padding: 1.5rem 0 2.5rem 0;
}

.content__inner {
  max-width: 100%;
  padding: 0;
}

/* -------------------------------------------------------------------------
   FEED DA HOME E LISTAGENS (/posts/)
   ------------------------------------------------------------------------- */
.substack-feed__item {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.substack-feed__meta {
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-meta);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.substack-feed__tag {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.substack-feed__tag:hover {
  color: var(--color-accent);
}

.substack-feed__title {
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem 0;
}

.substack-feed__title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.substack-feed__item:hover .substack-feed__title a,
.substack-feed__title a:hover {
  color: var(--color-accent);
}

.substack-feed__excerpt {
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-meta);
  margin: 0 0 0.8rem 0;
}

.substack-feed__footer {
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  font-size: var(--text-sm);
  color: var(--color-meta);
}

/* -------------------------------------------------------------------------
   PÁGINA DO ARTIGO (single.php) E PÁGINAS (page.php)
   ------------------------------------------------------------------------- */
.article__meta {
  font-size: var(--text-sm);
  color: var(--color-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.prose {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
}

.prose p {
  margin: 1.6rem 0;
}

.prose h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 3rem 0 1.2rem 0;
  line-height: 1.3;
  color: var(--color-text);
}

.prose h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 2.4rem 0 0.8rem 0;
  color: var(--color-text);
}

.prose a {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Links externos com ícone: sublinhado restrito ao texto, sem traço sob ou após o ícone */
.prose a.link-externo,
a.link-externo {
  text-decoration: none;
}

.prose a.link-externo .link-externo__texto,
a.link-externo .link-externo__texto {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-externo__icone {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.25em;
  vertical-align: -0.08em;
  text-decoration: none;
}

/* Links internos: sublinhado com transição suave */
.prose a:is([href^="/"], [href^="#"], [href^="https://viniciuscodes.com.br"], [href^="http://viniciuscodes.com.br"]):not(.wp-block-button__link) {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  padding-bottom: 1px;
  font-weight: 500;
  transition: background-size 0.25s ease, color 0.2s ease, opacity 0.2s ease;
}

.prose a:is([href^="/"], [href^="#"], [href^="https://viniciuscodes.com.br"], [href^="http://viniciuscodes.com.br"]):not(.wp-block-button__link):hover {
  background-size: 100% 2.5px;
  opacity: 0.9;
}

/* Negritos: contraste reforçado e destaque estilo marca-texto suave */
.prose strong,
.prose b {
  font-weight: 700;
  color: var(--color-text-strong);
  background-color: var(--color-highlight-bg);
  padding: 0.08em 0.28em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.prose a strong,
.prose a b {
  color: inherit;
  background-color: transparent;
  padding: 0;
}

.prose blockquote {
  margin: 2.2rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-accent);
  font-style: italic;
  color: var(--color-text);
}

.prose ul, .prose ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.6rem;
}

/* Código em bloco e inline */
.prose code, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--color-code-inline);
  padding: 3px 6px;
  border-radius: 4px;
}

.prose pre, pre {
  background: var(--color-code-bg);
  padding: 1.2rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9em;
}

.prose pre code {
  background: none;
  padding: 0;
}

/* Imagens e Legendas */
figure, .wp-block-image {
  margin: 2.6rem 0;
  text-align: center;
}

.prose figure,
.prose .wp-block-image {
  margin: 1.5rem 0;
  margin-inline: 0;
}

figure img, .wp-block-image img {
  border-radius: 6px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

figcaption, .wp-element-caption {
  font-size: var(--text-sm);
  color: var(--color-meta);
  line-height: 1.5;
  margin-top: 0.85rem;
  padding: 0 1rem;
  text-align: center;
}

/* Rodapé do Artigo */
.article__footer {
  border-top: none;
  margin-top: 1.5rem;
  padding-top: 0;
}

.article__back {
  margin-top: 3rem;
  text-align: center;
  font-size: var(--text-sm);
}

.article__back a {
  color: var(--color-meta);
  text-decoration: none;
}

.article__back a:hover {
  color: var(--color-accent);
}

/* Links & Metas globais */
a {
  color: inherit;
}
.masthead__nav a:hover,
.topics-bar a:hover,
.colophon a:hover {
  color: var(--color-accent);
}

/* Ocultar qualquer sumario remanescente (TOC) */
.toc-container,
nav.toc-container,
.prose .toc-container {
  display: none;
}

/* Footer Social Icons & Compact Alignment */
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-meta);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer-social-icon:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.footer-social-icon svg {
  width: 17px;
  height: 17px;
}

/* ===========================================================
   FIXES DE LAYOUT - PAGINAS ESTATICAS (SOBRE, CONTATO, ETC.)
   =========================================================== */

/* Avatar Redondo de Perfil */
.prose .wp-block-image.is-style-rounded,
.wp-block-image.is-style-rounded {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.75rem auto;
}
.prose .wp-block-image.is-style-rounded img,
.wp-block-image.is-style-rounded img {
  width: 130px;
  height: 130px;
  border-radius: 9999px;
  object-fit: cover;
  border: 3px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Imagem de abertura com crop 16:9 */
.prose .wp-block-image.is-ratio-16x9 {
  margin: 0 0 1.75rem;
}
.prose .wp-block-image.is-ratio-16x9 img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--radius);
}

/* Separadores nas Páginas */
.prose .wp-block-separator,
.prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--color-border);
  height: 1px;
  background: none;
}
.prose .wp-block-separator::after,
.prose hr::after,
.prose .wp-block-separator::before,
.prose hr::before {
  display: none;
}

/* Rodapê Editorial Minimalista (2 Colunas) */
.colophon {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
  margin-top: 4rem;
  color: var(--color-meta);
  font-size: var(--text-sm);
}

.colophon__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.colophon__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.colophon__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 0.75rem;
}

.colophon__link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.colophon__link:hover {
  color: var(--color-accent);
}

.colophon__sep {
  color: var(--color-meta);
  opacity: 0.5;
  user-select: none;
}

.colophon__copy {
  margin: 0;
  color: var(--color-meta);
  font-size: 0.85rem;
  line-height: 1.55;
}

.colophon__selo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.colophon__selo-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.colophon__selo-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.colophon__selo-img {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 680px) {
  .colophon__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .colophon__info {
    align-items: center;
  }

  .colophon__nav {
    justify-content: center;
  }

  .colophon__selo {
    justify-content: center;
  }
}

.colophon__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.colophon__badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.colophon__badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.colophon__badge--entreblogs {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-meta);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.colophon__badge--entreblogs:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-bg);
}

.not-by-ai-picture,
.not-by-ai-img {
  display: block;
  height: 32px;
  width: auto;
}

/* ==========================================================================
   CABEÇALHO RESPONSIVO UNIFICADO (DESKTOP E MOBILE)
   ========================================================================== */
.masthead--substack {
  padding: 8px 20px;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.masthead__top {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.masthead__brand img {
  border-radius: 50%;
  object-fit: cover;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.masthead__brand span {
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.masthead__nav a {
  color: var(--color-meta);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.masthead__nav a[aria-current="page"],
.masthead__nav a.is-active {
  color: var(--color-accent);
  font-weight: 600;
}

.masthead__nav .btn-rss-pill,
.masthead__cta-mobile {
  background-color: var(--color-accent);
  color: #fff;
  padding: 4px 11px;
  border-radius: 20px;
  font-weight: 600;
  font-size: var(--text-xs);
  text-decoration: none;
  white-space: nowrap;
}

.masthead__nav .btn-rss-pill:hover,
.masthead__cta-mobile:hover {
  opacity: 0.9;
}

.masthead__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.masthead__cta-mobile,
.menu-toggle,
.mobile-nav-backdrop {
  display: none;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--color-text);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.menu-toggle:hover {
  color: var(--color-accent);
}

.menu-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.menu-toggle__icon--close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon--open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon--close {
  display: inline-flex;
}

.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: transparent;
  pointer-events: none;
  overflow: hidden;
}

.reading-progress__bar {
  width: 100%;
  height: 100%;
  background-color: var(--color-accent);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* No desktop: o botão fica colado à navegação */
@media (min-width: 769px) {
  .masthead__nav {
    margin-left: auto;
    margin-right: 12px;
  }
}

/* No mobile (<= 768px):
   Linha única compacta (~56px): Marca à esquerda | Assinar + Tema + Menu à direita
   Drawer vertical limpo para os links de navegação */
@media (max-width: 768px) {
  .masthead--substack {
    padding: 6px 12px 6px 16px;
    min-height: 56px;
    display: flex;
    align-items: center;
  }

  .masthead__top {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .masthead__brand {
    gap: 8px;
    min-height: 44px;
    min-width: 0;
  }

  .masthead__brand img {
    width: 28px;
    height: 28px;
  }

  .masthead__brand span {
    font-size: 0.95rem;
  }

  .masthead__actions {
    gap: 2px;
  }

  .masthead__cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 0.78rem;
    line-height: 1.2;
    position: relative;
    margin-right: 2px;
  }

  .masthead__cta-mobile::after {
    content: "";
    position: absolute;
    inset: -7px -2px;
  }

  .theme-toggle,
  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .masthead__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .masthead--substack.is-menu-open .masthead__nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .masthead__nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    font-size: 0.95rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
  }

  .masthead__nav a:last-of-type {
    border-bottom: none;
  }

  .masthead__nav a[aria-current="page"],
  .masthead__nav a.is-active {
    color: var(--color-accent);
    background-color: var(--color-surface);
  }

  .masthead__nav .btn-rss-pill {
    display: none;
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }

  .mobile-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.single-post .topics-bar {
    display: none;
  }
}

/* ==========================================================================
   CLASSES SEMÂNTICAS - BARRA DE TÓPICOS E DROPDOWN
   ========================================================================== */

.topics-bar {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
  overflow: visible;
  position: relative;
  z-index: 90;
}

.topics-bar > div,
.topics-bar__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 5px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  flex-wrap: wrap;
  overflow: visible;
}

.topics-bar a,
.topics-dropdown-wrap {
  flex-shrink: 0;
}

.topics-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-meta);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.topics-bar__item:hover {
  color: var(--color-accent);
}

.topics-bar__icon {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
}

.topics-bar__item--resto,
.topics-bar .topics-bar__item--resto,
.topics-bar a.topics-bar__item--resto {
  display: none;
}

/* Dropdown "Mais" 100% nativo com details */
.topics-dropdown-details {
  position: relative;
  display: inline-block;
}

details.topics-dropdown-details summary::-webkit-details-marker {
  display: none;
}

details.topics-dropdown-details summary {
  list-style: none;
}

details.topics-dropdown-details .topics-arrow {
  transition: transform 0.2s ease;
}

details.topics-dropdown-details[open] .topics-arrow {
  transform: rotate(180deg);
}

.topics-dropdown-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 3px 10px;
  font-size: var(--text-xs);
  color: var(--color-meta);
  cursor: pointer;
  font-family: inherit;
  list-style: none;
  user-select: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.topics-dropdown-summary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.topics-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  min-width: 190px;
  z-index: 1000;
}

.topics-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: background-color 0.15s ease;
}

.topics-dropdown-item:hover {
  background-color: var(--color-surface);
}

.topics-dropdown-item__left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topics-dropdown-item__icon {
  opacity: 0.8;
}

.topics-dropdown-item__count {
  font-size: var(--text-xs);
  color: var(--color-meta);
  background: var(--color-code-bg);
  border-radius: 10px;
  padding: 1px 6px;
}

@media (max-width: 680px) {
  .topics-bar > div,
  .topics-bar .topics-bar__inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 28px 4px 16px;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  }

  .topics-bar > div::-webkit-scrollbar,
  .topics-bar .topics-bar__inner::-webkit-scrollbar {
    display: none;
  }

  .topics-bar__item {
    min-height: 36px;
    padding: 4px 2px;
  }

  details.topics-dropdown-details {
    display: none;
  }

  .topics-bar__item--resto,
  .topics-bar .topics-bar__item--resto,
  .topics-bar a.topics-bar__item--resto {
    display: inline-flex;
  }
}

/* Página Todos os Textos (/posts/) */
.page-posts__header {
  margin-bottom: 2.5rem;
}

.page-posts__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-meta);
  margin-bottom: 0.5rem;
}


/* Campo invisivel anti-spam */
.vc-hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Acessibilidade e leitores de tela */
.visually-hidden,
.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wp-lightbox-overlay .screen-reader-text {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ---------- comentários zen e minimalistas ---------- */

.post-comments {
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.post-comments__header {
  margin-bottom: 2rem;
}

.post-comments__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.post-comments__count {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-meta);
}

.post-comments__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Comentário individual (Root ou filho) */
.post-comment {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.post-comment__body {
  padding: 1.15rem 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.post-comment:hover > .post-comment__body {
  border-color: var(--color-border-strong);
}

/* Destaque sutil para respostas do próprio autor do blog */
.post-comment.bypostauthor > .post-comment__body {
  border-left: 3px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 3%, var(--color-surface));
}

/* Selo de autor */
.post-comment__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Cabeçalho do comentário */
.post-comment__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.post-comment__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.post-comment__author {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
}

.post-comment__author a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-border-strong);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.post-comment__author a:hover {
  color: var(--color-accent);
  border-bottom-style: solid;
}

.post-comment__dot {
  color: var(--color-meta);
  font-size: 0.75rem;
}

.post-comment__date {
  color: var(--color-meta);
  font-size: 0.8rem;
}

.post-comment__date a {
  color: inherit;
  text-decoration: none;
}

.post-comment__date a:hover {
  text-decoration: underline;
}

.post-comment__moderation {
  margin: 0.4rem 0 0.8rem;
  font-size: 0.82rem;
  color: var(--color-accent);
  font-style: italic;
}

/* Conteúdo da mensagem */
.post-comment__content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
}

.post-comment__content p {
  margin: 0 0 0.65rem;
}

.post-comment__content p:last-child {
  margin-bottom: 0;
}

/* Botões de Ação do Comentário (curtir + responder) */
.post-comment__reply {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-comment__reply a,
.post-comment .comment-reply-link,
.post-comment__like {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-meta);
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.post-comment__reply a:hover,
.post-comment .comment-reply-link:hover,
.post-comment__like:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
}

.post-comment__like.is-liked {
  color: var(--color-accent-text);
  border-color: var(--color-accent);
  background: var(--color-highlight-bg);
  cursor: default;
}

.post-comment__like.is-liked .post-comment__like-icon {
  fill: currentColor;
}

.post-comment__like-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* Réplicas e Tréplicas (Filhos aninhados com linhas conectoras) */
.post-comment .children,
ol.children {
  list-style: none;
  margin: 0.85rem 0 0 0.75rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}

/* Responsividade de aninhamento para celular */
@media (max-width: 680px) {
  .post-comment .children,
  ol.children {
    margin-left: 0.35rem;
    padding-left: 0.85rem;
  }
  .post-comment__body {
    padding: 0.95rem 1.05rem;
  }
}

/* Quando o formulário de resposta estiver ativo abaixo de um comentário */
.post-comment .comment-respond {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--color-bg);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
}

.post-comments__empty,
.post-comments__closed {
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--color-meta);
  font-style: italic;
}


/* Formulário de comentário - Design Editorial Substack Zen */
.post-comments__form-wrapper {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.comment-respond {
  margin: 0;
}

.comment-reply-title {
  margin: 0 0 1.25rem 0;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.comment-reply-title small {
  margin-left: 0.75rem;
}

.comment-reply-title small a {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-meta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.comment-reply-title small a:hover {
  color: var(--color-accent);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.comment-form p {
  margin: 0;
}

.post-comments__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.post-comments__field label,
.comment-form label {
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.post-comments__field label .required {
  color: var(--color-accent);
}

.post-comments__hint {
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-meta);
}

.post-comments__field input[type="text"],
.post-comments__field input[type="email"],
.post-comments__field input[type="url"],
.post-comments__field textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.post-comments__field textarea,
.comment-form textarea {
  min-height: 130px;
  resize: vertical;
}

.post-comments__field input:focus,
.post-comments__field textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(71, 140, 103, 0.18);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  color: var(--color-meta);
  line-height: 1.4;
}

.comment-form-cookies-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.comment-form-cookies-consent label {
  cursor: pointer;
  user-select: none;
}

.form-submit {
  margin-top: 0.6rem;
}

.post-comments__submit,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 1.8rem;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ffffff;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.post-comments__submit:hover,
.comment-form input[type="submit"]:hover {
  background: var(--color-accent-text);
  border-color: var(--color-accent-text);
  color: #ffffff;
  transform: translateY(-1px);
}

.post-comments__submit:active,
.comment-form input[type="submit"]:active {
  transform: translateY(0);
}

/* ---------- blogroll (/blogroll/) ---------- */

.blogroll-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.term-header + .blogroll-list {
  border-top: 0;
}

.blogroll-list + .term-header {
  margin-top: 3.5rem;
}

.blogroll-list + .term-header {
  margin-top: 3.5rem;
}

.blogroll-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--color-border);
}

.blogroll-item__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.6rem;
  margin-inline: -0.6rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.blogroll-item__link:hover {
  background: var(--color-surface);
  color: var(--color-accent-text);
}

.blogroll-item__favicon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
}

.blogroll-item__nome {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blogroll-item__dominio {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--color-meta);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.blogroll-item__link:hover .blogroll-item__dominio {
  color: var(--color-meta);
}

@media (max-width: 480px) {
  .blogroll-item__link {
    padding-block: 0.8rem;
    gap: 0.65rem;
  }

  .blogroll-item__nome {
    font-size: 0.95rem;
  }

  .blogroll-item__dominio {
    font-size: 0.78rem;
  }
}

/*
  Two shapes, one grid.

  `min(100%, 220px)` rather than a bare 220px: a bare minimum wider than the
  container forces the track to overflow. This lets the track collapse to
  the available width on very narrow screens.

  Where the class sits on a plain <ul> the cards are its direct children and it
  is the grid itself. Inside a group the layout support wraps the children in a
  div of its own, so the wrapper has to be the grid instead. The group must then
  stop being one: as a grid with a single child it would hand the wrapper one
  track of its own, and the grid would collapse into a narrow column (measured:
  one column of 206px, cards stacked).
*/
.grid,
.grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-block-group.grid {
  display: block;
}

.card {
  display: block;
  padding: 1.1rem 1.2rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
}

.card:hover {
  border-color: var(--color-accent);
  text-decoration: none;
}

.card__title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.card__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-meta);
}

/*
  A card that is not a link.

  `.card:hover` exists to say "this responds to a click", so a static card has
  to opt out of it. Without this the colophon would advertise nineteen things
  that do nothing when you press them.
*/
.card--static:hover {
  border-color: var(--color-border);
}

/*
  The sentence inside a card. `.card__meta` holds a count or a date and sits at
  0.78rem, which is too small to carry a whole sentence; this is the body size
  for a card that is meant to be read rather than scanned.
*/
.card__text {
  margin: 0;
  font-size: 0.9rem;
}

/*
  Gallery block. The WordPress stylesheet is dropped here, so the gallery
  arrives as markup with no layout: the figures stacked one per line at a
  third of the content width, which reads as a column of cropped thumbnails
  rather than a gallery.

  A grid, and `columns: auto` on purpose — something upstream was putting the
  gallery in text columns, and that is what squeezed every figure down to a
  third of the available width.

  `columns-N` sets the track count. `is-cropped` is the editor's "crop images
  to a square": the cell becomes square and the image fills it, which is what
  makes a row of one-size tiles.

  THE TRACK COUNT IS `auto-fit`, NOT A FIXED 3, and that is the whole point.
  The editor writes `columns-default` when the block has no column count
  chosen, and no `columns-N` rule matches that name — so a fixed base sent
  every such gallery to three tracks. A two-image gallery then filled two
  tracks and left THE THIRD ONE EMPTY: 24% of the row blank, measured in
  `/fuga-ocio-e-cafe-curitiba/`. `auto-fit` collapses the tracks nobody uses,
  so the count follows the number of images: 2 becomes two across, 3 becomes
  three, and a single leftover image no longer drags an empty column behind it.

  THE `min()` ON THE MINIMUM IS NOT DECORATION. `1fr` alone is
  `minmax(auto, 1fr)`, and that `auto` refuses to shrink below the content's
  minimum — with a wide image the three tracks grew past the 620px column and
  the row overflowed the text block. An explicit minimum lets the track shrink
  and the image follow it.

  THE 10rem IS A CHOICE, AND IT SHOWS ON A PHONE. Below roughly 385px of
  viewport, two cells of 160px no longer fit side by side, so a pair stacks:
  each photo takes the full width of the text instead of two thumbnails of
  148px. On the desktop column the same pair sits side by side at 306px each.
  Lowering this to 9rem would keep every pair side by side on a phone — that is
  the one number to change if the stacked pair ever reads wrong.
*/
.prose .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  columns: auto;
  column-count: auto;
}

.prose .wp-block-gallery.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.prose .wp-block-gallery.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.prose .wp-block-gallery.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.prose .wp-block-gallery.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.prose .wp-block-gallery.columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* The cell fills its track and carries no spacing of its own: the gap is the
   grid's, and the outer margin is the gallery's. */
.prose .wp-block-gallery figure,
.prose .wp-block-gallery .wp-block-image {
  width: 100%;
  max-width: none;
  margin: 0;
}

.prose .wp-block-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0;
  border-radius: var(--radius);
}

.prose .wp-block-gallery:empty {
  display: none;
  margin: 0;
}

/* Inline styles on these blocks set explicit pixel widths; without a cap
   they can exceed the column and force a horizontal scrollbar. */
.prose figure,
.prose .wp-block-image,
.prose .wp-block-columns,
.prose .wp-block-group {
  max-width: 100%;
}

/*
  WordPress button blocks (CTAs inside posts: "ver na Amazon", "Ler
  Resenha Completa"). The block only carried a class, and the class did
  nothing once the WordPress stylesheet was dropped, so these rendered as
  bare 21px text links. They are buttons, not prose links, and need a real
  touch target.
*/
.wp-block-buttons,
.prose .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  justify-content: flex-start;
}

.wp-block-button__link,
.prose .wp-block-button__link,
.is-style-fill .wp-block-button__link,
.prose .is-style-fill .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.prose .wp-block-button__link .meta-icon {
  color: currentColor;
}

.wp-block-button__link:hover,
.prose .wp-block-button__link:hover,
.is-style-fill .wp-block-button__link:hover,
.prose .is-style-fill .wp-block-button__link:hover {
  background: var(--color-accent-text);
  border-color: var(--color-accent-text);
  color: #ffffff;
  text-decoration: none;
}

/*
  The markup already states the role of each button, and the styles ignored it:

    is-style-outline  "ver na Amazon"          secondary, a detour
    is-style-fill     "ler resenha completa"   the point of the card

  Both came out as the same filled pill, so the affiliate link shouted as loud
  as the link to the review. Outline for the detour, fill for the destination.

  The border uses --color-accent rather than a faded version of it. A button edge is
  not decoration: it is what tells the reader the thing is clickable, so it
  falls under the 3:1 non-text rule the tokens already document.
*/
.is-style-outline .wp-block-button__link,
.prose .is-style-outline .wp-block-button__link,
.prose .is-style-outline--2 .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent-text);
}

.is-style-outline .wp-block-button__link:hover,
.prose .is-style-outline .wp-block-button__link:hover,
.prose .is-style-outline--2 .wp-block-button__link:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-accent-text);
}

/* ---------- back to top ---------- */

/*
  Floating control, shown only after the reader has moved past the first
  screen.

  It is `display: none` by default and the script opts it in with
  `data-visible`, so a reader without JavaScript never sees a control that
  could not work. `position: fixed` keeps it out of the document flow, so
  it never affects the layout.
*/


/* ---------- paginação ---------- */

/*
  A paginação de `/posts/` e dos arquivos de tema.

  As classes são as MESMAS do pager do site (`paginacao__lista`,
  `paginacao__botao`), para o desenho não mudar. Quem escreve a marcação é o
  `vc_paginacao()`, em functions.php, em cima do `paginate_links()` do núcleo —
  a conta é do WordPress; estas regras só vestem o resultado.

  Fica no `global.css`, e não no `filtros.css`, porque os arquivos de tema também
  paginam e não carregam a folha do filtro.
*/
.paginacao {
  margin-top: 0;
  padding: 1.75rem 0 0.5rem;
}

.paginacao__lista {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paginacao__botao {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--color-meta);
  font: inherit;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.paginacao__botao:hover:not(.paginacao__botao--off) {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

.paginacao__botao[aria-current='page'] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  font-weight: 700;
}

.paginacao__botao:visited {
 color: var(--color-meta);
}

.paginacao__botao.dots {
  min-width: 24px;
  padding: 0;
  cursor: default;
}

/*
  A seta da ponta. Não é link porque não há para onde ir, mas continua
  desenhada: sem ela o pager mudaria de largura a cada troca de página.
*/
.paginacao__botao--off {
  opacity: 0.35;
  cursor: default;
}

@media (pointer: coarse) {
  .paginacao__botao {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .paginacao__lista { gap: 0.2rem; }
  .paginacao__botao { min-width: 36px; padding: 0 0.4rem; }
}

/* ---------- empty ---------- */

.empty {
  padding: 2rem 1.25rem;
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  color: var(--color-meta);
  font-size: 0.92rem;
  text-align: center;
}


/* Skip link de acessibilidade (visivel apenas via teclado / focus-visible) */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: var(--color-accent);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  transform: translateY(-120%);
  transition: transform 0.15s ease-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

/* Tags de temas no final do artigo (Tags editoriais estilo Substack / Minimalista) */
.article__end-themes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2.5rem 0 1.5rem 0;
  padding: 1.25rem 0 0 0;
  border-top: 1px solid var(--color-border);
}

.prose .article__end-themes {
  margin-top: 3rem;
}

.article__end-theme-link,
.prose .article__end-theme-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-meta);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 4px 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.article__end-theme-link:hover,
.prose .article__end-theme-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-bg);
  text-decoration: none;
}

.article__end-theme-link .meta-icon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  opacity: 0.8;
}

/* ---------- bloco de compartilhar (fim do post) ---------- */
.post-share {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0 0 0;
  border-top: 1px solid var(--color-border);
  border-bottom: none;
}

.post-share__label {
  margin: 0 0 0.75rem;
  color: var(--color-meta);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.post-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.4rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.post-share__btn:hover {
  background: var(--color-bg);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.upvote-wrap {
  display: inline-flex;
}

.upvote-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.4rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.upvote-button svg {
  color: #e05252;
  transition: transform 0.2s ease;
}

.upvote-button:hover {
  background: var(--color-bg);
  border-color: #f8b4b4;
  color: #c81e1e;
}

.upvote-button:hover svg {
  transform: scale(1.15);
}

.upvote-button.upvoted {
  background: #fdf2f2;
  border-color: #f8b4b4;
  color: #c81e1e;
}

.upvote-button.upvoted svg {
  fill: #e05252;
  stroke: #e05252;
}

[data-theme='dark'] .upvote-button.upvoted {
  background: rgba(224, 82, 82, 0.15);
  border-color: rgba(224, 82, 82, 0.4);
  color: #fca5a5;
}

.upvote-count {
  font-size: 0.8rem;
  opacity: 0.85;
}

.post-share__btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.post-share__btn--primary:hover {
  background: var(--color-accent-text);
  border-color: var(--color-accent-text);
  color: #ffffff;
}

.post-share__status {
  min-height: 1.2em;
  margin: 0.75rem 0 0;
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Alternância de ícones Sol / Lua no botão de tema */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-meta);
  flex-shrink: 0;
  z-index: 10;
  transition: color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--color-accent);
}

.theme-toggle .theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Modo Claro: mostra lua (para ir pro escuro), oculta sol */
.theme-toggle .theme-toggle__icon--light {
  display: none;
}
.theme-toggle .theme-toggle__icon--dark {
  display: inline-flex;
}

/* Modo Escuro: mostra sol (para ir pro claro), oculta lua */
[data-theme='dark'] .theme-toggle .theme-toggle__icon--light {
  display: inline-flex;
}
[data-theme='dark'] .theme-toggle .theme-toggle__icon--dark {
  display: none;
}

/* ---------- navegação de posts relacionados e conexões editoriais ---------- */
.related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.related .section-title {
  margin: 0 0 1.5rem 0;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.related__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related__list li {
  margin: 0;
  padding: 0;
}

.related__link {
  display: block;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid var(--color-border);
  text-decoration: none;
  transition: all 0.15s ease;
}

.related__link:hover {
  border-left-color: var(--color-accent);
}

.related__title {
  display: block;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  transition: color 0.15s ease;
}

.related__link:hover .related__title {
  color: var(--color-accent);
}

.related__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-xs);
  color: var(--color-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related__meta > * + *::before {
  content: '·';
  margin-right: 0.5rem;
}

/* Conexões de artigos (citados e backlinks) */
.post-connections {
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-connections__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-connections__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-meta);
}

.post-connections__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.post-connections__list li {
  margin: 0;
  padding: 0;
}

.post-connections__list a {
  display: inline-block;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.4;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.post-connections__list a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* ---------- Padronização Harmônica de Cabeçalhos e H1 de Páginas e Temas ---------- */
.term-header,
[data-page] .article__header {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.article.h-entry .article__header {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.term-header__kind {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-meta);
}

.term-header__name,
.article__title {
  margin: 0;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.term-header__name {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.term-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  line-height: 1;
}

.term-header__desc {
  margin-top: 0.85rem;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-meta);
}

.term-header__desc p {
  margin: 0 0 0.85rem 0;
}

.term-header__desc p:last-child {
  margin-bottom: 0;
}

.term-header__desc strong {
  font-weight: 700;
  color: var(--color-text-strong);
  background-color: var(--color-highlight-bg);
  padding: 0.08em 0.28em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}


/* ---------- LINHA DO TEMPO: PÁGINA VIAGENS (/viagens/) ---------- */
.article-viagens {
  margin-top: 1rem;
}

.travel-timeline-section {
  margin: 2.5rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.travel-year-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.travel-year-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.travel-year-title {
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.travel-year-count {
  font-size: var(--text-xs);
  color: var(--color-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.travel-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-border);
}

.travel-timeline__item {
  position: relative;
  display: flex;
  align-items: baseline;
  padding-bottom: 1.75rem;
}

.travel-timeline__item:last-child {
  padding-bottom: 0;
}

.travel-timeline__marker {
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.travel-timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 2px solid var(--color-accent);
}

.travel-timeline__item:hover .travel-timeline__dot {
  background-color: var(--color-accent);
  transform: scale(1.2);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.travel-timeline__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  width: 100%;
}

.travel-timeline__date {
  font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: var(--text-sm);
  color: var(--color-meta);
  min-width: 70px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.travel-timeline__place {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.travel-place-link {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.travel-place-link:hover {
  color: var(--color-accent);
}

.travel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.travel-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.travel-badge--home {
  background: var(--color-code-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.travel-badge--trip {
  background: var(--color-surface);
  color: var(--color-accent-text);
  border: 1px solid var(--color-border);
}

/* Seção de cidades não datadas */
.travel-undated-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2.5rem;
  margin-top: 2rem;
}

.travel-undated-header {
  margin-bottom: 1.5rem;
}

.travel-undated-title {
  margin: 0 0 0.5rem 0;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.travel-undated-desc {
  margin: 0;
  color: var(--color-meta);
  font-size: var(--text-sm);
}

.travel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.travel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-meta);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all 0.15s ease;
}

.travel-tag:hover {
  background: var(--color-bg);
  border-color: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-1px);
}

.travel-tag__icon {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent);
}

@media (max-width: 680px) {
  .travel-timeline {
    padding-left: 1.25rem;
  }
  .travel-timeline__marker {
    left: -1.25rem;
  }
  .travel-timeline__content {
    gap: 0.35rem 0.65rem;
  }
}

.travel-flag {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  flex-shrink: 0;
}

/* ---------- feed da home com imagens ---------- */

.substack-feed--imagens .substack-feed__item--com-imagem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  column-gap: 1.25rem;
  align-items: stretch;
}

.substack-feed--imagens .substack-feed__imagem {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: block;
  min-height: 96px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-code-bg);
}

.substack-feed--imagens .substack-feed__imagem img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.substack-feed--imagens .substack-feed__item--destaque {
  display: flex;
  flex-direction: column;
}

.substack-feed--imagens .substack-feed__item--destaque .substack-feed__imagem {
  order: -1;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

@media (max-width: 680px) {
  .substack-feed--imagens .substack-feed__item--com-imagem {
    display: flex;
    flex-direction: column;
  }

  .substack-feed--imagens .substack-feed__item--com-imagem .substack-feed__imagem {
    order: -1;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin-bottom: 1rem;
  }
}

/* Ajuste da barra fixa com a Admin Bar do WordPress ativa */
body.admin-bar .masthead--substack {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .masthead--substack {
    top: 46px;
  }
}

/* ==========================================================================
   ESTANTE DE LEITURAS (/leituras/) — SINCRONIZADA COM O NOTION
   ========================================================================== */

.article-leituras {
  margin-top: 1rem;
}

.readings-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.readings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.readings-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-meta);
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.readings-tab:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.readings-tab.is-active {
  border-color: var(--color-accent);
  background: var(--color-highlight-bg);
  color: var(--color-accent-text);
  font-weight: 700;
}

.readings-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: var(--color-code-bg);
  color: inherit;
  font-size: var(--text-xs);
  font-weight: 700;
}

.readings-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.readings-search__icon {
  position: absolute;
  left: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-meta);
  pointer-events: none;
}

.readings-search__input {
  width: 100%;
  padding: 0.62rem 0.9rem 0.62rem 2.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-sm);
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.readings-search__input::placeholder {
  color: var(--color-meta);
}

.readings-search__input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-bg);
}

.readings-section {
  margin-bottom: 3.25rem;
}

.readings-section[hidden],
.reading-card[hidden],
.reading-shelf-item[hidden],
.readings-empty-state[hidden] {
  display: none;
}

.readings-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.readings-section__title {
  margin: 0;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.readings-section__count {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-meta);
}

.readings-featured-list,
.readings-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reading-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  transition: border-color 0.15s ease;
}

.reading-card:hover {
  border-color: var(--color-border-strong);
}

.reading-card--featured {
  grid-template-columns: 132px minmax(0, 1fr);
  background: var(--color-surface);
  border-color: var(--color-border-strong);
}

.reading-card__cover-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
}

.reading-card__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reading-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-meta);
  text-transform: uppercase;
}

.reading-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.reading-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.1rem;
}

.reading-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.reading-badge--reading {
  background: var(--color-highlight-bg);
  color: var(--color-accent-text);
  border: 1px solid var(--color-accent);
}

.reading-badge--abandoned {
  background: var(--color-code-bg);
  color: var(--color-meta);
  border: 1px solid var(--color-border);
}

.reading-card__date {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-meta);
}

.reading-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: var(--text-sm);
  line-height: 1;
}

.reading-stars__filled {
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.reading-stars__empty {
  color: var(--color-border-strong);
  letter-spacing: 0.04em;
}

.reading-stars__score {
  margin-left: 0.3rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-meta);
}

.reading-card__title {
  margin: 0;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--color-text-strong);
}

.reading-card__title-link {
  color: var(--color-text-strong);
  text-decoration: none;
  transition: color 0.15s ease;
}

.reading-card__title-link:hover,
.reading-card__title-link:focus-visible {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.reading-card__author {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-meta);
}

.reading-progress-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.35rem 0;
  max-width: 320px;
}

.reading-progress-box__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-meta);
}

.reading-progress-box__pct {
  color: var(--color-accent-text);
}

.reading-progress-box .reading-progress-bar {
  display: block;
  opacity: 1;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  background-color: var(--color-code-inline);
}

.reading-progress-box .reading-progress-bar::-webkit-progress-bar {
  background-color: var(--color-code-inline);
  border-radius: 999px;
}

.reading-progress-box .reading-progress-bar::-webkit-progress-value {
  background-color: var(--color-accent);
  border-radius: 999px;
}

.reading-progress-box .reading-progress-bar::-moz-progress-bar {
  background-color: var(--color-accent);
  border-radius: 999px;
}

.reading-card__synopsis {
  margin: 0.25rem 0 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
}

.reading-synopsis__full p {
  margin: 0 0 0.65rem;
}

.reading-synopsis__full p:last-child {
  margin-bottom: 0;
}

.reading-synopsis__toggle {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent-text);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reading-synopsis__toggle:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   FORMULÁRIO DE CONTATO NATIVO ([vc_contato_form])
   ========================================================================== */
.vc-contact-form-wrap {
  margin: 1.75rem 0 2.25rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

.vc-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vc-contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .vc-contact-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vc-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vc-contact-form__field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.vc-contact-form__hint {
  font-weight: 400;
  color: var(--color-meta);
  font-size: var(--text-xs);
}

.vc-contact-form__field input[type="text"],
.vc-contact-form__field input[type="email"],
.vc-contact-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: border-color 0.15s ease;
}

.vc-contact-form__field input:focus,
.vc-contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.vc-contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.vc-contact-form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.vc-contact-form__submit {
  padding: 0.6rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.vc-contact-form__submit:hover {
  opacity: 0.9;
}

.vc-contact-form__privacy {
  font-size: var(--text-xs);
  color: var(--color-meta);
}

.vc-contact-form__privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vc-contact-notice {
  margin: 0 0 1.15rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.vc-contact-notice--ok {
  background-color: var(--color-highlight-bg);
  border: 1px solid var(--color-accent);
  color: var(--color-accent-text);
}

.vc-contact-notice--err {
  background-color: color-mix(in srgb, #b83232 10%, transparent);
  border: 1px solid #b83232;
  color: var(--color-text);
}

.vc-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.reading-card__actions {
  margin-top: 0.45rem;
}

.reading-card__review-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: var(--color-highlight-bg);
  color: var(--color-accent-text);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.reading-card__review-link:hover {
  transform: translateX(2px);
}

/* Grade compacta da estante (Não iniciados) */
.readings-shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem 1.1rem;
}

.reading-shelf-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.reading-shelf-item__cover-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.reading-shelf-item:hover .reading-shelf-item__cover-wrap {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
}

.reading-shelf-item__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reading-shelf-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.reading-shelf-item__title {
  margin: 0;
  font-family: 'Atkinson Hyperlegible Next', -apple-system, sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.32;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reading-shelf-item__title-link {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.reading-shelf-item__title-link:hover,
.reading-shelf-item__title-link:focus-visible {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.reading-shelf-item__author {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-meta);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.readings-empty-state {
  margin: 2.5rem 0;
  padding: 2rem 1.25rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed var(--color-border-strong);
  color: var(--color-meta);
  font-size: var(--text-base);
}

@media (max-width: 680px) {
  .readings-shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem 0.85rem;
  }

  .reading-card,
  .reading-card--featured {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .readings-shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
