/* =============================================
   CLAQUETE — main.css  (v2.1.0)
   Layout editorial com hero mosaic redesenhado,
   16:9 padrão, dropdowns, search overlay e
   foco em LCP/INP.
   ============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--blue); color: var(--paper); }

:root {
  --bg:        #f7f5f0;
  --paper:     #fdfcf8;
  --ink:       #0a0a0a;
  --ink-2:     #2a2a2a;
  --ink-3:     #4d4d4d; /* contraste AAA: ~6.4:1 sobre o bg */
  --ink-4:     #767168;
  --rule:      #1a1a1a;
  --rule-soft: #d8d4ca;

  --blue-light: #1d96d4;
  --blue:       #0a4f63;
  --blue-deep:  #0d3a4b;
  --blue-darker:#062a36;
  --blue-soft:  #e8f0f3;

  --accent:    #ff5722;

  --footer-bg:  #0a0a0a;
  --footer-text:#fdfcf8;

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --ease-out:    cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --section-gap: 56px;
  --logo-scale: 1.15;
  --title-scale: 1;

  --r-hero-main: 16/9;
  --r-hero-sec: 16/9;
  --r-criticas: 16/9;
  --r-latest:   16/9;
  --r-archive:  16/9;
  --r-related:  16/9;
  --r-single:   16/9;

  --single-max-w: 760px;
  --single-feat-max-w: 1180px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  text-rendering: optimizeSpeed;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; padding-left: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { display: block; }

/* Reset agressivo de bullets em qualquer contexto fora do conteúdo */
.site-header ul, .site-header ol, .site-header li,
.site-footer ul, .site-footer ol, .site-footer li,
.mobile-nav ul, .mobile-nav ol, .mobile-nav li,
.search-overlay ul, .search-overlay li,
.archive-section ul:not(.single-content ul),
.archive-section ol:not(.single-content ol),
.archive-section li:not(.single-content li),
.related-block ul, .related-block li,
.author-bio ul, .author-bio li,
.widget ul, .widget li,
nav ul, nav ol, nav li {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
}
.nav-submenu, .nav-submenu li { list-style: none !important; padding-left: 0 !important; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.025) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

/* ── Wrap ── */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 2.25rem; position: relative; z-index: 2; }
.wrap-narrow { max-width: var(--single-max-w); padding: 0 1.5rem; }

/* ═══ TICKER ═══ */
.ticker-bar {
  background: var(--ink);
  color: var(--paper);
  padding: 0;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 102;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
}
/* Sticky opcional via Personalizar → Barra de Últimas → "Fixar na rolagem" */
.ticker-bar.is-sticky {
  position: sticky;
  top: 0;
  --ticker-h: 33px; /* altura aproximada do ticker — usada pra empurrar o header sticky */
}
/* Quando o ticker está sticky, empurra o header sticky pra baixo dele.
 * Usa -1px de overlap pra eliminar gap de subpixel rendering (a altura real
 * do ticker é ~32.8px e os browsers arredondam pra cima criando linha 1px). */
.ticker-bar.is-sticky ~ .site-header {
  top: calc(var(--ticker-h, 33px) - 1px);
}
/* Compensa a barra do admin do WP (logado) — somando à altura do ticker quando sticky */
body.admin-bar .ticker-bar.is-sticky { top: 32px; }
body.admin-bar .ticker-bar.is-sticky ~ .site-header { top: calc(32px + var(--ticker-h, 33px) - 1px); }
@media (max-width: 782px) {
  body.admin-bar .ticker-bar.is-sticky { top: 46px; }
  body.admin-bar .ticker-bar.is-sticky ~ .site-header { top: calc(46px + var(--ticker-h, 33px) - 1px); }
}
.live-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--accent); color: #fff;
  padding: 0.5rem 1.8rem 0.5rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  margin-right: -0.75rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.live-dot {
  width: 5px; height: 5px; background: #fff; border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.7); } }

.ticker-mask { overflow: hidden; position: relative; display: flex; align-items: center; padding: 0.5rem 0; }
.ticker-mask::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 24px; background: linear-gradient(to right, var(--ink), transparent);
  z-index: 2; pointer-events: none;
}
.ticker-content {
  display: flex; gap: 3rem;
  white-space: nowrap;
  animation: scroll 60s linear infinite;
  padding-left: 1.5rem;
  will-change: transform;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-content span::before { content: '◇'; opacity: 0.5; margin-right: 0.6rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ═══ HEADER ═══ */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(247, 245, 240, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.04); }

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0.8rem 0;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out);
}
.brand:hover { transform: scale(1.015); }
.brand-icon {
  height: 0.92em; width: auto;
  font-size: calc(clamp(1.45rem, 2.3vw, 1.85rem) * var(--logo-scale));
  flex-shrink: 0;
  fill: var(--blue-light); stroke: none;
  transition: transform 0.5s var(--ease-out), fill 0.3s;
  align-self: baseline;
  transform: translateY(0.12em);
}
.brand:hover .brand-icon { transform: translateY(0.05em) rotate(-5deg); }

.brand-text {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 900;
  font-size: calc(clamp(1.45rem, 2.3vw, 1.85rem) * var(--logo-scale));
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--blue);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  white-space: nowrap;
}
.brand-text sup {
  font-size: 0.32em; font-style: normal; font-weight: 500;
  vertical-align: super; margin-left: 0.18rem;
  color: var(--blue-light); font-family: var(--f-mono); letter-spacing: 0;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
}
.btn-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  background: transparent;
}
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon:active { transform: scale(0.94); }
.btn-icon:hover { background: var(--ink); color: var(--paper); }

