/* ============================================================
   TRC Salvenews Theme — adaptado do trc_crimob (idem pixel-ads-theme)
   Identidade visual: max-width 700px, Open Sans 14px,
   link #0099FF, texto #565656 (replicando pixel-ads-theme).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --bg:           #ffffff;
  --bg-alt:       #f6f6f6;
  --bg-soft:      #f2f2f2;
  --surface:      #ffffff;
  --border:       #e6e6e6;
  --border-2:     #c9c9c9;
  --text:         #565656;
  --text-2:       #333333;
  --muted:        #777777;
  --accent:       #0099FF;
  --accent-hover: #0077cc;
  --accent-soft:  #e6f4ff;
  --max-w:        700px;       /* layout artigo centralizado */
  --container-x:  10px;
  --radius:       8px;
  --radius-sm:    6px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.05);
  --shadow:       0 2px 6px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 24px rgba(0,0,0,.18);
  color-scheme: light;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; font-weight: 700; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0 0 1em; line-height: 1.3; color: var(--text-2); }
h2 { font-size: 18px; margin-top: 18px; }
p { margin: 22px 8px; }
button { font: inherit; }

/* Reading progress bar (mantido do pixel-ads original) */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: #4ec76b;
  z-index: 9999;
  transition: width 80ms linear;
}

/* ===== Container ===== */
.td-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-x);
}

/* ============================================================
   HEADER
   ============================================================ */
.td-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.td-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.td-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.td-brand:hover { text-decoration: none; color: var(--text); }
.td-brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
}
.td-brand-name { line-height: 1.1; }
.td-brand-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
}

.td-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.td-nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.td-nav a:hover,
.td-nav a.is-current {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.td-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.td-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 10px 0 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.td-search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.td-search-form svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.td-search-form input {
  width: 220px;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  font: inherit;
  font-size: 14px;
  outline: none;
  color: var(--text);
}
.td-search-form input::placeholder { color: var(--muted); }
.td-search-form button {
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  color: var(--muted);
}
.td-search-form button:hover { color: var(--accent); }

.td-hamburger {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
}
.td-hamburger svg { width: 20px; height: 20px; }

/* ===== Mobile drawer ===== */
.td-drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}
.td-drawer.is-open { display: block; }
.td-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  animation: td-fade-in .2s ease;
}
.td-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: td-slide-in .25s ease;
}
@keyframes td-fade-in { from { opacity: 0; } }
@keyframes td-slide-in { from { transform: translateX(-100%); } }
.td-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.td-drawer-close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
}
.td-drawer-close svg { width: 16px; height: 16px; }
.td-drawer-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--muted);
  margin: 8px 0 6px;
}
.td-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.td-drawer-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.td-drawer-list a:hover { background: var(--bg-soft); color: var(--accent); text-decoration: none; }
.td-drawer-search {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 4px 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.td-drawer-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.td-drawer-search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.td-hero {
  background:
    radial-gradient(60% 100% at 80% 0%, rgba(79, 70, 229, .18), transparent 60%),
    radial-gradient(50% 100% at 10% 100%, rgba(14, 165, 233, .15), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 90px;
}
.td-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.td-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, .18);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.td-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 18px;
}
.td-hero p.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 28px;
}
.td-hero-search {
  max-width: 540px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow);
}
.td-hero-search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.td-hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 4px;
  font: inherit;
  font-size: 15px;
  outline: none;
  color: var(--text);
}
.td-hero-search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.td-hero-search button:hover { background: var(--accent-hover); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.td-section {
  padding: 56px 0;
}
.td-section--alt { background: var(--bg-alt); }
.td-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.td-section-head h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.td-section-head h2 small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 6px;
}
.td-section-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.td-section-more:hover { color: var(--accent-hover); text-decoration: none; }

/* ============================================================
   POST CARDS
   ============================================================ */
.td-grid {
  display: grid;
  gap: 24px;
}
.td-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.td-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Latest 5 layout: 1 grande + 4 pequenos */
.td-latest {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.td-latest-main { grid-row: span 1; }
.td-latest-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 880px) {
  .td-latest { grid-template-columns: 1fr; }
  .td-latest-side { grid-template-columns: 1fr; }
}

