/* ============================================================
   news.css — Estudo Além das Notas
   Estilos da página de leitura + gate de cadastro.
   Importado APÓS tailwind.css e shared.css.

   Cobre apenas o que Tailwind não faz:
   - Layout e tipografia editorial de leitura
   - .sequestro-highlight (blockquote editorial)
   - Gate overlay / blur / card / formulário
   - Painel "já sou assinante"
   - Rodapé da edição
   - Animações de entrada + prefers-reduced-motion
   ============================================================ */

/* ============================================================
   FONTES SELF-HOSPEDADAS (woff2 no mesmo domínio)
   Tira o Google Fonts do caminho crítico (era render-blocking).
   woff2 variáveis: 1 arquivo cobre 400-700. Preload no <head>.
   ============================================================ */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourcesans3.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/lora-italic.woff2') format('woff2');
}


/* ============================================================
   ANIMAÇÕES DE ENTRADA
   ============================================================ */

@keyframes gate-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================================
   HEADER DA NEWSLETTER
   ============================================================ */

.news-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-premium);
}

.news-back-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}


/* ============================================================
   CONTAINER DO ARTIGO
   ============================================================ */

.news-article {
  background: var(--bg);
  color: var(--text);
}


/* ============================================================
   CABEÇALHO EDITORIAL
   ============================================================ */

.news-kicker {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.news-title {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.news-subtitle {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: var(--text-light);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.news-author {
  font-weight: 600;
  color: var(--text);
}

.news-meta-sep {
  color: var(--border);
}

.news-date,
.news-read-time {
  color: var(--text-light);
}


/* ============================================================
   TIPOGRAFIA EDITORIAL DE LEITURA
   ============================================================ */

.news-article p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.news-article h2 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Subtítulo de cada sinal numerado */
h3.news-signal-label {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--primary);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.news-article strong {
  font-weight: 600;
  color: var(--text);
}

.news-article em {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}

.news-list {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  list-style-type: disc;
}

.news-list li {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.news-list--ordered {
  list-style-type: decimal;
}

.news-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.news-closing {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
}


/* ============================================================
   BLOCKQUOTE — .sequestro-highlight
   Tratamento editorial de citações (Lora italic, teal bg sutil).
   Não definido em shared.css — definido aqui para o contexto news.
   ============================================================ */

.sequestro-highlight {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-light);
  border-left: 3px solid var(--primary);
  background: rgba(0, 137, 148, 0.06);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  border-radius: 0 0.25rem 0.25rem 0;
}

/* Parágrafo dentro do blockquote herda o itálico, remove margin-bottom do último */
.sequestro-highlight p {
  font-family: 'Lora', serif;
  font-size: 1.0625rem;
  font-style: italic;
  margin-bottom: 0;
}

.sequestro-highlight cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}


/* ============================================================
   IMAGEM INLINE NA EDIÇÃO — .news-figure / .news-img
   Figuras inseridas no corpo do artigo via [IMAGEM-N].
   ============================================================ */

.news-figure {
  margin: 2rem auto;
}

.news-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-teal);
}


/* ============================================================
   #GATED — container do conteúdo travado
   ============================================================ */

#gated {
  position: relative;
  overflow: hidden;
}

/* Quando desbloqueado, o #gated pode ser overflow visible
   (o conteúdo abaixo do card pode crescer livremente) */
.news-article.is-unlocked #gated {
  overflow: visible;
}


/* ============================================================
   GATE OVERLAY
   Cobre #gated enquanto não desbloqueado.
   position:absolute dentro do #gated (position:relative).
   ============================================================ */

.gate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Contrato: .componente.hidden { display: none } */
.gate-overlay.hidden {
  display: none;
}

/* Quando desbloqueado: some por completo */
.news-article.is-unlocked .gate-overlay {
  display: none;
}

/* Gradiente de fade no topo do gate:
   faz o texto do teaser "desaparecer" suavemente na borda do gate */
.gate-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}


/* ============================================================
   GATE CARD
   ============================================================ */

.gate-card {
  position: relative;
  z-index: 11;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  margin: 120px auto 2rem;
  box-shadow: var(--shadow-teal-lg);
  animation: gate-card-enter 350ms var(--ease-premium) both;
}

@media (min-width: 768px) {
  .gate-card {
    padding: 2.5rem;
  }
}


/* ============================================================
   ESTADO "AGORA NÃO" (dismiss) + MINI-BARRA DE RE-ABRIR
   Ao dispensar, o card some mas o overlay permanece (bloqueia o
   conteúdo, que segue blur + inert). A mini-barra dá o caminho de volta.
   ============================================================ */

.gate-overlay.is-dismissed .gate-card {
  display: none;
}

.gate-minibar {
  display: none;
  position: relative;
  z-index: 11;
  margin: 110px auto 2rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  min-height: 44px;
  padding: 0.875rem 1.25rem;
  background: var(--secondary);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-teal);
  transition: background var(--duration-fast) var(--ease-premium);
}