.btn-newsletter {
  padding: 0 1rem;
  height: 44px;
  display: inline-flex; align-items: center;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  background: var(--blue);
  color: var(--paper);
  border: 1px solid var(--blue);
  transition: all 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn-newsletter:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-newsletter:active { transform: scale(0.97); }

/* ═══ NAV (com dropdown moderno) ═══ */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.05rem;
  list-style: none;
}
.main-nav-list > li { position: relative; }
.main-nav-list a {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.55rem 0.95rem;
  color: var(--ink-2);
  position: relative;
  transition: color 0.2s var(--ease-out);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.main-nav-list a:hover { color: var(--blue); }
.main-nav-list .current-menu-item > a,
.main-nav-list a.active { color: var(--ink); font-weight: 700; }
.main-nav-list .current-menu-item > a::after,
.main-nav-list a.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0.05rem;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: var(--blue-light);
  border-radius: 50%;
}
.nav-caret { display: inline-flex; transition: transform 0.25s var(--ease-out); }
.nav-caret svg { width: 9px; height: 9px; }
.main-nav-list .nav-toggle-sub { display: none; }

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  box-shadow: 0 16px 40px -8px rgba(10, 24, 32, 0.18), 0 4px 12px rgba(10, 24, 32, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 110;
  list-style: none;
}
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}
.has-dropdown:hover > .nav-submenu,
.has-dropdown:focus-within > .nav-submenu,
.has-dropdown.is-open > .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.has-dropdown:hover > a > .nav-caret,
.has-dropdown:focus-within > a > .nav-caret,
.has-dropdown.is-open > a > .nav-caret { transform: rotate(180deg); }
.nav-submenu a {
  font-style: normal;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  color: var(--ink-2);
  width: 100%;
  border-radius: 2px;
  letter-spacing: 0;
  font-variation-settings: normal;
}
.nav-submenu a:hover { background: var(--blue-soft); color: var(--blue); }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--rule);
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--rule);
  z-index: 200;
  padding: 4.5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
}
.mobile-nav-close svg { width: 18px; height: 18px; }

.mobile-nav-wrap { display: flex; flex-direction: column; }
.mobile-nav-list { display: flex; flex-direction: column; list-style: none; }
.mobile-nav-list > li { position: relative; border-bottom: 1px solid var(--rule-soft); }
.mobile-nav-list > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 0;
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mobile-nav-list > li > a > .nav-caret { display: none; }
.mobile-nav-list .nav-toggle-sub {
  display: inline-flex;
  position: absolute;
  right: 0; top: 0.7rem;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: transparent;
  transition: transform 0.25s var(--ease-out);
  z-index: 2;
}
.mobile-nav-list .nav-toggle-sub svg { width: 14px; height: 14px; }
.mobile-nav-list li.is-open > .nav-toggle-sub { transform: rotate(180deg); }

/* Submenu mobile — minimalista. Mesma família/peso dos pais, só menor +
   dividers iguais + bullet sutil pra hierarquia. Sem bg ou borda lateral. */
.mobile-nav .nav-submenu,
.mobile-nav .sub-menu {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  display: none !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 0 0.4rem 0 !important;
  box-shadow: none !important;
  list-style: none !important;
}
.mobile-nav .nav-submenu::before { display: none !important; }

.mobile-nav .has-dropdown.is-open > .nav-submenu,
.mobile-nav .has-dropdown.is-open > .sub-menu {
  display: block !important;
  animation: claquete-submenu-in 0.28s var(--ease-out);
}
@keyframes claquete-submenu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav .nav-submenu li,
.mobile-nav .sub-menu li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: block !important;
}

.mobile-nav .nav-submenu li > a,
.mobile-nav .sub-menu li > a {
  display: flex !important;
  align-items: center !important;
  font-family: var(--f-display) !important;
  font-style: normal !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.012em !important;
  padding: 0.85rem 0 0.85rem 1.25rem !important;
  color: var(--ink-2) !important;
  border-bottom: 1px solid var(--rule-soft) !important;
  line-height: 1.2 !important;
  transition: color 0.18s var(--ease-out), padding-left 0.2s var(--ease-out) !important;
  position: relative;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
/* bullet point sutil pra mostrar hierarquia */
.mobile-nav .nav-submenu li > a::before {
  content: '' !important;
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: 0.35;
  transition: opacity 0.2s, background 0.2s, transform 0.2s var(--ease-out);
}
.mobile-nav .nav-submenu li > a::after,
.mobile-nav .sub-menu li > a::after { display: none !important; }

/* último item do submenu sem divider duplicado */
.mobile-nav .nav-submenu li:last-child > a,
.mobile-nav .sub-menu li:last-child > a { border-bottom: none !important; }

.mobile-nav .nav-submenu li > a:hover,
.mobile-nav .nav-submenu li > a:focus-visible {
  color: var(--ink) !important;
  padding-left: 1.45rem !important;
}
.mobile-nav .nav-submenu li > a:hover::before,
.mobile-nav .nav-submenu li > a:focus-visible::before {
  opacity: 1;
  background: var(--blue);
}
.mobile-nav .nav-submenu .current-menu-item > a {
  color: var(--ink) !important;
  font-weight: 700 !important;
}
.mobile-nav .nav-submenu .current-menu-item > a::before { opacity: 1; background: var(--accent); }

.mobile-nav-bottom { margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--rule-soft); }
.mobile-nav-bottom .btn-newsletter { width: 100%; height: 48px; justify-content: center; }
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.nav-backdrop.active { opacity: 1; pointer-events: all; }

/* ═══ SEARCH OVERLAY ═══ */
.search-overlay {
  position: fixed; inset: 0;
  z-index: 220;
  background: rgba(247, 245, 240, 0.55);
  backdrop-filter: blur(20px) saturate(110%);
  -webkit-backdrop-filter: blur(20px) saturate(110%);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(4rem, 14vh, 10rem) 1.5rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.search-overlay[hidden] { display: none; }
.search-overlay.is-open { opacity: 1; pointer-events: auto; }
.search-overlay-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease-out);
}
.search-overlay-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search-overlay-close svg { width: 20px; height: 20px; }

.search-overlay-inner {
  width: 100%;
  max-width: 760px;
  transform: translateY(-12px);
  transition: transform 0.35s var(--ease-out);
}
.search-overlay.is-open .search-overlay-inner { transform: translateY(0); }

.search-overlay-form { display: flex; flex-direction: column; gap: 1.5rem; }
.search-overlay-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.55rem 0.85rem 0.55rem 1.1rem;
  gap: 0.65rem;
  box-shadow: 0 24px 60px -16px rgba(10, 24, 32, 0.25);
}
.search-overlay-icon { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }
.search-overlay-input {
  border: none; outline: none; background: transparent;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 0.65rem 0;
  width: 100%;
  font-variation-settings: "opsz" 96, "SOFT" 50;
}
.search-overlay-input::placeholder { color: var(--ink-4); font-style: italic; }
.search-overlay-submit {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.15rem;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  border: none;
}
.search-overlay-submit:hover:not(:disabled) { background: var(--blue); }
.search-overlay-submit:disabled,
.search-overlay-submit.is-disabled {
  background: var(--rule-soft);
  color: var(--ink-4);
  cursor: not-allowed;
  opacity: 0.85;
}

