/* ===========================================================
   Tirei da Bunda.com — folha de estilos
   Identidade: azul-marinho + dourado, serifada no editorial,
   sóbria como um jornal de verdade.
   =========================================================== */

:root {
  --navy: #14304a;
  --navy-2: #1e4468;
  --navy-3: #0d2135;
  --gold: #c9a876;
  --gold-dark: #a3814f;
  --cream: #f7f3e9;
  --paper: #fffdf9;
  --ink: #1b1b1b;
  --ink-soft: #3a3a3a;
  --gray: #6b6b6b;
  --gray-light: #9a9a9a;
  --border: #e5ded0;
  --white: #ffffff;

  --cat-politica: #14304a;
  --cat-economia: #8a6a2f;
  --cat-brasil: #2f6d4f;
  --cat-mundo: #2f5f8a;
  --cat-comportamento: #7a4a6d;
  --cat-tecnologia: #2a7f7f;
  --cat-saude: #a13d3d;
  --cat-policia: #4a4a4a;
  --cat-esportes: #c47a2c;
  --cat-cultura: #a3486b;
  --cat-geral: #55606b;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- utilitário de categoria (tarja colorida) ---------- */
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  color: var(--white);
  background: var(--cat-geral);
}
.fato-num {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-right: 8px;
}
.cat-politica { background: var(--cat-politica); }
.cat-economia { background: var(--cat-economia); }
.cat-brasil { background: var(--cat-brasil); }
.cat-mundo { background: var(--cat-mundo); }
.cat-comportamento { background: var(--cat-comportamento); }
.cat-tecnologia { background: var(--cat-tecnologia); }
.cat-saude { background: var(--cat-saude); }
.cat-policia { background: var(--cat-policia); }
.cat-esportes { background: var(--cat-esportes); }
.cat-cultura { background: var(--cat-cultura); }

/* =========================== TOPO =========================== */
.topbar {
  background: var(--navy-3);
  color: #cdd8e2;
  font-size: 0.78rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  height: 32px;
}
.topbar .topbar-tag { color: var(--gold); font-weight: 600; letter-spacing: 0.03em; }

.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 14px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img.badge {
  height: 54px;
  width: 54px;
  flex-shrink: 0;
}
.brand-text .wordmark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.brand-text .wordmark .dotcom {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold-dark);
  margin-left: 2px;
}
.brand-text .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 3px;
}

/* =========================== HERO =========================== */
.hero-section {
  padding: 26px 0 10px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 26px;
}
.hero-main { position: relative; }
.hero-main .hero-img-link {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16/9.2;
  background: var(--cream);
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-main .tag { margin: 14px 0 8px; }
.hero-main h1 {
  font-family: var(--serif);
  font-size: 2.15rem;
  line-height: 1.15;
  margin: 0 0 10px;
}
.hero-main p.excerpt {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 8px;
}
.meta {
  font-size: 0.78rem;
  color: var(--gray);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.meta .dot::before { content: "•"; margin-right: 10px; color: var(--gold-dark); }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-side-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item .thumb {
  width: 108px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream);
}
.hero-side-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-item .info .tag { margin-bottom: 5px; font-size: 0.64rem; }
.hero-side-item h3 {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.28;
  margin: 0;
  font-weight: 700;
}

/* =========================== LAYOUT PRINCIPAL =========================== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 34px;
  padding: 30px 0;
}

.section-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
}
.card .thumb {
  aspect-ratio: 16/10;
  border-radius: 5px;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 10px;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .tag { margin-bottom: 7px; align-self: flex-start; }
.card h3 {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.28;
  margin: 0 0 7px;
  font-weight: 700;
}
.card p.excerpt {
  font-size: 0.86rem;
  color: var(--gray);
  line-height: 1.45;
  margin: 0 0 8px;
}
/* --------------------------- SIDEBAR --------------------------- */
.sidebar-box {
  margin-bottom: 30px;
}
.most-read-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.most-read-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.most-read-list li:first-child { padding-top: 0; }
.most-read-list .rank {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--gold-dark);
  line-height: 1;
  width: 34px;
  flex-shrink: 0;
}
.most-read-list h4 {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.3;
  margin: 0 0 4px;
  font-weight: 700;
}
.most-read-list .hits { font-size: 0.72rem; color: var(--gray); }

.ad-box {
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  font-family: var(--serif);
}
.ad-box .ad-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 10px;
}
.ad-box strong { display: block; font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.ad-box span { font-size: 0.82rem; color: var(--gray); font-family: var(--sans); }

/* --------------------------- TRILHOS DE EDITORIA --------------------------- */
.rail-section { padding: 6px 0 30px; }
.rail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.empty-rail {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
}
.empty-rail a { color: var(--gold-dark); font-weight: 700; text-decoration: underline; }

/* =========================== RODAPÉ =========================== */
footer.site-footer {
  background: var(--navy-3);
  color: #b9c6d2;
  padding: 40px 0 24px;
  margin-top: 20px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid #24455e;
}
.footer-brand { display: flex; align-items: center; gap: 12px; max-width: 380px; }
.footer-brand img.badge { height: 52px; width: 52px; flex-shrink: 0; }
.footer-brand .wordmark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
}
.footer-brand .wordmark .dotcom { color: var(--gold); font-family: var(--sans); font-size: 0.78rem; font-weight: 700; }
.footer-brand p {
  font-size: 0.78rem;
  color: #9fb0bf;
  margin: 6px 0 0;
  line-height: 1.4;
}
.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: #7f92a2;
}

/* =========================== RESPONSIVO =========================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .card-grid, .rail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .masthead .wrap { flex-wrap: wrap; }
  .card-grid, .rail-grid { grid-template-columns: 1fr; }
  .brand-text .wordmark { font-size: 1.25rem; }
  .brand img.badge { height: 44px; width: 44px; }
}
