: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; }

.mainnav {
  display: flex;
  align-items: center;
  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) */
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-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-y: auto; padding: 8px 0; }
.drawer-row { display: flex; align-items: center; }
.drawer-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  padding: 12px 16px;
}
.drawer-link svg { flex-shrink: 0; color: var(--accent); }
.drawer-link span:first-of-type { flex: 1; }
.drawer-link:hover { background: var(--bg-alt); 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, .sections {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* manchete grande no topo da home, igual ao newwws.today */
.hero-story {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 4px;
  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; }
@media (max-width: 780px) {
  .hero-story { grid-template-columns: 1fr; }
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-head h2 a { text-decoration: none; display: flex; align-items: center; gap: 6px; }
.section-head h2 svg { width: 18px; height: 18px; color: var(--accent); }
.more {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
}
.more:hover { color: var(--accent); }

/* grid de manchetes, no estilo do newwws.today (thumbnails grandes 16:10 em grade,
   em vez da lista antiga com miniatura de 78x78 espremida) */
.feed-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px 20px;
}
.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; display: flex; flex-direction: column; gap: 3px; }
.feed-body .title {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.32;
  -webkit-line-clamp: 3;
}

@media (max-width: 500px) {
  .feed-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
}
@media (max-width: 360px) {
  .feed-grid { grid-template-columns: 1fr; }
}

.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: #1f8a5c; border-color: #1f8a5c; color: #fff; font-weight: 600; }
.chip-cat:hover { background: #17704a; border-color: #17704a; color: #fff; }
.chip-sub { background: #e3f1ea; border-color: #e3f1ea; color: #1f8a5c; }
.chip-sub:hover { background: #cfe8db; border-color: #cfe8db; color: #17704a; }
.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;
  display: flex;
  align-items: center;
  gap: 8px;
}
.listing h1 svg { width: 24px; height: 24px; color: var(--accent); }
.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); }

.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-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: 20px;
  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; }