.search-overlay-suggestions { display: flex; flex-direction: column; gap: 0.65rem; }
.search-overlay-suggestions-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 600;
}
.search-overlay-suggestions-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-suggest-chip {
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule-soft);
  padding: 0.65rem 1.05rem;
  min-height: 40px;
  transition: all 0.2s var(--ease-out);
}
.search-suggest-chip:hover { background: var(--blue); color: var(--paper); border-color: var(--blue); }

body.search-open { overflow: hidden; }

/* ═══ Section header ═══ */
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 2rem;
}
.section-title {
  font-family: var(--f-display);
  font-size: calc(clamp(1.85rem, 3vw, 2.7rem) * var(--title-scale));
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--ink);
}
.section-title em { font-style: italic; font-weight: 400; color: var(--blue); }

/* Variante "fancy" usada nas críticas e em "Últimas" */
.section-title-fancy {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.section-title-em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.section-title-strong {
  font-weight: 800;
  font-style: normal;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.section-title-sep {
  font-style: italic;
  color: var(--ink-3);
  font-weight: 300;
  margin: 0 0.05em;
}

.section-link {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  align-self: end;
  padding-bottom: 0.2rem;
  white-space: nowrap;
}
.section-link:hover { border-bottom-color: var(--blue); color: var(--blue-deep); }

/* ═══ HERO MOSAIC (1:2:2) — REDESENHADO ═══ */
.hero-mosaic { padding: 1.5rem 0 0; margin: 0; }

.hero-mosaic-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
  min-height: 0;
}

.hero-slot { position: relative; min-width: 0; min-height: 0; }
.hero-slot-main { grid-column: 1 / 2; grid-row: 1 / 3; }
.hero-slot-2    { grid-column: 2 / 3; grid-row: 1 / 2; }
.hero-slot-3    { grid-column: 3 / 4; grid-row: 1 / 2; }
.hero-slot-4    { grid-column: 2 / 3; grid-row: 2 / 3; }
.hero-slot-5    { grid-column: 3 / 4; grid-row: 2 / 3; }

.hero-card-mosaic {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  text-decoration: none;
}
.hero-thumb-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.2s var(--ease-out), filter .4s var(--ease-out);
  z-index: 1;
}
.hero-card-mosaic:hover .hero-card-img {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.02);
}
.hero-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--blue-soft), var(--rule-soft));
}
.hero-card-mosaic-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg,
      rgba(6,42,54,0.0) 0%,
      rgba(6,42,54,0.25) 45%,
      rgba(6,42,54,0.85) 80%,
      rgba(6,42,54,0.96) 100%
    );
  pointer-events: none;
}
.hero-card-mosaic.is-main .hero-card-mosaic-overlay {
  background:
    linear-gradient(180deg,
      rgba(6,42,54,0.0) 0%,
      rgba(6,42,54,0.18) 35%,
      rgba(6,42,54,0.78) 78%,
      rgba(6,42,54,0.96) 100%
    );
}
.hero-card-mosaic-body {
  position: relative;
  width: 100%;
  padding: 1.1rem 1.25rem 1.15rem;
  color: #fff;
}
.hero-card-mosaic.is-main .hero-card-mosaic-body { padding: 2rem 2.25rem 2rem; }

.hero-card-mosaic-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.38rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: #fff;
  font-variation-settings: "opsz" 36, "SOFT" 50;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-card-mosaic.is-main .hero-card-mosaic-title {
  font-size: clamp(1.95rem, 3vw, 2.95rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-weight: 500;
  -webkit-line-clamp: 4;
  text-shadow: 0 4px 22px rgba(0,0,0,0.5);
}
.hero-card-mosaic-deck {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.86);
  max-width: 56ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
}

/* — Variante "editorial": main esquerda full-height, 4 cards à direita em 2x2 — */
.hero-layout-editorial .hero-mosaic-grid {
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
/* — Variante "magazine": main em cima full-width, 4 menores embaixo — */
.hero-layout-magazine .hero-mosaic-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1.4fr 1fr;
}
.hero-layout-magazine .hero-slot-main { grid-column: 1 / -1; grid-row: 1 / 2; }
.hero-layout-magazine .hero-slot-2 { grid-column: 1; grid-row: 2; }
.hero-layout-magazine .hero-slot-3 { grid-column: 2; grid-row: 2; }
.hero-layout-magazine .hero-slot-4 { grid-column: 3; grid-row: 2; }
.hero-layout-magazine .hero-slot-5 { grid-column: 4; grid-row: 2; }

/* ═════════════════════════════════════════════
   ARCHIVE GRID — categoria, busca, home (3 col)
   ═════════════════════════════════════════════ */
/* Spacing model unificado:
   - Cada section sem padding-top/bottom próprio
   - Distância entre sections é SÓ via margin-top: var(--section-gap)
   - Variável --section-gap controlada no Personalizar (desk/mobile separados)
   - Espaço antes do footer/newsletter: padding-bottom no .site-main
*/
.archive-section { padding: 0; margin: 0; }
.hero-mosaic + .archive-section,
.archive-section + .archive-section,
.r7-section-wrap + .archive-section,
.archive-section + .r7-section-wrap,
.r7-header-wrap + .archive-section {
  margin-top: var(--section-gap);
}
/* Primeira section da home (quando não tem hero) ou de um arquivo:
   um respiro mínimo do header sticky */
.site-main > .archive-section:first-child,
.site-main > .archive-section:only-child { margin-top: 1.5rem; }
/* Espaço antes do que vem depois do main (newsletter/footer) */
.site-main { padding-bottom: var(--section-gap); }

.archive-hero {
  padding: 1rem 0 2.25rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 2.25rem;
}
.archive-title {
  font-family: var(--f-display);
  font-size: calc(clamp(2.2rem, 5vw, 3.6rem) * var(--title-scale));
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--ink);
}
.archive-title em { font-style: italic; color: var(--blue); font-weight: 400; }
.archive-description {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1.55;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.85rem;
}
.latest-grid { gap: 2.5rem 1.85rem; }

