:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --card-bg: #ffffff;
  --card-border: #000000;
  --text: #1c1c1e;
  --text-dim: #6e6e76;
  --accent: #1f8a5c;
  --accent-orange: #d2691e;
  --accent-orange-text: #a0521a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Ubuntu', sans-serif;
}
a { color: inherit; }

.topbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.logo {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text);
}
.logo span { color: var(--accent); }
.search {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: 7px;
  overflow: hidden;
  flex: 1;
  max-width: 380px;
  padding: 4px;
}
.search input {
  border: none;
  outline: none;
  padding: 7px 6px 7px 14px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.88rem;
  flex: 1;
  min-width: 0;
  background: transparent;
  color: var(--text);
}
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-btn:hover { background: #176f49; }

.search-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-mask.active { opacity: 1; pointer-events: all; }
.search-mask-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--card-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: search-mask-spin 0.7s linear infinite;
}
@keyframes search-mask-spin { to { transform: rotate(360deg); } }

.mainnav {
  display: flex;
  gap: 8px;
}
.navbtn {
  background: #e6f4ea;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  padding: 8px 16px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e7e42;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease;
}
.navbtn:hover {
  background: #d7ecdf;
}
.navcount { color: var(--text-dim); font-size: 0.72rem; }

/* menu lateral (categorias / lugares) */
body.drawer-lock { overflow: hidden; }
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.32s;
}
.drawer.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,20,25,0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.drawer.open .drawer-overlay { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; left: 0;
  width: 360px;
  max-width: 88vw;
  height: 100%;
  background: var(--card-bg);
  box-shadow: 12px 0 40px rgba(0,0,0,0.16);
  border-radius: 0 14px 14px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.16,1,.3,1);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--card-border);
}
.drawer-back {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border: none; border-radius: 50%; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--accent-orange);
  width: 38px; height: 38px; flex: 0 0 auto;
  transition: background 0.15s ease, transform 0.15s ease;
}
.drawer-back:hover { background: #fbe8d9; transform: translateX(-2px); }
.drawer-search {
  flex: 1;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.85rem;
  outline: none;
}
.drawer-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--text-dim);
  padding: 4px 8px;
}
.drawer-close:hover { color: var(--text); }
.drawer-body { flex: 1; overflow: hidden; position: relative; }
.drawer-track {
  display: flex;
  height: 100%;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}
.drawer-screen {
  flex: 0 0 100%;
  width: 100%;
  overflow-y: auto;
  padding: 8px 0;
}
.drawer-crumbs {
  padding: 10px 16px;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-crumb {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}
.drawer-crumb:hover { text-decoration: underline; }
.drawer-goto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 16px;
  padding: 11px 14px;
  background: var(--accent-orange);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}
.drawer-goto:hover { background: var(--accent-orange-text); }
.drawer-heading {
  padding: 12px 16px 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 700;
}
.drawer-row { display: flex; align-items: center; }
.drawer-link {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  padding: 10px 16px;
}
.drawer-link:hover { background: var(--bg-alt); color: var(--accent); }
.drawer-row-folder { cursor: pointer; }
.drawer-row-folder .drawer-folder { cursor: pointer; }
.drawer-drill {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim);
  font-size: 1.3rem; line-height: 1;
  padding: 8px 14px 8px 4px;
}
.drawer-drill:hover { color: var(--accent); }

.crumbs {
  padding: 10px 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.82rem;
  overflow-x: auto;
  background: var(--bg-alt);
}
.crumbs a {
  text-decoration: none;
  color: var(--text-dim);
  white-space: nowrap;
}
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text); white-space: nowrap; }

.home-feed {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.home-main { min-width: 0; }
@media (max-width: 980px) {
  .home-feed { grid-template-columns: 1fr; }
}

/* coluna "Most read" a direita, cards horizontais com foto real pequena a esquerda
   e contagem de visitas -- mesmo bloco do cookie-news.com (sites-irmaos) */
.side-panel {
  position: static;
  align-self: start;
  min-width: 0;
}
@media (max-width: 980px) {
  .side-panel { position: static; }
}
.side-panel-title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
}
/* widget "Trending on X" -- lista de termos raspados do trends24.in (sem API oficial
   do X, que hoje e paga), global ou por pais escolhido no seletor (persistido no
   localStorage do visitante, ver partials/trending.ejs). Nao e sticky (so o most-read
   fica grudado no topo) pra nao competir por espaco na coluna. */