.gate-minibar:hover {
  background: #EDE3D6;
}

.gate-overlay.is-dismissed .gate-minibar {
  display: block;
}

.gate-kicker {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.gate-headline {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.625rem;
}

.gate-subcopy {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}


/* ============================================================
   FORMULÁRIO DO GATE
   ============================================================ */

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.gate-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gate-label {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.gate-optional {
  font-weight: 400;
  color: var(--text-light);
}

.gate-required {
  color: var(--accent);
}

.gate-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 0.375rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--duration-fast) var(--ease-premium);
  /* Evitar auto-zoom iOS (min 16px em inputs) */
}

.gate-input:focus {
  outline: 2px solid rgba(0, 137, 148, 0.25);
  outline-offset: 2px;
  border-color: var(--primary);
}

.gate-input::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

/* Botão CTA do gate — bg e tipografia aqui; física herdada de .btn-tactile-cta (shared.css) */
.gate-btn-primary {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition:
    background var(--duration-fast) var(--ease-premium),
    transform var(--duration-fast) var(--ease-premium),
    box-shadow var(--duration-normal) var(--ease-premium);
}

.gate-btn-primary:hover {
  background: var(--accent-dark);
}

/* Estados informativos do formulário (JS controla [hidden]) */
.gate-error-msg {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  color: #B91C1C;
  margin-top: 0.125rem;
}

.gate-loading {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
}

.gate-submit-error {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: #B91C1C;
  text-align: center;
}

/* Links secundários abaixo do formulário */
.gate-secondary-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 0.875rem;
  flex-wrap: wrap;
}

.gate-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  /* tap target >= 44px (padding garante área tátil em mobile) */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.5rem;
  text-decoration: underline;
  transition: color var(--duration-fast) var(--ease-premium);
}

.gate-link:hover {
  color: var(--primary-dark);
}

.gate-link--muted {
  color: var(--text-light);
  text-decoration: none;
}

.gate-link--muted:hover {
  color: var(--text);
}

.gate-link-sep {
  color: var(--border);
  font-size: 0.875rem;
}


/* ============================================================
   CONTEÚDO GATED — blur enquanto travado
   ============================================================ */

/* Estado travado: blur forte + máscara que apaga o texto mais abaixo.
   O topo dá um "espião" desfocado (mostra que há mais), mas o conteúdo
   não é legível. A leitura de fato só volta com .is-unlocked. */
.gate-content {
  filter: blur(10px);
  user-select: none;
  pointer-events: none;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.18) 42%, rgba(0,0,0,0) 78%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.18) 42%, rgba(0,0,0,0) 78%);
  transition:
    filter 400ms var(--ease-out-soft),
    opacity 400ms var(--ease-out-soft);
}

/* Estado desbloqueado: revelação suave */
.news-article.is-unlocked .gate-content {
  filter: none;
  user-select: auto;
  pointer-events: auto;
  opacity: 1;
  -webkit-mask-image: none;
          mask-image: none;
}


/* ============================================================
   PAINEL "JÁ SOU ASSINANTE"
   Overlay full-screen com card centralizado.
   ============================================================ */

.gate-subscriber-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 61, 66, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contrato: .componente.hidden { display: none } */
.gate-subscriber-panel[hidden] {
  display: none;
}

.gate-subscriber-card {
  background: var(--bg);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  max-width: 380px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow-teal-lg);
  animation: gate-card-enter 350ms var(--ease-premium) both;
}

.gate-subscriber-headline {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.gate-subscriber-subcopy {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.gate-subscriber-close {
  display: block;
  text-align: center;
  margin-top: 1rem;
}


/* ============================================================
   RODAPÉ DA EDIÇÃO
   ============================================================ */

.news-edition-footer {
  padding-top: 2rem;
}

.news-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.news-footer-author {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0;
}

.news-footer-bio {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-light);
}

.news-footer-link {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: underline;
  transition: color var(--duration-fast) var(--ease-premium);
}

.news-footer-link:hover {
  color: var(--primary-dark);
}


/* ============================================================
   PREFERS-REDUCED-MOTION
   Remove animações de entrada e transições de revelação.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .gate-card,
  .gate-subscriber-card {
    animation: none;
  }

  .gate-content {
    transition: none;
  }

  .news-back-link,
  .gate-input,
  .gate-btn-primary,
  .gate-link,
  .news-footer-link {
    transition: none;
  }
}


/* ============================================================
   HUB — news/index.html
   Estilos exclusivos da página hub da newsletter.
   Complementa shared.css + news.css (edições individuais).
   ============================================================ */


/* --- Hub Header --- */

#hub-header .news-kicker {
  margin-bottom: 0;
}


/* --- Hero do Hub (centralizado, coluna única) --- */

.hub-hero {
  /* textura de papel da primeira dobra (recorte do site antigo filhoestudioso.com.br/news) */
  background-color: #DEDCD6;
  background-image: url('../img/hero-texture.webp');
  background-size: cover;
  background-position: center;
  /* espaçamento até o menu reduzido pela metade (era 5rem / 6.5rem no desktop) */
  padding-top: calc(var(--section-pad-y-hero-top) / 2);
  padding-bottom: var(--section-pad-y-hero-bottom);
  border-bottom: 1px solid var(--border);
}

