/* enhancements.css — Radar Local Portal
 * Melhorias incrementais sobre base.css, seguindo design-spec-portal.md.
 * Carregado após base.css. Não duplica tokens — apenas adiciona/corrige comportamentos.
 *
 * Áreas cobertas:
 *   A. Empty state com visual estruturado (skeleton-like placeholder)
 *   B. Placeholder de imagem para notícias sem foto
 *   C. Cores de badge por categoria
 *   D. Block-title com ícone no by-location
 *   E. Headline hero — overlay e tipografia aprimorados
 *   F. Horizontal card — separador e gap no grid
 *   G. Footer — legibilidade do bottom bar
 *   H. Ad slot — label "Publicidade" sutil, sem borda dashed
 *   I. Skeleton / loading state
 *   J. Acessibilidade e foco
 *   K. Sticky header — z-index e transição correta
 *   L. wide-container (1280px+ limita em 1440px conforme spec)
 *   M. Image placeholder icon (sem JS)
 *   N. "Ver mais" link no block-title
 *   O. Headline main title — line-clamp e tipografia
 *   P. Responsivo — ajustes finos tablet/desktop
 */

/* ============================================================
   A. Empty state — bloco sem notícias
   ============================================================ */

.block-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  color: var(--theme-palette-text-disabled);
  font-style: normal; /* remover italic do base */
  text-align: center;
  background-color: var(--theme-palette-surface);
  border-radius: var(--theme-borders-radius-lg);
  border: 1px dashed var(--theme-palette-border);
  min-height: 140px;
}

.block-empty::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border-radius: var(--theme-borders-radius-full);
  background-color: var(--theme-palette-border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2390A4AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.block-empty p {
  margin: 0;
  font-size: var(--type-scale-sm);
  color: var(--theme-palette-text-disabled);
}

/* No-blocks fallback — quando não há blocos configurados */
.no-blocks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-10) var(--space-4);
  min-height: 50vh;
}

.no-blocks h2 {
  font-size: var(--type-scale-xl);
  font-family: var(--theme-typography-heading-font-family);
  font-weight: var(--font-weight-bold);
  color: var(--theme-palette-text);
  margin-bottom: 0;
}

.no-blocks p {
  font-size: var(--type-scale-md);
  color: var(--theme-palette-text-secondary);
  margin: 0;
}

/* Loading pulse para skeleton */
.no-blocks::before {
  content: '';
  display: block;
  width: 64px;
  height: 64px;
  border-radius: var(--theme-borders-radius-full);
  background: linear-gradient(
    135deg,
    var(--theme-palette-primary-subtle) 0%,
    var(--theme-palette-primary) 100%
  );
  opacity: 0.5;
}


/* ============================================================
   B. Image placeholder para notícias sem foto
   ============================================================ */