.grid-card { display: flex; flex-direction: column; }
.grid-card-link { display: flex; flex-direction: column; height: 100%; }
.grid-card-thumb {
  position: relative;
  aspect-ratio: var(--r-archive);
  overflow: hidden;
  background: var(--rule-soft);
  margin-bottom: 1rem;
}
.grid-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.grid-card:hover .grid-card-thumb img { transform: scale(1.05); }
.grid-card-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--rule-soft), var(--blue-soft));
}
.grid-card-chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(10, 79, 99, 0.94);
  color: #fff;
  padding: 0.3rem 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.grid-card-body { display: flex; flex-direction: column; flex: 1; }
.grid-card-title {
  font-family: var(--f-display);
  font-size: calc(1.32rem * var(--title-scale));
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
  color: var(--ink);
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.grid-card:hover .grid-card-title { color: var(--blue); }
.grid-card-author {
  font-family: var(--f-body);
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: -0.2rem;
  margin-bottom: 0.6rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.3;
}
.grid-card-author-by { color: var(--ink-3); font-style: italic; margin-right: 0.18em; opacity: 0.7; }
.grid-card-author a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.grid-card-author a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.grid-card-deck {
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grid-card-meta {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  gap: 0.5rem;
  font-weight: 500;
}
.grid-card-time { color: var(--accent); font-weight: 600; }

/* In-feed ad card */
.grid-card-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px dashed var(--rule-soft);
  min-height: 320px;
}
.grid-card-ad .ad-slot { width: 100%; height: 100%; }

/* ═══ Load more ═══ */
.load-more-wrap { display: flex; justify-content: center; margin-top: 3rem; padding-top: 0.5rem; }
.load-more {
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.load-more::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--ink);
  transition: left 0.4s var(--ease-out);
  z-index: 0;
}
.load-more:hover::before { left: 0; }
.load-more:hover { color: var(--paper); }
.load-more:hover .load-more-icon { transform: rotate(180deg); color: var(--paper); }
.load-more:active { transform: scale(0.98); }
.load-more > * { position: relative; z-index: 1; }
.load-more-icon { display: inline-block; width: 16px; height: 16px; transition: transform 0.5s var(--ease-out); }
.load-more.loading { pointer-events: none; color: var(--ink-3); }
.load-more.loading .load-more-icon { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-more.done { border-color: var(--ink-4); color: var(--ink-4); pointer-events: none; }

/* ═════════════════════════════════════════════
   SINGLE POST — sem sidebar, conteúdo centrado
   ═════════════════════════════════════════════ */
.single-main { padding-bottom: 4rem; }

.single-hero { padding: 3rem 0 2rem; }
.single-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.single-cat-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; }
.single-title {
  font-family: var(--f-display);
  font-size: calc(clamp(2.4rem, 5.5vw, 4.4rem) * var(--title-scale));
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  margin-bottom: 1.4rem;
}
.single-deck {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-3);
  margin-bottom: 2.25rem;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  max-width: 55ch;
}
.single-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  flex-wrap: wrap;
}
.single-meta-author { display: flex; align-items: center; gap: 0.85rem; }
.single-meta-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.single-meta-author-name { display: block; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.single-meta-author-role {
  display: block; font-family: var(--f-mono);
  font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-3);
}
.single-meta-info {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  display: flex;
  gap: 0.55rem;
  font-weight: 500;
}

.single-featured {
  margin: 0.5rem auto 3rem;
  max-width: var(--single-feat-max-w);
  padding: 0 2rem;
}
.single-featured-img {
  width: 100%;
  height: auto;
  background: var(--rule-soft);
  display: block;
}
.single-featured-caption {
  margin-top: 0.85rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

/* Layout sem sidebar: conteúdo centralizado */
.single-layout { display: block; }
.single-layout-no-sidebar { max-width: var(--single-max-w); margin: 0 auto; padding: 0 1.5rem; }
.single-content-col {
  max-width: var(--single-max-w);
  margin: 0 auto;
  width: 100%;
}

/* Conteúdo */
.single-content {
  font-size: 1.13rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.single-content > * { margin-bottom: 1.4rem; }
.single-content > *:last-child { margin-bottom: 0; }

.single-content p { font-family: var(--f-body); letter-spacing: -0.005em; }

.single-content.has-dropcap p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 4.2em;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.12em 0 0;
  color: var(--blue);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  font-family: var(--f-display);
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 2.5rem;
  font-variation-settings: "opsz" 96, "SOFT" 60;
}
.single-content h2 { font-size: 2rem; font-weight: 500; }
.single-content h3 { font-size: 1.55rem; font-weight: 500; }
.single-content h4 { font-size: 1.25rem; font-weight: 600; }

.single-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(10, 79, 99, 0.3);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.2s;
}
.single-content a:hover { text-decoration-color: var(--blue); }

.single-content blockquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.4;
  border-left: 3px solid var(--blue);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}

.single-content ul, .single-content ol { padding-left: 1.5rem; }
.single-content ul { list-style: disc; }
.single-content ol { list-style: decimal; }
.single-content li { margin-bottom: 0.5rem; }

/* ─── EMBEDS RESPONSIVOS ─────────────────────────────────────
   Garante que NADA dentro do post estoure a largura disponível —
   YouTube, Vimeo, Twitter/X, Instagram, Facebook, TikTok, iframes
   genéricos, vídeos nativos, oEmbeds do WP, etc.
   ──────────────────────────────────────────────────────────── */
.single-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.single-content > * { max-width: 100%; }

/* iframes / objects / embeds genéricos */
.single-content iframe,
.single-content object,
.single-content embed {
  max-width: 100%;
  border: none;
  display: block;
  margin: 1.75rem auto;
}

/* Vídeos nativos */
.single-content video,
.single-content audio {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.75rem auto;
}

/* YouTube, Vimeo, qualquer iframe de vídeo: força 16:9 + 100% width */
.single-content iframe[src*="youtube.com"],
.single-content iframe[src*="youtube-nocookie.com"],
.single-content iframe[src*="youtu.be"],
.single-content iframe[src*="vimeo.com"],
.single-content iframe[src*="player.twitch.tv"],
.single-content iframe[src*="dailymotion.com"],
.single-content iframe[src*="tiktok.com"] {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

/* WordPress oEmbed wrappers (.wp-block-embed) */
.single-content .wp-block-embed,
.single-content .wp-block-embed__wrapper {
  max-width: 100%;
  margin: 1.75rem auto;
}
.single-content .wp-block-embed iframe {
  max-width: 100% !important;
  width: 100% !important;
}
.single-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
}
.single-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 default */
}
.single-content .wp-block-embed.wp-has-aspect-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.single-content .wp-embed-aspect-1-1   .wp-block-embed__wrapper::before { padding-top: 100%; }
.single-content .wp-embed-aspect-4-3   .wp-block-embed__wrapper::before { padding-top: 75%; }
.single-content .wp-embed-aspect-9-16  .wp-block-embed__wrapper::before { padding-top: 177.77%; }
.single-content .wp-embed-aspect-1-2   .wp-block-embed__wrapper::before { padding-top: 200%; }
.single-content .wp-embed-aspect-21-9  .wp-block-embed__wrapper::before { padding-top: 42.85%; }

