/* ============================================================
   Masculinidade Negra — article-v3.css
   Design System V3 Longform · Spec S098 c2 · 2026-05-17
   Implementado por ORION · Despachado por Stella (Opus 4.7)
   Status: smoke test pilot (1 página) — aguarda smoke test
   ≥3 páginas para status CANÔNICA (§10.5 CLAUDE.md)
   ============================================================ */

/* ── 1. Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

/* ── 2. Tokens :root ──────────────────────────────────────── */
:root {
  /* Cores — herdados do portal V3 */
  --ink:           #0f0f0f;
  --ink-2:         #3d3d3d;
  --ink-3:         #6b6b6b;
  --ink-4:         #a8a8a8;
  --paper:         #ffffff;
  --paper-reading: #fafaf8;    /* novo: canvas do corpo de texto — warm-paper sutil */
  --paper-2:       #f5f4f1;
  --paper-3:       #ecebe6;
  --line:          rgba(15,15,15,.08);
  --line-2:        rgba(15,15,15,.04);
  --red:           #d4301a;
  --red-deep:      #9a1e0f;
  --gold:          #c9a14a;
  --accent-soft:   rgba(212,48,26,.07); /* novo: fundo suave de callouts */

  /* Tipografia */
  --font-display:  'Inter Tight', 'HelveticaNeue', Arial, sans-serif;
  --font-body:     'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-ui:       'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;

  --weight-black:   900;
  --weight-bold:    700;
  --weight-medium:  500;
  --weight-regular: 400;
  --weight-light:   300;

  --lh-display: 1.02;
  --lh-heading: 1.18;
  --lh-body:    1.72;
  --lh-ui:      1.45;

  --ls-display:  -0.03em;
  --ls-heading:  -0.025em;
  --ls-body:      0.005em;
  --ls-eyebrow:   0.22em;
  --ls-mono:      0em;

  /* Espaçamentos — escala modular base-4 */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 120px;

  /* Layout */
  --wrap-outer:  1600px;
  --wrap-header:  820px;
  --wrap-body:     68ch;
  --wrap-note:     64ch;

  /* Bordas */
  --card-r:     6px;
  --note-r:     4px;
  --progress-h: 3px;

  /* Motion */
  --ease:     cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(0,.55,.45,1);
  --dur-fast: 150ms;
  --dur-mid:  250ms;
  --dur-slow: 400ms;

  /* Z-index */
  --z-base:     0;
  --z-content:  10;
  --z-overlay:  20;
  --z-header:   50;
  --z-progress: 51;
}

/* ── 3. Reset mínimo + base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--red); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── 4. Header sticky compartilhado com portal ────────────── */
header.top {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wrap-outer);
  margin: 0 auto;
  padding: 18px 32px;
  gap: 40px;
}
.marca {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.marca em {
  font-style: italic;
  font-weight: var(--weight-regular);
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  cursor: default;
  user-select: none;
  color: var(--ink);
}
nav.main {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
nav.main a {
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--ink-2);
  padding: 10px 14px;
  position: relative;
  transition: color var(--dur-fast);
}
nav.main a:hover { color: var(--red); }
nav.main a.active { color: var(--ink); }
.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: var(--weight-medium);
  color: var(--ink-2);
}
.ticker-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(212,48,26,.15);
}

/* Botão hamburguer mobile — escondido em desktop, exposto em <1100px */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 60;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform var(--dur-mid) var(--ease), opacity var(--dur-fast) var(--ease);
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Body lock quando drawer aberto */
body.nav-open { overflow: hidden; }

/* Indicador de progresso de leitura — borda inferior do header */
.reading-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: var(--progress-h);
  width: 0%;
  background: var(--red);
  transition: width 80ms linear;
  z-index: var(--z-progress);
}

/* ── 5. Estrutura de layout do leitor ─────────────────────── */
body {
  background: var(--paper-reading); /* canvas warm-paper no corpo */
}

.article-wrap {
  max-width: var(--wrap-outer);
  margin: 0 auto;
  padding: 0 32px;
}

.article-header {
  max-width: var(--wrap-header);
  margin: 0 auto;
  padding-top: var(--sp-7);  /* 48px de respiro pós-header sticky */
}