/* Usado quando não há image_id: mostra área cinza com ícone */
.news-card__image-placeholder {
  position: absolute;
  inset: 0;
  background-color: var(--theme-palette-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__image-placeholder svg {
  opacity: 0.35;
  color: var(--theme-palette-text-disabled);
}

/* Placeholder no card horizontal */
.news-card__thumb-placeholder {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: var(--theme-borders-radius);
  background-color: var(--theme-palette-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__thumb-placeholder svg {
  opacity: 0.35;
  color: var(--theme-palette-text-disabled);
}


/* ============================================================
   C. Cores de badge por categoria
   ============================================================ */

/* Base já cobre o azul primário. Aqui sobrescrevemos por slug de categoria */

.category-badge--politica,
.category-badge--política {
  background-color: #1565C0; /* azul escuro — tom sóbrio para política */
}

.category-badge--economia {
  background-color: #2E7D32; /* verde — associação a finanças/mercado */
}

.category-badge--cidade {
  background-color: #6A1B9A; /* roxo — identidade urbana */
}

.category-badge--cultura {
  background-color: var(--theme-palette-accent-alt); /* laranja */
  color: #ffffff;
}

.category-badge--esportes {
  background-color: #E53935; /* vermelho vibrante — energia esportiva */
}

.category-badge--saúde,
.category-badge--saude {
  background-color: #00838F; /* teal — saúde/bem-estar */
}

.category-badge--educação,
.category-badge--educacao {
  background-color: #F57F17; /* âmbar — educação/aprendizado */
  color: #1A1F2E;
}

.category-badge--segurança,
.category-badge--seguranca {
  background-color: #37474F; /* cinza-escuro — institucional */
}

.category-badge--meio-ambiente {
  background-color: #388E3C; /* verde-folha */
}

.category-badge--tecnologia {
  background-color: #283593; /* índigo */
}

/* Variante outline mantém a borda na cor primária por padrão */
/* Para categorias específicas com outline, o usuário pode adicionar */
/* a classe do slug além de --outline, mas o visual base funciona bem */


/* ============================================================
   D. Block-title — ícone por tipo de bloco
   ============================================================ */

/* Ícone de pin/mapa no bloco by-location — fica junto ao primeiro filho (span do título) */
.block-by-location .block-title > span::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  /* Azul claro — legível tanto em light quanto em dark mode */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231565C0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-right: 6px;
  margin-bottom: 2px;
}

/* Dark mode: ícone mais claro */
[data-theme="dark"] .block-by-location .block-title > span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364B5F6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* O block-by-location já tem fundo surface — reforçar padding */
.block-by-location {
  padding: var(--space-3);
  border-radius: var(--theme-borders-radius-lg);
}

/* Empty state dentro do block-by-location: fundo levemente diferente */
.block-by-location .block-empty {
  background-color: var(--theme-palette-background);
  border-color: var(--theme-palette-divider);
}

/* "ver mais" link dentro do block-title */
.block-title__link {
  font-size: var(--type-scale-sm);
  font-weight: var(--font-weight-medium);
  font-family: var(--theme-typography-font-family);
  color: var(--theme-palette-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.block-title__link:hover {
  color: var(--theme-palette-primary-hover);
  text-decoration: underline;
}


/* ============================================================
   E. Headline hero — overlay e tipografia
   ============================================================ */

/* Título sobreposto ao hero — linha-clamp 3 linhas */
.headline-main__title {
  font-family: var(--theme-typography-heading-font-family);
  font-size: var(--type-scale-xl);
  font-weight: var(--font-weight-black);
  line-height: var(--theme-typography-tight-line-height);
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin: 0 0 var(--space-1) 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Subtítulo do hero */
.headline-main__subtitle {
  font-size: var(--type-scale-base);
  color: rgba(255,255,255,0.90);
  margin: 0 0 var(--space-1) 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta do hero */
.headline-main__meta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  font-size: var(--type-scale-xs);
  color: rgba(255,255,255,0.80);
}

.headline-main__meta time {
  color: rgba(255,255,255,0.80);
}

/* Hover no hero: title underline sutil */
.headline-main__link:hover .headline-main__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Overlay: assegurar que o pseudo-elemento está acima da imagem mas abaixo do texto */
.headline-main__image-wrap::after {
  z-index: 0;
}

.headline-main__text-overlay {
  z-index: 1;
}

/* Placeholder no hero quando não há imagem */
.headline-main__image-wrap.headline-main__image-wrap--no-image {
  background: linear-gradient(
    135deg,
    var(--theme-palette-secondary) 0%,
    var(--theme-palette-text) 100%
  );
}

/* Secondary headline cards — hover aprimorado */
.news-card--secondary-headline {
  border-radius: var(--theme-borders-radius);
  padding: var(--space-1) 0;
  transition: background-color var(--transition-fast);
}

.news-card--secondary-headline:hover {
  background-color: var(--theme-palette-primary-subtle);
  border-radius: var(--theme-borders-radius);
}

.news-card--secondary-headline + .news-card--secondary-headline {
  border-top: 1px solid var(--theme-palette-divider);
  padding-top: var(--space-2);
  margin-top: var(--space-1);
}


/* ============================================================
   F. Horizontal card — separadores e gap no grid
   ============================================================ */

/* gap entre itens do latest e by-location */
.latest-grid,
.location-grid {
  gap: var(--space-2);
}

/* Separador já gerenciado por border-top no card horizontal.
   No grid, não queremos separador + gap duplo — remover margin dos cards */
.latest-grid .news-card--horizontal + .news-card--horizontal,
.location-grid .news-card--horizontal + .news-card--horizontal {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Cada célula do grid tem separador inferior, exceto última linha */
.latest-grid .news-card--horizontal,
.location-grid .news-card--horizontal {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--theme-palette-divider);
}

/* Tablet: 2 colunas — última linha sem separador é difícil de detectar sem JS.
   Usamos :nth-last-child para os 2 últimos items em grid de 2 colunas */
@media (min-width: 768px) {
  .latest-grid .news-card--horizontal:nth-last-child(-n+2),
  .location-grid .news-card--horizontal:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Thumbnail hover: zoom sutil */
.news-card--horizontal:hover .news-card__thumb {
  transform: scale(1.04);
  transition: transform var(--transition-base);
}

.news-card--horizontal .news-card__thumb-wrap {
  overflow: hidden;
}


/* ============================================================
   G. Footer — melhorias de legibilidade
   ============================================================ */

/* Bottom bar: texto mais legível sobre fundo escuro */
.site-footer__bottom .site-footer__copyright,
.site-footer__bottom .site-footer__powered {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__bottom .site-footer__powered a {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__bottom .site-footer__powered a:hover {
  color: rgba(255, 255, 255, 0.90);
}

/* Separador visual entre colunas do footer */
.site-footer__col-title {
  font-family: var(--theme-typography-font-family);
  letter-spacing: 0.06em;
}

/* Footer links — gap levemente maior */
.site-footer__links {
  gap: 10px;
}

/* Portal name — usa heading font */
.site-footer__portal-name {
  font-family: var(--theme-typography-heading-font-family);
}


/* ============================================================
   H. Ad slot — visual refinado, sem borda dashed
   ============================================================ */

/* Remove qualquer borda dashed legada */
.ad-slot {
  border: none;
  min-height: 90px;
  background-color: var(--theme-palette-surface);
  border-radius: var(--theme-borders-radius-lg);
  position: relative;
  overflow: hidden;
}

/* Label "Publicidade" sutil */
.ad-slot::before {
  content: 'Publicidade';
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 10px;
  font-family: var(--theme-typography-font-family);
  color: var(--theme-palette-text-disabled);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}

/* Se já tem .ad-slot__label, o ::before fica oculto */
.ad-slot:has(.ad-slot__label)::before {
  display: none;
}


/* ============================================================
   I. Skeleton / Loading state
   ============================================================ */

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.skeleton {
  background-color: var(--theme-palette-surface);
  border-radius: var(--theme-borders-radius);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
  height: 1em;
  margin-bottom: 8px;
  border-radius: var(--theme-borders-radius-sm);
  background-color: var(--theme-palette-surface);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line--short { width: 60%; }
.skeleton-line--medium { width: 80%; }
.skeleton-line--full { width: 100%; }

.skeleton-image {
  width: 100%;
  background-color: var(--theme-palette-surface);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}


/* ============================================================
   J. Acessibilidade — foco aprimorado
   ============================================================ */

/* Cards com imagem — foco no link usa box-shadow para não distorcer o radius */
.news-card--image .news-card__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--theme-palette-primary);
}

/* Links de nav — foco visível */
.site-nav__link:focus-visible {
  outline: 2px solid var(--theme-palette-accent);
  outline-offset: 2px;
  border-radius: var(--theme-borders-radius-sm);
}

/* Back to top — sombra lg conforme spec */
.back-to-top {
  box-shadow: var(--shadow-lg);
}

/* Área de toque mínima 44px nos share buttons */
.share-btn {
  min-width: 44px;
  min-height: 44px;
}


/* ============================================================
   K. Sticky header — z-index e overflow
   ============================================================ */

/* Quando scrollado: top-bar e brand-bar ficam ocultos com overflow hidden */
.site-header--scrolled .site-header__top-bar {
  max-height: 0;
  overflow: hidden;
  /* opacity já tratado no base.css */
}

.site-header--scrolled .site-header__brand-bar {
  max-height: 0;
  overflow: hidden;
}

/* Nav scrollada: fundo sólido com sombra */
.site-header--scrolled .site-nav {
  box-shadow: var(--shadow-md);
  z-index: 200;
}


/* ============================================================
   L. Container wide (1280px+)
   ============================================================ */

/* Spec: wide usa max-width 1440px (em base.css está 1440px — correto).
   Aqui garantimos que o padding lateral aumenta em wide screens */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-4);
  }
}


/* ============================================================
   M. Highlights grid — imagem placeholder
   ============================================================ */

/* Quando card não tem imagem, mostrar área placeholder com altura fixa */
.news-card--image .news-card__image-wrap.news-card__image-wrap--no-image {
  background-color: var(--theme-palette-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card--image .news-card__image-wrap.news-card__image-wrap--no-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23D1D9E0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px 40px;
}


/* ============================================================
   N. Block section heading aprimorado
   ============================================================ */

/* Block-title: reforçar separação do conteúdo */
.block-title {
  padding-top: var(--space-1);
  color: var(--theme-palette-text);
}

/* Bloco headline não tem block-title (título fica no overlay da imagem) */
.block-headline .block-title {
  display: none;
}


/* ============================================================
   O. Headline main title — responsivo
   ============================================================ */

@media (min-width: 768px) {
  .headline-main__title {
    font-size: var(--type-scale-2xl);
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .headline-main__subtitle {
    font-size: var(--type-scale-md);
  }
}

@media (min-width: 1024px) {
  .headline-main__title {
    font-size: var(--type-scale-3xl);
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}


/* ============================================================
   P. Grid responsivo — ajustes finos
   ============================================================ */

/* Highlights: primeiro card featured em desktop quando 5+ itens */
@media (min-width: 1024px) {
  .highlights-grid--featured .news-card:first-child {
    grid-column: 1 / -1;
  }

  /* Em featured, a imagem do primeiro card usa ratio-hero para mais impacto */
  .highlights-grid--featured .news-card:first-child .news-card__image-wrap {
    padding-bottom: var(--ratio-hero);
  }

  .highlights-grid--featured .news-card:first-child .news-card__title {
    font-size: var(--type-scale-xl);
  }
}

/* Block headline: em tablet o grid 8/4 funciona melhor com gap menor */
@media (min-width: 768px) {
  .headline-grid {
    gap: var(--space-3);
    align-items: start;
  }

  .headline-secondary {
    gap: var(--space-2);
  }
}

/* Latest grid — gap no mobile */
.latest-grid {
  gap: var(--space-2);
}

/* Destaques do bloco by-location: label de localidade mais proeminente */
.block-by-location .location-badge {
  font-weight: var(--font-weight-medium);
  background-color: var(--theme-palette-primary-subtle);
  border-color: var(--theme-palette-primary);
  color: var(--theme-palette-primary);
}


/* ============================================================
   Q. Category page — filtros
   ============================================================ */

.category-filters {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: var(--theme-borders-radius-full);
  font-size: var(--type-scale-sm);
  font-weight: var(--font-weight-medium);
  font-family: var(--theme-typography-font-family);
  border: 1px solid var(--theme-palette-border);
  background: var(--theme-palette-surface);
  color: var(--theme-palette-text-secondary);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:hover {
  background: var(--theme-palette-primary-subtle);
  color: var(--theme-palette-primary);
  border-color: var(--theme-palette-primary);
}

.filter-btn--active {
  background: var(--theme-palette-primary);
  color: #ffffff;
  border-color: var(--theme-palette-primary);
}

.filter-btn--active:hover {
  background: var(--theme-palette-primary-hover);
  border-color: var(--theme-palette-primary-hover);
  color: #ffffff;
}


/* ============================================================
   R. Sidebar widget
   ============================================================ */

.sidebar-widget {
  background: var(--theme-palette-surface-raised);
  border-radius: var(--theme-borders-radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
}

.sidebar-widget__title {
  font-size: var(--type-scale-base);
  font-weight: var(--font-weight-bold);
  font-family: var(--theme-typography-heading-font-family);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 2px solid var(--theme-palette-primary);
}


/* ============================================================
   S. Dark mode — ajustes para enhancements
   ============================================================ */

[data-theme="dark"] .block-empty {
  background-color: var(--theme-palette-surface);
  border-color: var(--theme-palette-divider);
}

[data-theme="dark"] .no-blocks::before {
  opacity: 0.3;
}

[data-theme="dark"] .news-card__image-placeholder,
[data-theme="dark"] .news-card__thumb-placeholder {
  background-color: var(--theme-palette-surface);
}

[data-theme="dark"] .filter-btn {
  background: var(--theme-palette-surface);
  border-color: var(--theme-palette-border);
  color: var(--theme-palette-text-secondary);
}

[data-theme="dark"] .site-footer__bottom .site-footer__copyright,
[data-theme="dark"] .site-footer__bottom .site-footer__powered {
  color: rgba(255, 255, 255, 0.55);
}


/* ============================================================
   U. Location badge sobre fundo escuro (hero)
   ============================================================ */

.location-badge--on-dark {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Headline sem imagem: ícone centralizado */
.headline-main__no-image-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Block empty maior para o bloco headline */
.block-empty--headline {
  min-height: 220px;
  font-size: var(--type-scale-md);
}

/* ============================================================
   T. Reduced motion — desabilitar enhancements
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .skeleton-line,
  .skeleton-image {
    animation: none;
  }

  .news-card--horizontal:hover .news-card__thumb {
    transform: none;
  }

  .news-card--secondary-headline {
    transition: none;
  }
}

/* ============================================================
   U. Carrossel secondary headlines — mobile (EP-007-04)
   ============================================================ */

@media (max-width: 767px) {
  .headline-secondary {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--space-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-1);
  }

  .headline-secondary::-webkit-scrollbar {
    display: none;
  }

  .headline-secondary .news-card--secondary-headline {
    flex: 0 0 78%;
    min-width: 240px;
    max-width: 320px;
    scroll-snap-align: start;
    background: var(--theme-palette-surface-raised);
    border: var(--theme-borders-width) solid var(--theme-palette-border);
    border-radius: var(--theme-borders-radius);
    box-shadow: var(--shadow-xs);
    padding: var(--space-2);
  }

  .headline-secondary .news-card--secondary-headline .news-card__body {
    padding: 0 0 0 var(--space-1);
  }
}


/* ============================================================
   V. REDESIGN 2026-04 — Visual Polish
   ============================================================ */

/* --- V.1 Card Shadows & Hover --- */
.news-card--image {
  box-shadow: 0 1px 3px rgba(28,27,25,0.08), 0 1px 2px rgba(28,27,25,0.06);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.news-card--image:hover {
  box-shadow: 0 8px 24px rgba(28,27,25,0.16);
  transform: translateY(-2px);
}

.news-card--image .news-card__image {
  transition: transform 250ms ease;
}

.news-card--image:hover .news-card__image {
  transform: scale(1.03);
}

/* --- V.2 Hero Overlay Stronger --- */
.headline-main__overlay {
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgba(28, 27, 25, 0.55) 55%,
    rgba(28, 27, 25, 0.92) 100%
  ) !important;
}

/* --- V.3 Section Headers with Red Border --- */
.block-title {
  border-bottom: 3px solid var(--theme-palette-primary);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.block-title > span {
  font-family: var(--theme-typography-heading-font-family);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
}

/* --- V.4 Updated Badge Colors --- */
.category-badge--politica,
.category-badge--política {
  background-color: #1A4F8C !important;
}

.category-badge--economia {
  background-color: #B57A00 !important;
}

.category-badge--cidade {
  background-color: #4A5568 !important;
}

.category-badge--cultura {
  background-color: #7B3FB5 !important;
  color: #ffffff !important;
}

.category-badge--esportes {
  background-color: #1A7A3A !important;
}

.category-badge--saude,
.category-badge--saúde {
  background-color: #C03060 !important;
}

.category-badge--educacao,
.category-badge--educação {
  background-color: #2B7E8C !important;
  color: #ffffff !important;
}

.category-badge--seguranca,
.category-badge--segurança,
.category-badge--seguranca-publica {
  background-color: #8C3A1A !important;
}

/* Outline variants follow the same colors */
.category-badge--outline.category-badge--politica,
.category-badge--outline.category-badge--política {
  border-color: #1A4F8C !important;
  color: #1A4F8C !important;
  background-color: transparent !important;
}

.category-badge--outline.category-badge--economia {
  border-color: #B57A00 !important;
  color: #B57A00 !important;
  background-color: transparent !important;
}

.category-badge--outline.category-badge--cidade {
  border-color: #4A5568 !important;
  color: #4A5568 !important;
  background-color: transparent !important;
}

.category-badge--outline.category-badge--cultura {
  border-color: #7B3FB5 !important;
  color: #7B3FB5 !important;
  background-color: transparent !important;
}

.category-badge--outline.category-badge--esportes {
  border-color: #1A7A3A !important;
  color: #1A7A3A !important;
  background-color: transparent !important;
}

.category-badge--outline.category-badge--educacao,
.category-badge--outline.category-badge--educação {
  border-color: #1A5F6B !important;
  color: #1A5F6B !important;
  background-color: transparent !important;
}

.category-badge--outline.category-badge--seguranca-publica {
  border-color: #8C3A1A !important;
  color: #8C3A1A !important;
  background-color: transparent !important;
}

/* --- V.5 Nav Links --- */
.site-nav__link {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}

/* --- V.6 Badges pill shape --- */
.category-badge {
  border-radius: 100px !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}

/* --- V.7 Header red bottom border --- */
.site-header {
  border-bottom: 3px solid var(--theme-palette-primary) !important;
}

/* --- V.8 Card title hover color --- */
.news-card__link:hover .news-card__title {
  color: var(--theme-palette-primary);
  transition: color 150ms ease;
}

/* --- V.9 Secondary headline accent line uses primary color --- */
.news-card--secondary-headline .news-card__accent-line {
  background-color: var(--theme-palette-primary) !important;
}

/* --- V.10 Hide empty by-location blocks --- */
.block-by-location:has(.block-empty) {
  display: none;
}

/* --- V.11 Footer improvements --- */
.site-footer {
  background: #1A1A1A !important;
}

.site-footer__portal-name {
  font-family: var(--theme-typography-heading-font-family) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

/* --- V.12 Body background --- */
body {
  background-color: var(--theme-palette-background) !important;
}

/* --- V.13 Highlights grid: fix orphan 4th card --- */
@media (min-width: 1024px) {
  .highlights-grid > .news-card--image:nth-child(4):last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__image-wrap {
    padding-bottom: 0;
    height: 100%;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__image {
    position: static;
    height: 100%;
    aspect-ratio: 4 / 3;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* --- V.14 Horizontal cards: subtle divider between items --- */
.news-card--horizontal {
  border-radius: 6px;
  transition: background-color 150ms ease;
}

.news-card--horizontal:hover {
  background-color: var(--theme-palette-surface);
}

/* --- V.15 Block-title link arrow animation --- */
.block-title__link {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 150ms ease;
  color: var(--theme-palette-primary) !important;
  font-weight: 600 !important;
}

.block-title__link::after {
  content: →;
}

.block-title__link:hover {
  gap: 8px;
}

/* --- V.16 Focus visible --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--theme-palette-primary);
  outline-offset: 2px;
}

/* --- V.17 Header: usa navy do logo (--theme-palette-secondary) --- */
.site-header__brand-bar {
  background-color: var(--theme-palette-secondary) !important;
}

.site-nav {
  background-color: var(--theme-palette-secondary) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.site-header--scrolled .site-nav {
  background-color: var(--theme-palette-secondary) !important;
}

/* --- V.18 Fix orphan 4th card in highlights --- */
@media (min-width: 1024px) {
  .highlights-grid > .news-card--image:nth-child(4):last-child {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    grid-template-rows: auto !important;
    max-height: 240px;
    overflow: hidden;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__link {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__image-wrap {
    padding-bottom: 0 !important;
    height: 240px !important;
    position: relative !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__image,
  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__image-placeholder {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__body {
    padding: 20px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
}

/* --- V.19 Top bar background --- */
.site-header__top-bar {
  background-color: var(--theme-palette-secondary) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* --- V.20 Fix orphan card link layout --- */
@media (min-width: 1024px) {
  .highlights-grid > .news-card--image:nth-child(4):last-child,
  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__link {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__image-wrap {
    height: auto !important;
    min-height: 200px !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .category-badge--on-image {
    position: relative !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__title {
    font-size: 1.25rem !important;
    -webkit-line-clamp: 3 !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__summary {
    -webkit-line-clamp: 3 !important;
  }
}

/* --- V.21 Orphan card: definitive fix --- */
@media (min-width: 1024px) {
  /* Reset previous attempts */
  .highlights-grid > .news-card--image:nth-child(4):last-child {
    grid-column: 1 / -1 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__link {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__image-wrap {
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    flex-shrink: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    min-height: 220px !important;
    position: relative !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__body {
    flex: 1 !important;
    padding: 24px 32px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__title {
    font-size: 1.375rem !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 3 !important;
  }

  .highlights-grid > .news-card--image:nth-child(4):last-child .news-card__summary {
    font-size: 1rem !important;
    -webkit-line-clamp: 3 !important;
    margin-top: 8px !important;
  }
}


/* ============================================================
   === TASK 02 — Footer 4 colunas ===
   ============================================================ */

/* Desktop: 4 columns (≥1024px) */
.site-footer__grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 32px !important;
}

.site-footer__col--brand .site-footer__about {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: rgba(255,255,255,0.65);
}

.site-footer__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 150ms ease;
}

.site-footer__social a:hover { color: #fff; }

.site-footer__social svg { flex-shrink: 0; }

.site-footer__newsletter-placeholder {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.40);
  font-style: italic;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* Tablet: 2 columns (640px–1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .site-footer__col--brand {
    grid-column: 1 / -1;
  }
}

/* Mobile: 1 column (<640px) */
@media (max-width: 639px) {
  .site-footer__grid {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   === TASK 03 — Hamburger menu (CSS already in base, ensuring overlay) ===
   ============================================================ */

/* Scroll lock when menu is open */
body.menu-open {
  overflow: hidden !important;
}

/* Hamburger animation: 3 lines → X */
.site-nav__hamburger-line {
  transition: transform 250ms ease, opacity 150ms ease;
}

.site-nav--open .site-nav__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px) !important;
}

.site-nav--open .site-nav__hamburger-line:nth-child(2) {
  opacity: 0 !important;
}

.site-nav--open .site-nav__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px) !important;
}


/* ============================================================
   === TASK 04 — Carrossel secondary headlines mobile ===
   ============================================================ */

@media (max-width: 767px) {
  .headline-secondary {
    display: flex !important;
    overflow-x: auto !important;
    gap: 12px !important;
    padding: 12px 0 !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .headline-secondary::-webkit-scrollbar { display: none; }

  .headline-secondary .news-card--secondary-headline {
    min-width: 260px !important;
    max-width: 280px !important;
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
    border: 1px solid var(--theme-palette-divider);
    border-radius: 8px;
    padding: 12px !important;
  }

  .headline-secondary .news-card--secondary-headline + .news-card--secondary-headline {
    border-top: none !important;
    margin-top: 0 !important;
  }
}


/* ============================================================
   === TASK 05 — Página de notícia: tipografia artigo ===
   ============================================================ */

.article-body {
  font-family: var(--theme-typography-font-family) !important;
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
  color: var(--theme-palette-text) !important;
}

.article-body p {
  margin-bottom: 1.5em;
}

.article-header__title {
  font-family: var(--theme-typography-heading-font-family) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.article-header__subtitle {
  font-family: var(--theme-typography-font-family) !important;
  font-size: 1.25rem !important;
  line-height: 1.5 !important;
  color: var(--theme-palette-text-secondary) !important;
}

/* Share buttons — pill style */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--theme-palette-divider);
  border-bottom: 1px solid var(--theme-palette-divider);
  margin: 24px 0;
}

.article-share__buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--theme-palette-divider);
  background: var(--theme-palette-surface);
  color: var(--theme-palette-text-secondary);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  text-decoration: none;
}

.share-btn:hover {
  background: var(--theme-palette-primary);
  color: #fff;
  border-color: var(--theme-palette-primary);
}

.share-btn--whatsapp:hover { background: #25D366; border-color: #25D366; }
.share-btn--twitter:hover { background: #1DA1F2; border-color: #1DA1F2; }

/* Related news grid */
.article-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 767px) {
  .article-related__grid {
    grid-template-columns: 1fr;
  }
}

.article-related__title {
  font-family: var(--theme-typography-heading-font-family);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.125rem;
  border-bottom: 3px solid var(--theme-palette-primary);
  padding-bottom: 10px;
  margin-bottom: 20px;
}


/* ============================================================
   === TASK 06 — Página de categoria: grid responsivo + filtros ===
   ============================================================ */

/* Filter pills wrapper: horizontal scroll on mobile */
.page-category .category-filters {
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-1);
}

.category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

@media (max-width: 1023px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 639px) {
  .category-grid {
    grid-template-columns: 1fr !important;
  }
}

.category-header__name {
  font-family: var(--theme-typography-heading-font-family) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.category-header__accent {
  width: 60px;
  height: 3px;
  background: var(--theme-palette-primary);
  margin: 8px 0 12px;
}

/* Pagination polish */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--theme-palette-divider);
}

.pagination__prev,
.pagination__next {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--theme-palette-primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--theme-palette-primary);
  transition: background 150ms ease, color 150ms ease;
}

.pagination__prev:hover,
.pagination__next:hover {
  background: var(--theme-palette-primary);
  color: #fff;
}

.pagination__info {
  font-size: 0.875rem;
  color: var(--theme-palette-text-secondary);
}

/* ============================================================
   === TASK 07 — Breaking news ticker ===
   ============================================================ */

.ticker {
  background: var(--theme-palette-accent, #c0392b);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  position: relative;
  z-index: 100;
}

.ticker__label {
  background: rgba(0, 0, 0, 0.25);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker__track {
  display: flex;
  align-items: center;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  padding-left: 24px;
}

.ticker__track:hover { animation-play-state: paused; }

.ticker__link {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.ticker__link:hover { text-decoration: underline; }

.ticker__spacer {
  padding: 0 24px;
  opacity: 0.6;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Hide duplicate items (used for seamless loop) when animation is disabled */
  .ticker__link[aria-hidden="true"],
  .ticker__spacer:has(+ .ticker__link[aria-hidden="true"]) {
    display: none;
  }
}


/* Sidebar widget for category list */
.sidebar-widget__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-widget__link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--theme-palette-text-secondary);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.sidebar-widget__link:hover {
  background: var(--theme-palette-primary-subtle);
  color: var(--theme-palette-primary);
}

.sidebar-widget__link--active {
  background: var(--theme-palette-primary) !important;
  color: #fff !important;
  font-weight: 600;
}


/* ============================================================
   === TASK 08 — Performance & Acessibilidade ===
   ============================================================ */

/* Touch targets: minimum 44px for all interactive elements on mobile */
@media (max-width: 767px) {
  .site-nav__link,
  .site-nav__hamburger,
  .share-btn,
  .back-to-top,
  .pagination__prev,
  .pagination__next,
  .sidebar-widget__link,
  .site-footer__links a,
  .site-footer__social a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Focus visible: consistent outline for all interactive elements */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--theme-palette-primary) !important;
  outline-offset: 2px !important;
}

/* Image loading: reserve space to prevent CLS */
.news-card__image-wrap {
  background-color: var(--theme-palette-surface);
}

.news-card__image,
.article-hero__image {
  background-color: var(--theme-palette-surface);
}

/* Skeleton shimmer for .news-card__image-wrap (pure CSS, no JS) */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.news-card__image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    var(--theme-palette-surface) 25%,
    var(--theme-palette-divider) 50%,
    var(--theme-palette-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Once the image is loaded, hide the shimmer */
.news-card__image-wrap > img {
  position: relative;
  z-index: 1;
}

/* Skeleton loading animation for images */
img[loading="lazy"] {
  background: linear-gradient(
    90deg,
    var(--theme-palette-surface) 25%,
    var(--theme-palette-divider) 50%,
    var(--theme-palette-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

img[loading="lazy"][src] {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  img[loading="lazy"] { animation: none; }
  .news-card__image-wrap::before { animation: none; }
}

/* Ensure all images don't cause layout shift */
.news-card__image {
  aspect-ratio: 4 / 3;
}

.headline-main__image {
  aspect-ratio: 16 / 9;
}

/* Print: hide non-essential elements */
@media print {
  .ticker,
  .site-nav__hamburger,
  .back-to-top,
  .ad-slot,
  .site-footer__newsletter,
  .site-footer__social,
  .article-share {
    display: none !important;
  }
}

/* =====================================================
   SIDEBAR WIDGETS — categorias + relacionadas
   ===================================================== */

.sidebar-widget {
  background: var(--theme-palette-surface, #f5f8fc);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-palette-text-secondary, #3d5a7a);
  border-bottom: 2px solid var(--theme-palette-primary, #1d6fa4);
  padding-bottom: 0.5rem;
  margin: 0 0 0.75rem;
}

/* Editorias */
.sidebar-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-categories__link {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  color: var(--theme-palette-text, #0d2337);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}

.sidebar-categories__link:hover {
  background: var(--theme-palette-primary-subtle, #e6f3fb);
  color: var(--theme-palette-primary, #1d6fa4);
}

.sidebar-categories__item--active .sidebar-categories__link {
  background: var(--theme-palette-primary, #1d6fa4);
  color: #fff;
  font-weight: 600;
}

/* Notícias relacionadas */
.sidebar-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-related__link {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  text-decoration: none;
  color: var(--theme-palette-text, #0d2337);
}

.sidebar-related__link:hover .sidebar-related__title {
  color: var(--theme-palette-primary, #1d6fa4);
}

.sidebar-related__img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.sidebar-related__title {
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 500;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