/* Twitter / X embeds */
.single-content .twitter-tweet,
.single-content blockquote.twitter-tweet,
.single-content .twitter-tweet-rendered,
.single-content [class*="twitter-tweet"] {
  max-width: 100% !important;
  margin: 1.75rem auto !important;
}

/* Instagram embeds */
.single-content .instagram-media,
.single-content blockquote.instagram-media {
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 1.75rem auto !important;
}

/* TikTok embeds */
.single-content .tiktok-embed,
.single-content blockquote.tiktok-embed {
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 1.75rem auto !important;
}

/* Facebook embeds */
.single-content .fb-post,
.single-content .fb-video,
.single-content .fb_iframe_widget,
.single-content .fb_iframe_widget span,
.single-content .fb_iframe_widget iframe {
  max-width: 100% !important;
  width: 100% !important;
}

/* Spotify, SoundCloud, Apple Music etc */
.single-content iframe[src*="spotify.com"],
.single-content iframe[src*="soundcloud.com"],
.single-content iframe[src*="music.apple.com"] {
  width: 100% !important;
}

/* Tabelas wide do post */
.single-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Pre/code blocks com scroll horizontal em vez de overflow */
.single-content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Imagens dentro do conteúdo: tamanho natural por padrão (NÃO forçar 100%) */
.single-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  display: block;
}
.single-content figure {
  margin: 2rem auto;
  max-width: 100%;
  display: block;
  text-align: center;
}
.single-content figure img { margin: 0 auto; }
.single-content figcaption {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.6rem;
}
/* Suporte a alinhamento do WP */
.single-content .alignleft  { float: left;  margin: 0.5rem 1.5rem 1rem 0; max-width: 50%; }
.single-content .alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; max-width: 50%; }
.single-content .aligncenter { margin-left: auto; margin-right: auto; }
.single-content .alignwide   { max-width: min(960px, 110%); margin-left: auto; margin-right: auto; }
.single-content .alignfull   { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Fallback: SE o usuário marcou no Personalizar pra forçar 100%, faz */
body.force-img-full .single-content img:not(.alignleft):not(.alignright) { width: 100%; }

.single-content code {
  font-family: var(--f-mono);
  background: var(--rule-soft);
  padding: 0.15em 0.4em;
  font-size: 0.92em;
  border-radius: 3px;
}
.single-content pre {
  font-family: var(--f-mono);
  background: var(--ink);
  color: var(--paper);
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}
.single-content pre code { background: transparent; padding: 0; color: inherit; }

/* Tags + share */
.single-tags {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.single-tags-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 600;
  margin-right: 0.4rem;
}
.single-tag {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 0.55rem 0.95rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.2s var(--ease-out);
}
.single-tag:hover { background: var(--blue); color: var(--paper); }

.single-share {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.single-share-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 600;
  margin-right: 0.5rem;
}
.single-share-btn {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 0.7rem 1rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.single-share-btn:hover { background: var(--ink); color: var(--paper); }

/* ═════════════════════════════════════════════
   AUTHOR BIO
   ═════════════════════════════════════════════ */
.author-bio {
  margin-top: 3.5rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  align-items: start;
  position: relative;
}
.author-bio::before {
  content: ''; position: absolute;
  top: -1px; left: -1px;
  width: 40px; height: 3px;
  background: var(--blue);
}
.author-bio-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-bio-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}
.author-bio-name {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 60;
}
.author-bio-name a:hover { color: var(--blue); }
.author-bio-text { font-size: 0.94rem; line-height: 1.55; color: var(--ink-3); margin-bottom: 0.85rem; }
.author-bio-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.author-bio-link {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s;
}
.author-bio-link:hover { color: var(--ink); }

/* ═════════════════════════════════════════════
   RELATED BLOCK
   ═════════════════════════════════════════════ */
.related-block { margin-top: 4rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.85rem; }
.related-card-link { display: flex; flex-direction: column; height: 100%; }
.related-card-thumb {
  aspect-ratio: var(--r-related);
  overflow: hidden;
  background: var(--rule-soft);
  margin-bottom: 0.95rem;
}
.related-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.related-card:hover .related-card-thumb img { transform: scale(1.05); }
.related-card-cat {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}
.related-card-title {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.related-card:hover .related-card-title { color: var(--blue); }
.related-card-meta {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule-soft);
  font-weight: 500;
}

/* ═════════════════════════════════════════════
   INLINE RECOMMENDATION
   ═════════════════════════════════════════════ */
/* ─── Inline rec — bem compacto, formato em "linha" ─── */
.inline-rec {
  margin: 1.5rem 0;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--blue);
  transition: all 0.25s var(--ease-out);
}
.inline-rec:hover {
  border-left-color: var(--accent);
  transform: translateX(2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}
.inline-rec-link { display: block; padding: 0.6rem 0.85rem; }
.inline-rec-eyebrow {
  display: none; /* eyebrow agora vai inline, junto com a categoria, pra economizar altura */
}
.inline-rec-body {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 0.95rem;
  align-items: center;
}
/* Thumb 16:9 — usa especificidade alta com .single-content pra vencer .single-content img */
.single-content .inline-rec-thumb,
.inline-rec .inline-rec-thumb {
  width: 96px; height: 54px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rule-soft);
  border-radius: 3px;
  flex-shrink: 0;
  margin: 0;
}
.single-content .inline-rec-thumb img,
.inline-rec .inline-rec-thumb img {
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  margin: 0;
}
.inline-rec-text { min-width: 0; }
.inline-rec-cat {
  font-family: var(--f-mono);
  font-size: 0.62rem; /* 20% maior que antes (0.52 → 0.62) */
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin: 0 0 0.18rem 0;
  line-height: 1.15;
}
.inline-rec-cat::before { content: '↳ '; margin-right: 0.18rem; opacity: 0.8; }
/* Título — overrides especifico p/ vencer .single-content h4 (que tem margin-top 2.5rem) */
.single-content .inline-rec-title,
.inline-rec .inline-rec-title {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.006em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-variation-settings: "opsz" 36, "SOFT" 50;
  margin: 0;
  margin-top: 0; /* override explicito do .single-content h4 margin-top: 2.5rem */
}
.inline-rec-arrow {
  font-size: 1.05rem;
  color: var(--blue);
  font-weight: 300;
  transition: transform 0.3s var(--ease-out);
  line-height: 1;
}
.inline-rec:hover .inline-rec-arrow { transform: translateX(3px); color: var(--accent); }