.article-body {
  max-width: var(--wrap-body);
  margin: 0 auto;
  padding-bottom: var(--sp-10);
}

/* ── 6. Navegação de localização (breadcrumbs) ────────────── */
nav.crumbs {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--ink-3);
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
  padding: var(--sp-5) 0 var(--sp-3);
  max-width: var(--wrap-header);
  margin: 0 auto;
}
nav.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color var(--dur-fast);
}
nav.crumbs a:hover { color: var(--red); }
nav.crumbs span[aria-hidden] { color: var(--ink-4); }
nav.crumbs [aria-current="page"] { color: var(--ink-2); }

/* ── 7. Kicker — eyebrow editorial ───────────────────────── */
.kicker {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-4);
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.kicker span[aria-hidden] { color: var(--ink-4); }

/* ── 8. Meta-line ─────────────────────────────────────────── */
.meta-line {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--sp-3);
}
.meta-line span[aria-hidden] { color: var(--ink-4); }
.meta-line a { color: var(--red); }
.meta-line a:hover { text-decoration: underline; }
.meta-line time { font-variant-numeric: tabular-nums; }

/* ── 9. Byline ────────────────────────────────────────────── */
.byline {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-7);
}
.byline strong { font-weight: 600; }
.byline span[aria-hidden] { color: var(--ink-4); }

/* ── 10. h1.headline ──────────────────────────────────────── */
h1.headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-5);
  max-width: var(--wrap-header);
}
/* Itálico decorativo dentro do h1 herda Instrument Serif italic */
h1.headline em {
  font-style: italic;
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
}

/* ── 11. Dek / deck ───────────────────────────────────────── */
.dek {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: var(--weight-regular);
  letter-spacing: -0.01em;
  line-height: 1.42;
  color: var(--ink-2);
  margin-bottom: var(--sp-6);
  max-width: var(--wrap-header);
}

/* ── 12. Corpo de texto ───────────────────────────────────── */
p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--weight-regular);
  letter-spacing: var(--ls-body);
  line-height: var(--lh-body);
  color: var(--ink);
  margin-bottom: var(--sp-5);
  text-align: left; /* não justify — evita rios de espaço sem hyphenation completa */
}

/* Drop cap — apenas primeiro parágrafo */
p.lead::first-letter {
  font-family: var(--font-body);
  font-size: 3.6em;
  font-weight: var(--weight-bold);
  float: left;
  line-height: 0.82;
  margin-right: 0.08em;
  margin-top: 0.06em;
  color: var(--ink);
}

/* ── 13. Headings no corpo ────────────────────────────────── */
h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
  line-height: var(--lh-heading);
  color: var(--ink);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  /* sem border-bottom — espaço superior faz o trabalho */
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: var(--weight-medium);
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--ink);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
}

h4 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

/* ── 14. Blockquote ───────────────────────────────────────── */
blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: var(--weight-regular);
  line-height: 1.52;
  color: var(--ink-2);
  margin: var(--sp-8) 0;
  padding-left: var(--sp-6);
  border-left: 3px solid var(--red);
  max-width: var(--wrap-body);
}
blockquote cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: var(--sp-3);
  display: block;
}

/* ── 15. Listas ───────────────────────────────────────────── */
ul, ol {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: var(--lh-body);
  color: var(--ink);
  margin: var(--sp-5) 0;
  padding-left: var(--sp-6);
}
li + li { margin-top: var(--sp-3); }

/* Marcador · (ponto mediano) vermelho para ul */
ul { list-style: none; padding-left: var(--sp-5); }
ul li { position: relative; padding-left: var(--sp-4); }
ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--red);
  font-family: var(--font-ui);
  font-weight: var(--weight-bold);
  line-height: inherit;
}

/* Numeração Inter Tight 700 vermelha para ol */
ol {
  list-style: none;
  padding-left: 0;
  counter-reset: ol-counter;
}
ol li {
  counter-increment: ol-counter;
  position: relative;
  padding-left: var(--sp-7);
}
ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 13px;
  color: var(--red);
  letter-spacing: 0.04em;
  top: 0.18em;
}

/* ── 16. Links inline no corpo ────────────────────────────── */
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}
.article-body a:hover {
  color: var(--red);
  text-decoration-color: var(--red-deep);
}