.td-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.td-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}
.td-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.td-card-img img,
.td-card-img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.td-card:hover .td-card-img img { transform: scale(1.04); }
.td-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: rgba(15, 23, 42, .65);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.td-card-cat:hover { background: var(--accent); color: #fff; text-decoration: none; }
.td-card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.td-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
}
.td-card-title:hover { color: var(--accent); text-decoration: none; }
.td-card-excerpt {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
  margin: 0;
}
.td-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.td-card-meta a { color: var(--muted); }
.td-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* card destaque grande */
.td-card--featured .td-card-img { aspect-ratio: 16 / 10; }
.td-card--featured .td-card-title { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.td-card--featured .td-card-excerpt { font-size: 15px; }

/* card pequeno horizontal (sidebar / mais cards) */
.td-card--mini {
  flex-direction: row;
  height: auto;
}
.td-card--mini .td-card-img {
  width: 110px;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.td-card--mini .td-card-body { padding: 12px 14px; }
.td-card--mini .td-card-title { font-size: 15px; }
.td-card--mini .td-card-excerpt { display: none; }

/* ============================================================
   ARCHIVE (category/search)
   ============================================================ */
.td-archive-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 50px 0;
}
.td-archive-head .td-container { text-align: center; }
.td-archive-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.td-archive-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.td-archive-head p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.td-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 40px 0 0;
  flex-wrap: wrap;
}
.td-pagination a, .td-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.td-pagination a:hover { background: var(--bg-soft); color: var(--accent); border-color: var(--border-2); text-decoration: none; }
.td-pagination .is-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.td-pagination .is-disabled {
  opacity: .4;
  pointer-events: none;
}

/* ============================================================
   ARTICLE (single)
   ============================================================ */
.td-article {
  padding: 14px 0 50px;
}
.td-article-head {
  max-width: 800px;
  margin: 0 auto 36px;
  text-align: center;
}
.td-article-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  text-decoration: none;
}
.td-article-cat:hover { background: var(--accent); color: #fff; text-decoration: none; }
.td-article-head h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 18px;
}
.td-article-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.td-article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.td-article-feature {
  max-width: 1000px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--bg-soft);
}
.td-article-feature img,
.td-article-feature svg {
  width: 100%; height: 100%; object-fit: cover;
}

.td-article-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.td-article-content > * { margin-bottom: 1.2em; }
.td-article-content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.6em 0 .6em;
}
.td-article-content h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.4em 0 .5em;
}
.td-article-content h4 { font-size: 18px; font-weight: 700; margin: 1.2em 0 .4em; }
.td-article-content p { margin: 0 0 1.2em; }
.td-article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.td-article-content ul, .td-article-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.td-article-content li { margin: 0 0 .4em; }
.td-article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 0 0 1.2em;
  color: var(--text-2);
  font-style: italic;
}
.td-article-content img { border-radius: 10px; margin: 1.2em auto; }
.td-article-content figure { margin: 1.4em 0; }
.td-article-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.td-article-content hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2em 0;
}
.td-article-content code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

/* Article footer block (author/date/category) */
/* Header minimalista (single.php): só título, sem cat pill, sem meta, sem feature image */
.td-article-head--minimal { padding-top: 0; margin-bottom: 18px; }
.td-article-head--minimal h1 { margin-bottom: 0; }

/* Footer de metadados do artigo (no final do conteúdo): discreto */
.td-article-foot {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
}
.td-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.td-author-info { line-height: 1.45; display: flex; flex-direction: column; gap: 2px; }
.td-author-info strong { font-size: 14px; color: var(--text); font-weight: 600; }
.td-author-info .muted { font-size: 13px; color: var(--muted); }
.td-author-info .muted a { color: var(--accent); }
.td-author-info .muted a:hover { text-decoration: underline; }