@media (max-width: 540px) {
  .inline-rec-body { grid-template-columns: 80px 1fr auto; gap: 0.7rem; align-items: center; }
  .single-content .inline-rec-thumb,
  .inline-rec .inline-rec-thumb { width: 80px; height: 45px; }
  .inline-rec-cat { font-size: 0.58rem; line-height: 1.1; margin-bottom: 0.15rem; }
  .single-content .inline-rec-title,
  .inline-rec .inline-rec-title { font-size: 0.88rem; line-height: 1.2; -webkit-line-clamp: 3; }
  .inline-rec-link { padding: 0.55rem 0.7rem; }
}

/* ═════════════════════════════════════════════
   R7 ADS (gpt.js)
   ═════════════════════════════════════════════ */
.r7-slot {
  margin: 1rem auto;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.r7-in-content { margin: 2rem auto; }
.r7-section-wrap { display: flex; justify-content: center; }

.r7-sticky-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--paper);
  border-top: 1px solid var(--rule-soft);
  box-shadow: 0 -8px 24px -8px rgba(10, 24, 32, 0.12);
  padding: 0.6rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 0.3s var(--ease-out);
}
.r7-sticky-bottom.is-hidden { transform: translateY(110%); }
.r7-sticky-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 50px;
}
.r7-sticky-close {
  position: absolute;
  top: -14px;
  right: 0.6rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.1rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--paper);
  z-index: 1;
}
body.has-sticky-r7 { padding-bottom: 90px; }
@media (min-width: 768px) {
  body.has-sticky-r7 { padding-bottom: 110px; }
}

/* ═════════════════════════════════════════════
   AD SLOTS
   ═════════════════════════════════════════════ */
/* Slot container — INVISÍVEL por padrão.
   Só ganha decoração visual quando o AdSense/R7 efetivamente preenche
   (data-ad-state="filled" ou tem <iframe> dentro). Slot vazio = nada
   na tela, sem caixa cinza, sem reservar altura. */
.ad-slot {
  margin: 1.5rem 0;
  display: block;
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  min-height: 0;
  overflow: visible;
}
.ad-slot[data-ad-state="filled"],
.ad-slot:has(iframe) {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-label {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  font-weight: 500;
  position: relative;
  z-index: 1;
  display: none;
}
/* Esconde slots que o JS marcou como unfilled / never-loaded */
.ad-slot[data-ad-state="unfilled"],
.ad-slot[data-ad-state="never-loaded"] {
  display: none !important;
}

.ad-slot-banner { margin: 1.5rem 0 2rem; }
.ad-slot-large  { margin: 2rem 0; }
.ad-slot-card   { margin: 0; width: 100%; height: 100%; }

/* ═════════════════════════════════════════════
   NEXT POST
   ═════════════════════════════════════════════ */
/* Sentinel é um container DE TAMANHO REAL (não 1px) — assim o skeleton
   ocupa espaço próprio e empurra o footer pra baixo, sem sobrepor. */
.next-post-sentinel {
  margin-top: 2rem;
  display: block;
  width: 100%;
  contain: layout;
}
.next-post-loader {
  max-width: var(--single-max-w);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
/* O loader fica visível ASSIM QUE o sentinel entra na tela */
.next-post-sentinel.visible .next-post-loader { opacity: 1; }
/* E somem TODOS quando exausted (se o JS marcar) */
.next-post-sentinel[hidden],
.next-post-sentinel.exhausted { display: none !important; }
.next-post-loader-text {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: center;
}
.next-post-loader-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--rule-soft);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.next-post-skeleton {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
.next-post-skeleton .sk {
  background: linear-gradient(90deg, var(--rule-soft) 0%, rgba(216,212,202,0.4) 50%, var(--rule-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 2px;
}
.next-post-skeleton .sk-eyebrow { height: 12px; width: 90px; }
.next-post-skeleton .sk-title-1 { height: 38px; width: 95%; }
.next-post-skeleton .sk-title-2 { height: 38px; width: 70%; }
.next-post-skeleton .sk-meta    { height: 14px; width: 220px; margin-top: 0.5rem; }
.next-post-skeleton .sk-img     { height: 0; padding-bottom: 56.25%; width: 100%; margin: 1rem 0; }
.next-post-skeleton .sk-line    { height: 14px; width: 100%; }
.next-post-skeleton .sk-line.short { width: 65%; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══ FALLBACKS de imagem e avatar quebrados ou ausentes ═══ */
.image-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--blue-soft), var(--rule-soft));
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.image-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 49%, rgba(10,79,99,0.06) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(10,79,99,0.04) 50%, transparent 51%);
  background-size: 24px 24px;
}
.image-fallback::after {
  content: '';
  width: 28%; max-width: 64px;
  aspect-ratio: 1;
  background-color: rgba(10, 79, 99, 0.25);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.6'><rect x='3' y='4' width='18' height='16' rx='1'/><circle cx='8.5' cy='9.5' r='1.5'/><path d='M21 16l-5-5-9 9'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.6'><rect x='3' y='4' width='18' height='16' rx='1'/><circle cx='8.5' cy='9.5' r='1.5'/><path d='M21 16l-5-5-9 9'/></svg>") center/contain no-repeat;
  position: relative;
  z-index: 1;
}
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: #fff;
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1;
}
.single-meta-avatar.avatar-fallback { width: 40px; height: 40px; font-size: 1rem; }
.author-bio-avatar.avatar-fallback  { width: 96px; height: 96px; font-size: 2.4rem; }
.next-post-container { position: relative; }
.next-post-container .single-post-loaded {
  position: relative;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--rule-soft);
  animation: fadeInUp 0.6s var(--ease-out) backwards;
}
.next-post-flag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--paper);
  background: var(--accent);
  padding: 0.35rem 0.7rem;
  margin-bottom: 1.25rem;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══ Page (estática) ═══ */