/* ── 17. Figure / figcaption ──────────────────────────────── */
figure {
  margin: var(--sp-8) 0;
  max-width: calc(var(--wrap-body) + 120px);
}
figcaption {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}

/* ── 11b. Tese-line (V3.1) ───────────────────────────────────
   Frase-tese editorial curada por peça (5-8 palavras).
   Substitui o H2 "Contexto e Leitura" órfão.
   Aparece entre cover-image e lead bold. */
.tese-line {
  font-family: var(--font-display); /* Instrument Serif */
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: var(--weight-regular);
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.32;
  color: var(--ink-2);
  text-align: center;
  max-width: 560px;
  margin: var(--sp-7) auto var(--sp-6) auto;
  padding: 0 var(--sp-4);
}

@media (max-width: 640px) {
  .tese-line {
    font-size: 19px;
    margin: var(--sp-6) auto var(--sp-5) auto;
  }
}

/* ── 18. Cover fotográfico .cover-semanal (§13 do spec) ───── */
.cover-semanal {
  position: relative;
  border-radius: var(--card-r);   /* 6px — alinhado com portal V3 (era 12px V2) */
  overflow: hidden;
  margin: 0 0 var(--sp-7);        /* 48px de respiro antes do corpo (era 36px V2) */
  aspect-ratio: 860/360;          /* PRESERVADO — cinematográfico 2.39:1 */
  background: var(--paper-3);     /* fallback antes de a foto carregar */
  border: 1px solid var(--line);
}
.cover-semanal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.04);
}
.cover-semanal .cover-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,15,15,0.06) 0%,
    rgba(15,15,15,0.58) 65%,
    rgba(15,15,15,0.88) 100%
  );
}
/* DEPRECATED V3.1 · removido em 2026-05-17 · pendente limpeza final
   cover-overlay, cover-tag, cover-title, cover-byline removidos do HTML.
   Regras abaixo mantidas como referência para rollback. */
/* .cover-semanal .cover-overlay { position:absolute; bottom:0; left:0; right:0; padding:var(--sp-5) var(--sp-6); } */
/* .cover-semanal .cover-tag { display:inline-block; font-family:var(--font-ui); font-size:11px; font-weight:var(--weight-medium); letter-spacing:0.20em; text-transform:uppercase; color:var(--red); padding:4px 12px; border:1px solid rgba(212,48,26,0.45); background:rgba(255,255,255,0.08); margin-bottom:var(--sp-3); backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); } */
/* .cover-semanal .cover-title { font-family:var(--font-display); font-weight:var(--weight-bold); font-size:clamp(22px,3vw,36px); line-height:1.18; letter-spacing:-0.02em; color:#ffffff; margin:0 0 var(--sp-2); max-width:32ch; text-shadow:0 1px 8px rgba(0,0,0,0.45); } */
/* .cover-semanal .cover-byline { font-family:var(--font-body); font-style:italic; font-size:clamp(13px,1.3vw,15px); line-height:1.35; color:rgba(255,255,255,0.78); margin:0; } */
/* .cover-semanal .cover-byline .cover-author { color:var(--gold); font-style:italic; } */
/* .cover-semanal .cover-byline time { font-family:var(--font-ui); font-style:normal; font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:rgba(255,255,255,0.55); margin-left:0.4em; vertical-align:0.04em; } */

/* ── 19. Callout aside.note (substitui .dica no corpo) ─────── */
aside.note {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--accent-soft);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--note-r) var(--note-r) 0;
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-7) 0;
  max-width: var(--wrap-note);
}
aside.note strong:first-child {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-2);
}

/* ── 20. Separador de seção ───────────────────────────────── */
hr.section-break {
  border: none;
  width: 32px;
  height: 2px;
  background: var(--red);
  margin: var(--sp-8) auto;
  display: block;
}

/* ── 21. Navegação artigo anterior/próximo ────────────────── */
nav.article-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-top: var(--sp-9);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
nav.article-nav a {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 200px;
  min-height: 44px;  /* touch target WCAG */
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--card-r);
  transition: border-color var(--dur-mid) var(--ease), color var(--dur-mid);
  text-decoration: none;
}
nav.article-nav a:hover {
  border-color: var(--red);
  color: var(--red);
}
.nav-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  line-height: 1.28;
}
nav.article-nav a:hover .nav-title { color: var(--red); }