.home-side { min-width: 0; }
.trending-panel { position: static; margin-top: 28px; }
.side-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--text); }
.side-panel-head .side-panel-title { margin: 0; padding: 0; border: none; }
.side-panel-head .side-panel-title a { color: inherit; text-decoration: none; }
.side-panel-head .side-panel-title a:hover { color: var(--accent); }
.trends-page-form { margin: 4px 0 20px; }
.trends-page-form .trends-select { max-width: 220px; font-size: 0.85rem; padding: 6px 10px; }
.trend-page-list .card { display: block; padding: 12px 0; }
.trend-page-list .title { font-size: 0.95rem; font-weight: 600; }
.trend-page-list .meta { display: block; margin-top: 4px; }
.trends-select {
  font-size: 0.72rem;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  max-width: 110px;
}
.trend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.trend-list li { border-bottom: 1px solid var(--card-border); padding: 8px 0; }
.trend-list li:last-child { border-bottom: none; }
.trend-list a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.trend-list a:hover { color: var(--accent); }
.trend-list .trend-empty { color: var(--text-dim); font-size: 0.8rem; font-weight: 400; }

.mr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mr-item { border-bottom: 1px solid var(--card-border); }
.mr-item:last-child { border-bottom: none; }
.mr-link {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
  color: var(--text);
}
.mr-rank {
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dim);
  width: 16px;
  flex-shrink: 0;
  text-align: center;
}
.mr-thumb {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}
.mr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mr-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mr-title {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mr-link:hover .mr-title { color: var(--accent); }
.mr-views { font-size: 0.68rem; color: #fff; background: var(--accent); display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; width: fit-content; font-weight: 600; }
.mr-views svg { width: 12px; height: 12px; flex-shrink: 0; color: #fff; }
.mr-meta { font-size: 0.7rem; color: var(--text-dim); }

.hero-story {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--card-border);
}
.hero-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-body .title {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  -webkit-line-clamp: 4;
}
.hero-body .chips { margin: 4px 0 10px; }
.hero-body .meta { font-size: 0.8rem; }

.feed-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px 24px;
}
.feed-card { display: flex; flex-direction: column; }
.feed-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
}
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-body { padding-top: 10px; }
.feed-body .title {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.32;
  -webkit-line-clamp: 3;
}

/* secao "Videos" da home -- reaproveita o .feed-grid/.feed-card (16:10, ja existia
   pro feed antigo da home, ficou sem uso quando isso virou lista compacta) so pra
   sinalizar que e' video: thumbnail real do YouTube + botao de play por cima,
   nunca embed cru na listagem (o player de verdade so entra na pagina do artigo). */