/* Prev/Next */
.td-adjacent {
  max-width: 1000px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) {
  .td-adjacent { grid-template-columns: 1fr; }
}
.td-adj {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.td-adj:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.td-adj--next { flex-direction: row-reverse; text-align: right; }
.td-adj-img {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
}
.td-adj-img img, .td-adj-img svg { width: 100%; height: 100%; object-fit: cover; }
.td-adj-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.td-adj-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

/* ============================================================
   STATIC PAGE
   ============================================================ */
.td-page-head {
  max-width: 800px;
  margin: 0 auto 36px;
  padding: 50px 0 0;
  text-align: center;
}
.td-page-head h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* ============================================================
   LEGAL NOTICE
   ============================================================ */
.td-legal {
  padding: 30px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.td-legal-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.td-legal-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 8px;
  color: var(--text);
}
.td-legal-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.td-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 50px 0 26px;
  font-size: 14px;
}
.td-footer a { color: #cbd5e1; }
.td-footer a:hover { color: #fff; text-decoration: none; }
.td-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}
.td-footer-brand { max-width: 380px; }
@media (max-width: 880px) {
  .td-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .td-footer-brand { max-width: none; grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .td-footer-grid { grid-template-columns: 1fr; }
}
.td-footer-brand .td-brand-mark { background: linear-gradient(135deg, var(--accent), #06b6d4); }
.td-footer-brand .td-brand-name { color: #fff; }
.td-footer-brand .td-brand-tag { color: #94a3b8; }
.td-footer-about {
  margin-top: 14px;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
}
.td-footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  margin-bottom: 14px;
}
.td-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.td-footer-list a {
  color: #cbd5e1;
  font-size: 14px;
}
.td-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #64748b;
  font-size: 13px;
}

/* ============================================================
   404
   ============================================================ */
.td-404 {
  text-align: center;
  padding: 100px 0;
}
.td-404 h1 {
  font-size: 110px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}
.td-404 p { color: var(--muted); max-width: 500px; margin: 0 auto 24px; }

/* ============================================================
   Empty state
   ============================================================ */
.td-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}
.td-empty h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }

/* ============================================================
   Utility
   ============================================================ */
.td-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s ease;
  border: 0;
  cursor: pointer;
}
.td-btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.td-btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.td-btn--ghost:hover { background: var(--bg-soft); color: var(--accent); border-color: var(--border-2); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 900px) {
  .td-header-inner { grid-template-columns: auto 1fr auto; }
  .td-nav, .td-search { display: none; }
  .td-hamburger { display: inline-flex; }
}

/* ============================================================
   SALVENEWS — overrides específicos do artigo (estilo pixel-ads original)
   ============================================================ */

.td-article-content,
.entry-content {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px 10px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 8px;
  text-align: left;
}

.td-article-content p,
.entry-content p {
  margin: 22px 8px;
  line-height: 1.8;
  color: #565656;
  font-size: 14px;
}

.td-article-content a,
.entry-content p a {
  text-decoration: underline;
  color: #0099FF;
  font-weight: bold;
}

.td-article-content h2,
.entry-content h2 {
  width: fit-content;
  font-size: 18px;
  margin-top: 18px;
  text-align: left;
  padding-top: 4px;
  margin-left: 10px;
}

.td-article-content h3, .td-article-content h4, .td-article-content h5, .td-article-content h6,
.entry-content h3,     .entry-content h4,     .entry-content h5,     .entry-content h6 {
  margin-top: 1.75em;
}

.td-article-content ul,
.entry-content ul {
  list-style: none;
  padding-left: 0;
  margin: 16px 8px;
}
.td-article-content ul li,
.entry-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: #565656;
}
.td-article-content ul li::before,
.entry-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4ec76b;
  font-weight: bold;
}
.td-article-content ul ul,
.entry-content ul ul {
  margin-top: 8px;
  margin-left: 12px;
}

.td-article-content table,
.entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0;
}
.td-article-content th, .td-article-content td,
.entry-content th,     .entry-content td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.td-article-content thead,
.entry-content thead {
  background-color: #005c25;
  color: #fff;
}
.td-article-content tbody tr:nth-child(even),
.entry-content tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Featured image no topo do artigo */
.td-article-content img {
  border-radius: 6px;
  margin: 12px auto;
}

/* Ad wrappers do crimob — só estilização do contorno; o conteúdo
   vem do code injetado pelas insertions. */
#av_top_wrapper,
#av_content_1_wrapper,
#av_content_2_wrapper {
  margin: 1.5rem 0;
  min-height: 100px;
}
#av_top_wrapper p,
#av_content_1_wrapper p,
#av_content_2_wrapper p {
  font-size: 10px;
  text-transform: uppercase;
  text-align: center;
  color: #999;
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  :root { --container-x: 8px; }
  body { font-size: 14px; }
  .td-article-content h2,
  .entry-content h2 { font-size: 17px; }
}

/* Hambúrguer mobile — usando .td-nav-toggle se presente, ou checkbox/label */
@media (max-width: 900px) {
  .td-nav { display: none; }
  .td-header-mobile-toggle { display: block; }
}