.page-article { max-width: var(--single-max-w); margin: 3rem auto 4rem; padding: 0 1.5rem; }
.page-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--ink); }
.page-title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

/* ═══ 404 ═══ */
.error-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 0;
  max-width: 600px;
}
.error-eyebrow { font-family: var(--f-display); font-style: italic; font-size: 6rem; font-weight: 600; color: var(--blue); line-height: 1; margin-bottom: 1rem; }
.error-title   { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.025em; margin-bottom: 1rem; }
.error-deck    { color: var(--ink-3); font-size: 1.1rem; line-height: 1.55; margin-bottom: 2rem; max-width: 50ch; }
.error-actions { margin-bottom: 2rem; }
.error-search input[type="search"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  outline: none;
}

/* ═══ Newsletter banner ═══ */
.newsletter-banner {
  background: var(--blue-soft);
  border: 1px solid var(--blue);
  padding: 2.75rem 2.5rem;
  margin: 3.5rem 0 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.newsletter-banner-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.newsletter-banner h3 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
  font-variation-settings: "opsz" 144;
}
.newsletter-banner h3 em { font-style: italic; font-weight: 400; color: var(--blue); font-variation-settings: "opsz" 144, "SOFT" 100; }
.newsletter-banner p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; max-width: 50ch; }
.newsletter-form { display: flex; border: 1px solid var(--ink); background: var(--paper); }
.newsletter-form input {
  flex: 1; padding: 0.95rem 1.2rem; border: none; background: transparent;
  font-family: var(--f-body); font-size: 0.92rem; color: var(--ink); outline: none; min-width: 0;
}
.newsletter-form input::placeholder { color: var(--ink-4); }
.newsletter-form button {
  padding: 0.95rem 1.6rem; background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 600; transition: background 0.2s; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--blue); }

/* ═══ Footer ═══ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 4rem 0 2rem; }

/* Grid base: cresce conforme nº de colunas ativas (configurável no Personalizar) */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; /* default = brand + 3 colunas */
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}
/* Variantes por nº de colunas totais (brand + N) */
.footer-top.footer-cols-4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-top.footer-cols-3 { grid-template-columns: 2fr 1fr 1fr; }
.footer-top.footer-cols-2 {
  grid-template-columns: 1.4fr 1fr;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.footer-top.footer-cols-1 {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  gap: 1.5rem;
}
.footer-top.footer-cols-1 .footer-brand { justify-content: center; }
.footer-top.footer-cols-1 .footer-tagline { margin-left: auto; margin-right: auto; }
.footer-brand { display: inline-flex; align-items: baseline; gap: 0.55rem; margin-bottom: 1rem; font-size: 2.25rem; }
.footer-brand .brand-icon { fill: var(--blue-light); }
.footer-brand .brand-text { font-size: calc(2.25rem * var(--logo-scale)); color: var(--footer-text); line-height: 1; }
.footer-brand .brand-text sup { color: var(--blue-light); }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.6; max-width: 38ch; margin-bottom: 1.25rem; }