/* ── 21b. Back-to-top ──────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease),
              visibility var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              background var(--dur-fast);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--ink); }
.back-to-top:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
@media (max-width: 599px) {
  .back-to-top { bottom: var(--sp-6); right: var(--sp-4); width: 40px; height: 40px; font-size: 16px; }
}

/* ── 22. Tags ─────────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
}
.tags a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.tags a:hover {
  color: var(--red);
  border-color: rgba(212,48,26,.3);
}

/* ── 23. Footer (reutilizado do portal) ───────────────────── */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 32px 40px;
}
.foot-inner {
  max-width: var(--wrap-outer);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.foot-inner h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
}
.foot-inner a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: rgba(255,255,255,.85);
  transition: color var(--dur-mid);
}
.foot-inner a:hover { color: var(--red); }
.foot-inner .brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
  display: block;
}
.foot-inner .brand em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: var(--weight-regular);
  color: #fff;
}
.foot-inner p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.65);
  max-width: 36ch;
}
.foot-bottom {
  max-width: var(--wrap-outer);
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-bottom em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: rgba(255,255,255,.7);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

/* ── 24. Focus visible — WCAG AA ──────────────────────────── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ── 25. Breakpoints ──────────────────────────────────────── */
/* large ≥ 1400px — wrap-body 68ch auto-regula, nada a fazer */

/* tablet/mobile < 1100px — drawer hamburguer entra em cena */
@media (max-width: 1100px) {
  .menu-toggle { display: block; }

  nav.main {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 96px 32px 32px;
    gap: 0;
    transform: translateY(-100%);
    transition: transform var(--dur-slow) var(--ease);
    visibility: hidden;
    z-index: var(--z-header);
    overflow-y: auto;
  }
  nav.main.is-open {
    transform: translateY(0);
    visibility: visible;
  }
  nav.main a {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 40px);
    font-weight: var(--weight-bold);
    letter-spacing: -0.025em;
    color: var(--ink);
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    transition: color var(--dur-fast) var(--ease);
  }
  nav.main a:hover,
  nav.main a:focus-visible { color: var(--red); }
  nav.main a.active { color: var(--red); }
}

/* tablet < 768px */
@media (max-width: 768px) {
  .article-wrap { padding: 0 20px; }
  nav.article-nav { flex-direction: column; }
  nav.article-nav a { min-width: 0; }
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* mobile < 640px — header não sticky, ticker oculto */
@media (max-width: 640px) {
  header.top {
    position: relative; /* não sticky em mobile — economiza 56px de altura útil */
  }
  .top-inner { padding: 14px 20px; }
  .ticker-badge { display: none; }
  /* DEPRECATED V3.1 · .cover-semanal .cover-overlay { padding: var(--sp-4) var(--sp-5); } */
  footer { padding: 60px 20px 32px; }
}

/* mobile-sm < 480px */
@media (max-width: 480px) {
  .article-wrap { padding: 0 16px; }
  p { font-size: 17px; }
  p.lead::first-letter { display: none; } /* drop cap desativado em telas muito pequenas */
  .foot-inner { grid-template-columns: 1fr; }
}

/* ── 26. prefers-reduced-motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reading-progress { transition: none; }
}

/* ── 27. Hyphenation PT-BR — apenas no corpo ──────────────── */
:lang(pt-BR) .article-body {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

/* ── 28. Print ─────────────────────────────────────────────── */
@media print {
  header.top, .reading-progress, nav.article-nav, .tags, footer, .back-to-top,
  .footer-newsletter, .mais-lidos { display: none; }
  body { background: #fff; color: #000; }
  .article-body { max-width: 100%; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  h1.headline { font-size: 28pt; }
  p { font-size: 12pt; line-height: 1.5; }
}

/* ── 29. Newsletter footer cross-site ──────────────────────────
   Adicionado S099 c8 · 2026-05-17 · Meta 107 (zero terceirização)
   Embed no footer de: index + 6 cadernos + arquivo-semanal + 318 peças
   ──────────────────────────────────────────────────────────── */
.footer-newsletter {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-9) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
/* Quando embutido logo antes do <footer> já escuro,
   a border-top cria divisão visual entre footer-newsletter e o footer */
.footer-newsletter-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  text-align: center;
}
.footer-newsletter .eyebrow {
  color: var(--red);
  margin-bottom: var(--sp-3);
  display: block;
}
.footer-newsletter h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: var(--sp-3);
}
.footer-newsletter .dek {
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--sp-6);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
}
.newsletter-form {
  display: flex;
  gap: var(--sp-2);
  max-width: 480px;
  margin: 0 auto var(--sp-4);
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 15px;
  border-radius: 0; /* flat — estética editorial */
  transition: border-color var(--dur-mid), background var(--dur-mid);
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.35);
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,0.08);
}
.newsletter-form button {
  background: var(--red);
  color: var(--paper);
  border: 0;
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-ui);
  font-weight: var(--weight-medium);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--dur-mid);
  white-space: nowrap;
}
.newsletter-form button:hover {
  background: var(--red-deep);
}
.newsletter-form button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}
.newsletter-fineprint {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
  font-family: var(--font-ui);
}
@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
  }
  .newsletter-form button {
    width: 100%;
    padding: var(--sp-4);
  }
}