.hub-hero-inner {
  text-align: center;
}

.hub-hero-avatar {
  width: 84px;
  height: 84px;
  border-radius: 9999px;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-warm);
}

.hub-hero-kicker {
  text-align: center;
}

.hub-hero-title {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hub-hero-subcopy {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 46ch;
  margin: 0 auto 2rem;
}

/* Formulário centralizado, linha única (e-mail + botão) */
.hub-form {
  max-width: 480px;
  margin: 0 auto;
}

.hub-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (min-width: 520px) {
  .hub-form-row {
    flex-direction: row;
    align-items: stretch;
  }
}

.hub-form-input {
  flex: 1;
  text-align: left;
}

.hub-form-btn {
  white-space: nowrap;
  width: 100%;
}

@media (min-width: 520px) {
  .hub-form-btn {
    width: auto;
    flex-shrink: 0;
  }
}

.hub-form .gate-error-msg,
.hub-form .gate-loading,
.hub-form .gate-submit-error {
  text-align: center;
  margin-top: 0.5rem;
}

.hub-form-note {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 1rem;
  text-align: center;
}

.hub-form-note strong {
  color: var(--text);
  font-weight: 600;
}

.hub-form-success {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  color: var(--primary-dark);
  font-weight: 600;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 137, 148, 0.08);
  border-radius: 0.5rem;
}

.hub-form-success[hidden] {
  display: none;
}


/* --- Seções genéricas do Hub --- */

.hub-section {
  padding-top: var(--section-pad-y-default);
  padding-bottom: var(--section-pad-y-default);
}

.hub-section--alt {
  background: var(--bg-alt);
}

.hub-section-header {
  margin-bottom: var(--section-content-gap);
  text-align: center;
}

.hub-section-title {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 0.375rem;
}


/* ============================================================
   EDITION CARDS — grid uniforme (cards iguais lado a lado)
   ============================================================ */

.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

/* Card base (card-whisper de shared.css dá border + shadow + hover) */
.edition-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.edition-card-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  flex-shrink: 0;
}

.edition-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out-soft);
}

.edition-card:hover .edition-card-thumb {
  transform: scale(1.04);
}

.edition-card-body {
  padding: 1.125rem 1.25rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.edition-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.edition-card-sep {
  color: var(--border);
}

.edition-card-title {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0;
}

.edition-card-title .edition-card-link {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-premium);
}

.edition-card-title .edition-card-link:hover {
  color: var(--primary);
}

.edition-card-subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 0;
}


/* ============================================================
   ARQUIVO — bloco-arquivo
   Lista de todas as edições com link, data e tempo de leitura.
   ============================================================ */

.hub-arquivo-inner {
  /* inherits section padding from .hub-section */
}

.hub-arquivo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.hub-arquivo-item {
  border-bottom: 1px solid var(--border);
}

.hub-arquivo-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-decoration: none;
  color: inherit;
  transition: background var(--duration-fast) var(--ease-premium);
}

.hub-arquivo-link:hover {
  background: transparent; /* transição sutil via texto */
}

.hub-arquivo-link:hover .hub-arquivo-title {
  color: var(--primary);
}

.hub-arquivo-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.hub-arquivo-title {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
  transition: color var(--duration-fast) var(--ease-premium);
}

.hub-arquivo-subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-light);
  /* Truncate em 2 linhas em telas pequenas */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hub-arquivo-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.hub-arquivo-date {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.hub-arquivo-time {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.7;
}

@media (max-width: 480px) {
  .hub-arquivo-link {
    flex-direction: column;
    gap: 0.5rem;
  }
  .hub-arquivo-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  .hub-arquivo-subtitle {
    -webkit-line-clamp: 3;
  }
}


/* ============================================================
   RODAPÉ DO HUB
   ============================================================ */

.hub-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 3rem 0 2rem;
}

.hub-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hub-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }
}

.hub-footer-brand {
  max-width: 360px;
}

.hub-footer-newsletter-name {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
}

.hub-footer-bio {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(245, 237, 227, 0.7);
}

.hub-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hub-footer-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  color: rgba(245, 237, 227, 0.7);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-premium);
}

.hub-footer-link:hover {
  color: var(--text-on-dark);
}

.hub-footer-copy {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  color: rgba(245, 237, 227, 0.4);
  border-top: 1px solid rgba(245, 237, 227, 0.12);
  padding-top: 1.5rem;
}


/* ============================================================
   HUB — PREFERS-REDUCED-MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .edition-card-thumb {
    transition: none;
  }
  .edition-card:hover .edition-card-thumb {
    transform: none;
  }
  .hub-arquivo-title,
  .edition-card-title .edition-card-link,
  .hub-footer-link {
    transition: none;
  }
}