/* ─── Redes sociais no rodapé ─── */
.footer-social {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-social li { list-style: none; padding: 0; margin: 0; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.footer-social-link:hover,
.footer-social-link:focus-visible {
  background: var(--blue-light);
  color: #fff;
  border-color: var(--blue-light);
  transform: translateY(-1px);
}
.footer-social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ─── Texto livre (HTML) no rodapé ─── */
.footer-html-text {
  color: rgba(255,255,255,0.62);
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 38ch;
}
.footer-html-text p { margin: 0 0 0.45rem 0; }
.footer-html-text p:last-child { margin-bottom: 0; }
.footer-html-text a {
  color: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: color 0.2s, border-color 0.2s;
}
.footer-html-text a:hover { color: var(--blue-light); border-bottom-color: var(--blue-light); }
.footer-html-text strong { color: rgba(255,255,255,0.88); font-weight: 600; }
.footer-col h4,
.footer-col-title {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { list-style: none; padding: 0; margin: 0; }
.footer-col a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s, padding-left 0.2s var(--ease-out);
}
.footer-col a:hover { color: var(--footer-text); padding-left: 0.4rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 500;
}
.footer-credit a {
  color: var(--paper);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.footer-credit a:hover { color: var(--blue-light); border-bottom-color: var(--blue-light); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* Comments */
.comments-section { margin-top: 4rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.comments-title { font-family: var(--f-display); font-size: 1.65rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.comments-list { padding-left: 0; }
.comments-list li { list-style: none; }

/* Pagination */
.pagination, .nav-links {
  display: flex; justify-content: center; gap: 0.4rem;
  margin-top: 3rem; flex-wrap: wrap;
}
.pagination a, .pagination span,
.nav-links a, .nav-links span {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--rule-soft);
  color: var(--ink);
  transition: all 0.2s;
}
.pagination .current,
.pagination a:hover,
.nav-links .current,
.nav-links a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Empty / search-form fallback */
.empty {
  padding: 4rem 0; text-align: center;
  font-family: var(--f-display); font-style: italic;
  font-size: 1.4rem; color: var(--ink-3);
}
.search-form { display: flex; border: 1px solid var(--ink); max-width: 480px; }
.search-form input[type="search"] {
  flex: 1; padding: 0.9rem 1rem;
  border: none; outline: none;
  background: var(--paper); font-family: inherit; font-size: 0.95rem;
}
.search-form button {
  background: var(--ink); color: var(--paper);
  padding: 0.9rem 1.4rem;
  font-family: var(--f-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* Widgets */
.widget { background: var(--paper); border: 1px solid var(--rule-soft); padding: 1.5rem; }
.widget-title {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 1rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ═══ CRÍTICAS — seções especiais ═══ */
.archive-section-criticas .section-header { margin-bottom: 1.75rem; }
.criticas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}
.criticas-grid .grid-card-thumb { aspect-ratio: var(--r-criticas); }
.criticas-grid .grid-card-title {
  font-size: calc(1.18rem * var(--title-scale));
  -webkit-line-clamp: 3;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.criticas-grid .grid-card-deck { display: none; }
.criticas-grid .grid-card-author {
  margin-bottom: 0;
  padding-top: 0.25rem;
  font-size: 0.68rem;
  color: var(--ink-3);
}
.criticas-grid .grid-card-author a { color: var(--blue); }
.criticas-grid .grid-card-meta { font-size: 0.58rem; }

/* .archive-section-latest gap herdado do seletor genérico */

/* ═══ READING PROGRESS BAR ═══ */
/* Ordem visual desejada: ticker (se sticky) > header (sticky) > reading-progress
 * Por isso a barra fica ABAIXO do header (não no top:0 absoluto).
 *
 * Em todos os cenários abaixo aplicamos -1px de overlap no `top` pra eliminar
 * o gap de subpixel rendering — a altura real do header costuma ser fracionária
 * (ex.: 70.66px) e os browsers arredondam pra cima criando uma linha de 1px
 * visível entre header e progress bar. Como a barra é gradiente fino sobre fundo
 * com leve transparência, sobrepor 1px do header não produz artefato visual. */
.reading-progress {
  position: fixed;
  top: calc(var(--header-h, 71px) - 1px); /* logo abaixo do header sticky, com overlap */
  left: 0; right: 0;
  height: 7px;
  background: rgba(0, 0, 0, 0.07);
  z-index: 99; /* abaixo do header (100) e do ticker (102) — empilha visualmente */
  pointer-events: none;
  overflow: hidden;
}
/* Quando o ticker está sticky, soma sua altura ao deslocamento */
body.has-sticky-ticker .reading-progress {
  top: calc(var(--ticker-h, 33px) + var(--header-h, 71px) - 1px);
}
/* Compensa a barra do admin do WP (logado) */
body.admin-bar .reading-progress { top: calc(32px + var(--header-h, 71px) - 1px); }
body.admin-bar.has-sticky-ticker .reading-progress {
  top: calc(32px + var(--ticker-h, 33px) + var(--header-h, 71px) - 1px);
}
@media (max-width: 782px) {
  body.admin-bar .reading-progress { top: calc(46px + var(--header-h, 71px) - 1px); }
  body.admin-bar.has-sticky-ticker .reading-progress {
    top: calc(46px + var(--ticker-h, 33px) + var(--header-h, 71px) - 1px);
  }
}
.reading-progress-bar {
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--blue-light) 0%, var(--blue) 50%, var(--accent) 100%);
  transition: width 0.18s linear;
  box-shadow: 0 0 10px rgba(29, 150, 212, 0.5);
  position: relative;
}
.reading-progress-bar::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 18px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6));
}

/* ═════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .archive-grid  { grid-template-columns: repeat(2, 1fr); }
  .related-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-top.footer-cols-4 { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  body::before { background-size: 18px 18px; }
  .wrap { padding: 0 1.25rem; }

  .header-row { grid-template-columns: auto auto; justify-content: space-between; gap: 0.75rem; }
  .header-actions { gap: 0.4rem; }
  .header-actions .btn-newsletter { display: none; }
  .brand { gap: 0.4rem; }

  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .live-pill { font-size: 0.58rem; padding: 0.5rem 1.5rem 0.5rem 1rem; }
  .ticker-content { font-size: 0.65rem; gap: 2rem; }

  /* Hero mosaic mobile — TODOS com o mesmo peso. Stack 1-col 16:9. */
  .hero-mosaic { padding: 1.25rem 0 0.5rem; }
  .hero-mosaic-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.85rem;
  }
  .hero-slot,
  .hero-slot-main,
  .hero-slot-secondary {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16/9;
  }
  /* Equaliza o "main": mesmo padding, mesmo título, sem deck */
  .hero-card-mosaic.is-main .hero-card-mosaic-body { padding: 1.1rem 1.25rem 1.15rem; }
  .hero-card-mosaic.is-main .hero-card-mosaic-title {
    font-size: clamp(1.2rem, 4.6vw, 1.5rem);
    line-height: 1.22;
    letter-spacing: -0.012em;
    font-variation-settings: "opsz" 36, "SOFT" 50;
    font-weight: 600;
    -webkit-line-clamp: 3;
  }
  .hero-card-mosaic.is-main .hero-card-mosaic-deck { display: none; }

  .hero-layout-magazine .hero-mosaic-grid {
    grid-template-columns: 1fr;
  }
  .hero-layout-magazine .hero-slot-main { grid-column: auto; }

  .hero-mosaic { padding: 1rem 0 0; }
  .archive-hero { padding: 0.5rem 0 1.5rem; margin-bottom: 1.5rem; }
  .archive-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-card-title { font-size: calc(1.25rem * var(--title-scale)); }

  .single-hero { padding: 2rem 0 1.5rem; }
  .single-title { font-size: calc(clamp(2rem, 7vw, 2.8rem) * var(--title-scale)); }
  .single-deck { font-size: 1.1rem; }
  .single-featured { padding: 0 1.25rem; margin: 0.5rem auto 2rem; }

  .single-content { font-size: 1.05rem; line-height: 1.7; }
  .single-content.has-dropcap p:first-of-type::first-letter { font-size: 3.5em; }

  .author-bio { grid-template-columns: 72px 1fr; padding: 1.5rem; gap: 1rem; }
  .author-bio-avatar { width: 72px; height: 72px; }
  .author-bio-name { font-size: 1.35rem; }

  .related-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* inline-rec já é compacto, não precisa override aqui */

  .newsletter-banner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    margin: 2.25rem 0 0;
  }

  .footer-top,
  .footer-top.footer-cols-4,
  .footer-top.footer-cols-3,
  .footer-top.footer-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }
  .footer-top.footer-cols-1 { grid-template-columns: 1fr; }
  .footer-top .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  .ad-slot { margin: 1.5rem 0; }

  .search-overlay-close { top: 1rem; right: 1rem; }
}

@media (max-width: 760px) {
  .criticas-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

@media (max-width: 540px) {
  .wrap { padding: 0 1rem; }
  .single-meta { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .footer-top,
  .footer-top.footer-cols-4,
  .footer-top.footer-cols-3,
  .footer-top.footer-cols-2,
  .footer-top.footer-cols-1 {
    grid-template-columns: 1fr;
  }
  .author-bio { grid-template-columns: 1fr; text-align: left; }
  .author-bio-avatar { width: 64px; height: 64px; }
  /* inline-rec: mantém formato horizontal mesmo em mobile (regra principal em ~1629) */
  .criticas-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .single-content .alignleft, .single-content .alignright {
    float: none; max-width: 100%; margin: 1rem auto;
  }
}

/* Reduce motion */
@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;
  }
  .hero-card-img, .grid-card-thumb img, .related-card-thumb img { transform: none !important; }
}