/* ── 30. Seção "Mais lidos" na home ────────────────────────────
   Adicionado S099 c8 · 2026-05-17
   Grid NYT Most-Read: 1 hero (rank #1) + 4 cards secundários
   ──────────────────────────────────────────────────────────── */
.mais-lidos {
  background: #0a0a0a;
  color: #fff;
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
}
.mais-lidos:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,48,26,.5), transparent);
}
.mais-lidos-inner {
  max-width: 1600px;
  margin: 0 auto;
}
.mais-lidos .section-head h2 {
  color: #fff;
}
.mais-lidos .section-head .eyebrow {
  color: rgba(255,255,255,.5);
}
.mais-lidos .section-head .rside {
  color: rgba(255,255,255,.65);
}
/* Grid: 1 coluna hero (esq) + 4 cards em coluna (dir) */
.mais-lidos-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-top: 30px;
}
@media (max-width: 900px) {
  .mais-lidos-grid {
    grid-template-columns: 1fr;
  }
}
/* Coluna direita: 4 cards empilhados */
.mais-lidos-secondary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Card hero — rank #1 */
.mais-lidos-card--hero {
  position: relative;
  border-radius: var(--card-r, 6px);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: block;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.mais-lidos-card--hero:hover {
  transform: translateY(-4px);
}
/* Cards secundários — ranks #2-#5 */
.mais-lidos-card--secondary {
  position: relative;
  border-radius: var(--card-r, 6px);
  overflow: hidden;
  display: block;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  flex: 1;
  min-height: 120px;
}
.mais-lidos-card--secondary:hover {
  transform: translateY(-2px);
}
/* Conteúdo interno dos cards */
.mais-lidos-link {
  display: block;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: #fff;
}
.mais-lidos-card--hero .mais-lidos-link,
.mais-lidos-card--secondary .mais-lidos-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mais-lidos-bg {
  position: absolute;
  inset: 0;
  background: #141414;
  background-size: cover;
  background-position: center;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.mais-lidos-card--hero:hover .mais-lidos-bg,
.mais-lidos-card--secondary:hover .mais-lidos-bg {
  transform: scale(1.04);
}
.mais-lidos-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.1) 100%);
}
.mais-lidos-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}
.mais-lidos-card--secondary .mais-lidos-content {
  left: 16px;
  right: 16px;
  bottom: 16px;
}
.mais-lidos-rank {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red, #d4301a);
  margin-bottom: 8px;
}
.mais-lidos-caderno {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-left: 8px;
}
.mais-lidos-tipo {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}
.mais-lidos-titulo {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -.02em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 10px;
}
.mais-lidos-card--secondary .mais-lidos-titulo {
  font-size: clamp(15px, 1.4vw, 18px);
  margin-bottom: 6px;
}
.mais-lidos-dek {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.8);
  max-width: 42ch;
}
.mais-lidos-card--secondary .mais-lidos-dek {
  display: none; /* omitir dek nos secundários — pouco espaço */
}
.mais-lidos-autor {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-top: 8px;
}
/* Fallback: esconder seção se JS não renderizar (sem dados) */
.mais-lidos.is-empty {
  display: none;
}