.video-thumb { position: relative; background: #000; }
.video-thumb .play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.video-thumb .play-btn svg { margin-left: 3px; }
.video-thumb:hover .play-btn { background: #e02424; transform: scale(1.08); }

/* secao "Trending on X" da home -- mostra materias NOSSAS que batem com um termo em
   alta no X (ver buildTwitterTrendsSection no server.js), nao o tweet em si. A tag
   marca qual termo casou, pra ficar claro o motivo do card estar ali. */
.trend-match-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #14171a;
  padding: 2px 7px;
  border-radius: 3px;
  width: fit-content;
  margin-bottom: 2px;
}

@media (max-width: 780px) {
  .hero-story { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .feed-grid { grid-template-columns: 1fr; gap: 24px; }
}

.thumb {
  text-decoration: none;
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%231f8a5c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.55'%3E%3Crect x='7' y='10' width='34' height='28' rx='2'/%3E%3Cpath d='M14 18h20M14 24h20M14 30h12'/%3E%3Ccircle cx='34' cy='30' r='2.4' fill='%231f8a5c' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #eef1ee 0%, #e4e9e4 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 34px 34px, cover;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.headline-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.title {
  display: -webkit-box;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.title:hover { color: var(--accent); }
.meta { font-size: 0.72rem; color: var(--text-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0; }
.chip {
  font-size: 0.68rem; font-weight: 500; padding: 1px 8px; border-radius: 3px;
  text-decoration: none; background: var(--bg-alt); color: var(--text-dim);
  border: 1px solid var(--card-border);
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip svg { vertical-align: -2px; margin-right: 3px; }
.chip-cat { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.chip-cat:hover { opacity: 0.85; color: #fff; }
.chip-sub { background: #cfe2ff; border-color: #cfe2ff; color: #0d47a1; }
.chip-sub:hover { background: #b6d4fe; border-color: #b6d4fe; color: #0d47a1; }
.chip-place { background: #000; border-color: #000; color: #fff; font-weight: 600; }
.chip-place:hover { background: #222; border-color: #222; color: #fff; }

.listing {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}
.listing h1 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.8rem;
  margin: 0 0 4px;
}
.listing .sub { color: var(--text-dim); margin: 0 0 20px; font-size: 0.9rem; }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
}
.card:last-child { border-bottom: none; }
.card .body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.card .title { font-weight: 500; }
.card .meta { font-size: 0.72rem; color: var(--text-dim); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.more {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
}
.more:hover { color: var(--accent); }

/* secoes de categoria da home -- cards horizontais (imagem quadrada a esquerda,
   texto a direita) abaixo do feed continuo; cada secao tem um "botao" colorido
   com o nome da categoria (cor por hash, ver lib/icons.js categoryColor) e o
   link "ver todos" casa com essa mesma cor. Divisoria grossa entre secoes. */
.cat-section { margin-top: 40px; }
.cat-section + .cat-section {
  border-top: 4px solid var(--card-border);
  padding-top: 32px;
}
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 7px;
  background: var(--cat-color, var(--accent));
  color: #fff;
  text-decoration: none;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
.cat-badge svg { color: #fff; }
.cat-badge:hover { opacity: 0.88; }

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.pager a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}
.article-hero {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  margin-bottom: 22px;
  background-size: 64px 64px, cover;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-video { height: auto; aspect-ratio: 16 / 9; background: #000; overflow: hidden; display: block; }
.article-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.article-orig-title {
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--accent-orange-text);
}
.article h1 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.9rem;
  line-height: 1.3;
  margin: 0 0 10px;
}
.article-meta {
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.article-meta .source { font-weight: 500; color: var(--text); }
.tags { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tag {
  text-decoration: none;
  background: var(--bg-alt);
  color: var(--text-dim);
  padding: 4px 12px;
  border-radius: 7px;
  font-size: 0.78rem;
}
.tag:hover { color: var(--accent); }
.article-summary {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 26px;
}
.social-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.social-stat {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.85rem; color: var(--text-dim); margin-right: 4px;
}
.social-stat svg { width: 18px; height: 18px; }
.social-btn {
  display: flex; align-items: center; gap: 5px;
  border: none; background: none; padding: 4px 2px;
  color: var(--text-dim); cursor: pointer; text-decoration: none;
  font-size: 0.85rem; font-family: inherit; line-height: 1;
  transition: opacity 0.15s, transform 0.1s;
}
.social-btn svg { width: 20px; height: 20px; transition: transform 0.1s; }
.social-btn:hover { opacity: 0.75; }
.social-btn:active svg { transform: scale(0.9); }
.social-count { font-size: 0.82rem; font-weight: 500; color: var(--text-dim); }

.like-btn.active { color: #e0536a; }

.share-facebook { color: #1877f2; }
.share-twitter { color: #000; }
.share-whatsapp { color: #25d366; }
.copy-btn { color: var(--text-dim); }

.copy-label { font-size: 0.8rem; }
.read-original {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 40px;
}
.read-original:hover { opacity: 0.9; }
.related h2 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.2rem;
  margin: 0 0 14px;
}

footer {
  border-top: 1px solid var(--card-border);
  padding: 20px 24px 40px;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-align: center;
}

/* mostra/esconde o texto original (acrescentado, nunca substitui o traduzido) */
.orig-toggle {
  margin-left: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 10px;
  border: 1px solid var(--accent-orange);
  border-radius: 3px;
  background: transparent;
  color: var(--accent-orange);
  cursor: pointer;
  vertical-align: middle;
  text-transform: lowercase;
}
.orig-toggle:hover { background: var(--accent-orange); color: #fff; }
.orig-arrow { display: inline-block; transition: transform 0.2s ease; font-size: 0.9em; }
.orig-toggle.open .orig-arrow { transform: rotate(180deg); }
.tt-orig-block {
  display: block;
  max-height: 0;
  overflow: hidden;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--card-border);
  font-size: 0.92em;
  line-height: 1.4;
  color: var(--accent-orange-text);
  transition: max-height 0.22s ease, border-top-color 0.22s ease;
}
.tt-orig-block[hidden] { display: block; max-height: 0; border-top-color: transparent; }
.tt-orig-label { font-weight: 700; color: var(--accent-orange); text-transform: uppercase; font-size: 0.78em; letter-spacing: 0.03em; }

/* CTA da newsletter -- cor propria (laranja, ja usado como "destaque" no site) pra
   se diferenciar dos botoes cinza/verde padrao e chamar atencao sem parecer anuncio.
   Mesmo bloco do cookie-news.com/public/style.css (sites-irmaos, mesmas variaveis). */
.nl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 22px;
  padding: 13px 22px;
  border-radius: 6px;
  border: none;
  background: var(--accent-orange);
  color: #fff;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.nl-cta-btn:hover { background: #b85a17; }
.nl-cta-btn svg { flex-shrink: 0; }

.nl-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.nl-modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0s linear 0s;
}
.nl-modal-overlay { position: absolute; inset: 0; background: rgba(20, 20, 18, 0.55); }
.nl-modal-panel {
  position: relative;
  background: var(--bg);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(6px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.nl-modal.open .nl-modal-panel { transform: scale(1) translateY(0); }
.nl-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
}
.nl-modal-close:hover { color: var(--text); }
.nl-modal-body { padding: 34px 28px 28px; }
.nl-modal-body h2 { font-family: 'Ubuntu', sans-serif; font-size: 1.32rem; margin: 0 0 6px; }
.nl-sub { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 22px; line-height: 1.4; }
.nl-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.nl-field > span:first-child { font-weight: 600; font-size: 0.86rem; }
.nl-field input[type="email"] {
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.92rem;
}
.nl-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 2px;
}
/* chips de categoria/lugar -- fundo pastel bem claro e borda na cor "forte" da
   categoria (mesmo hash de categoryColor usado nos badges do resto do site), icone
   2px maior e na mesma cor da borda pra destacar. --chip-color vem inline por item
   (categoryColor(nome), tanto pra categoria quanto pra lugar -- mesmo padrao pros dois). */
.nl-cat-chip {
  --chip-color: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1.5px solid var(--chip-color);
  background: color-mix(in srgb, var(--chip-color) 12%, #fff);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, color 0.12s;
}
.nl-cat-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.nl-cat-chip:has(input:checked) { background: var(--chip-color); color: #fff; }
.nl-cat-chip:has(input:checked) svg { color: #fff; }
.nl-cat-chip svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--chip-color); }
.nl-hint { font-size: 0.74rem; color: var(--text-dim); margin: -4px 0 8px; grid-column: 1 / -1; }
.nl-continent-chip { display: flex; align-items: center; gap: 3px; width: 100%; }
.nl-continent-chip .nl-cat-chip { flex: 1; min-width: 0; }
.nl-expand-btn {
  flex-shrink: 0;
  border: 1.5px solid var(--card-border);
  background: none;
  border-radius: 7px;
  padding: 7px 8px;
  font-size: 0.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-dim);
  transition: transform 0.15s, background 0.12s, color 0.12s, border-color 0.12s;
}
.nl-expand-btn:hover { color: var(--text); }
.nl-expand-btn.open { background: var(--bg-alt); color: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.nl-country-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease, padding 0.25s ease;
}
.nl-country-panel.open {
  max-height: 240px;
  opacity: 1;
  overflow-y: auto;
  margin-top: 4px;
  padding: 10px;
  background: var(--bg-alt);
}
.nl-country-chip { font-size: 0.7rem; }
.nl-freqs { display: flex; flex-direction: column; gap: 7px; }
.nl-freq { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; }
.nl-terms { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 18px; line-height: 1.4; }
.nl-terms a { color: var(--accent); }
.nl-error {
  color: #b3261e;
  font-size: 0.82rem;
  margin-bottom: 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin-bottom 0.2s ease;
}
.nl-error.open { max-height: 60px; opacity: 1; }
.nl-modal-body { transition: opacity 0.2s ease; }
.nl-modal-body.fading { opacity: 0; }
.nl-submit {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: var(--accent-orange);
  color: #fff;
  font-weight: 700;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}
.nl-submit:hover { background: #b85a17; }
.nl-submit:disabled { opacity: 0.6; cursor: default; }
.nl-success { text-align: center; padding: 24px 0 8px; }
.nl-success svg { color: var(--accent); }
.nl-success h2 { margin: 12px 0 6px; }

/* paginas legais (termos, unsubscribe) */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.legal-narrow { max-width: 520px; text-align: center; }
.legal h1 { font-family: 'Ubuntu', sans-serif; font-size: 1.7rem; margin: 0 0 4px; }
.legal .sub { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 28px; }
.legal section { margin-bottom: 26px; }
.legal h2 { font-family: 'Ubuntu', sans-serif; font-size: 1.05rem; margin: 0 0 8px; }
.legal p { line-height: 1.6; color: var(--text); }
.legal a { color: var(--accent); }
.nl-back-link { display: inline-block; margin-top: 12px; color: var(--accent); text-decoration: none; font-weight: 500; }
