/*
Theme Name: TecNerds
Theme URI: https://tecnerds.com.br
Author: TecNerds
Author URI: https://tecnerds.com.br
Description: Tema profissional para portais de tecnologia. Responsivo, otimizado para SEO, compatível com AMP, dark mode nativo, acessibilidade WCAG 2.1 AA, widgets avançados e performance máxima.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tecnerd
Tags: blog, technology, dark-mode, responsive, amp, custom-colors, accessibility, seo, two-columns
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --c-green:        #00E87A;
  --c-green-dark:   #00B85F;
  --c-green-glow:   rgba(0,232,122,.18);
  --c-cyan:         #00D9F5;
  --c-cyan-dark:    #00B0CB;
  --c-red:          #FF4757;
  --c-yellow:       #FFD32A;
  --c-purple:       #7C6FFA;

  /* Light Mode */
  --bg:             #F0F4F2;
  --bg-card:        #FFFFFF;
  --bg-card-2:      #F7FAF8;
  --bg-code:        #1C2120;
  --bg-header:      rgba(240,244,242,.92);
  --bg-footer:      #0E1510;

  --tx-1:           #0B1510;
  --tx-2:           #2D4039;
  --tx-3:           #5A7A6A;
  --tx-inv:         #FFFFFF;

  --brd:            #D4E0D9;
  --brd-2:          #C2D4CA;

  --sh-sm: 0 1px 4px rgba(0,0,0,.06);
  --sh-md: 0 4px 16px rgba(0,0,0,.08);
  --sh-lg: 0 8px 32px rgba(0,0,0,.12);
  --sh-glow: 0 0 20px var(--c-green-glow);

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-full: 9999px;

  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: .15s var(--ease);
  --t-med:  .25s var(--ease);
  --t-slow: .4s var(--ease);

  --container: 1240px;
  --sidebar-w: 320px;
  --gap: 28px;

  --focus-ring: 0 0 0 3px rgba(0,232,122,.45);
}

[data-theme="dark"] {
  --bg:           #0D1210;
  --bg-card:      #131A17;
  --bg-card-2:    #1A2420;
  --bg-code:      #0A0F0D;
  --bg-header:    rgba(13,18,16,.94);

  --tx-1:         #E8F2EC;
  --tx-2:         #A8C4B4;
  --tx-3:         #6A9078;

  --brd:          #243028;
  --brd-2:        #2E3E35;

  --sh-sm: 0 1px 4px rgba(0,0,0,.3);
  --sh-md: 0 4px 16px rgba(0,0,0,.4);
  --sh-lg: 0 8px 32px rgba(0,0,0,.5);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; text-size-adjust:100%; -webkit-text-size-adjust:100%; }
body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--tx-1);
  background: var(--bg);
  transition: background var(--t-slow), color var(--t-slow);
  overflow-x: hidden;
}
img { max-width:100%; height:auto; display:block; }
a { color: var(--c-green-dark); text-decoration:none; transition: color var(--t-fast); }
a:hover { color: var(--c-green); }
ul,ol { list-style:none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tx-1);
}
button,input,select,textarea { font: inherit; }
button { cursor: pointer; border:none; background:none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }

/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 99999;
  background: var(--c-green); color: #000;
  padding: 10px 20px; border-radius: var(--r-md);
  font-weight: 700; font-size: .9rem;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

/* Screen-reader only */
.sr-only {
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border-width:0;
}

/* High contrast — aplicado no <html> pelo JS */
html.tn-high-contrast {
  --tx-1: #000000;
  --tx-2: #111111;
  --tx-3: #333333;
  --brd:  #000000;
}
html[data-theme="dark"].tn-high-contrast {
  --tx-1: #FFFFFF;
  --tx-2: #E8E8E8;
  --tx-3: #BBBBBB;
}

/* Tamanho de fonte — data-font-size no <html> */
html[data-font-size="large"]  { font-size: 110%; }
html[data-font-size="xlarge"] { font-size: 125%; }

/* Fonte dislexia */
html.tn-dyslexia,
html.tn-dyslexia body,
html.tn-dyslexia p,
html.tn-dyslexia li,
html.tn-dyslexia h1,
html.tn-dyslexia h2,
html.tn-dyslexia h3 {
  font-family: 'Comic Sans MS', 'Arial', sans-serif !important;
  letter-spacing: 0.05em;
  word-spacing: 0.1em;
  line-height: 1.8;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.tn-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.tn-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  max-width: var(--container);
  margin: 36px auto;
  padding: 0 20px;
  align-items: start;
}
.tn-layout--full { grid-template-columns: 1fr; }
.tn-content { min-width: 0; }
.tn-sidebar { min-width: 0; }

@media (max-width: 1024px) {
  .tn-layout { grid-template-columns: 1fr; }
  .tn-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: var(--gap); }
}
@media (max-width: 600px) {
  .tn-layout { margin: 20px auto; padding: 0 14px; gap: 20px; }
  .tn-container { padding: 0 14px; }
}

/* ============================================================
   5. READING PROGRESS BAR
   ============================================================ */
#tn-progress {
  position: fixed; top: 0; left: 0; z-index: 99998;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--c-green), var(--c-cyan));
  transition: width .1s linear;
  border-radius: 0 var(--r-full) var(--r-full) 0;
}

/* ============================================================
   6. TICKER
   ============================================================ */
.tn-ticker {
  background: var(--c-green);
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  height: 36px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 64px; /* altura do header */
  z-index: 899; /* logo abaixo do header (z-index: 900) */
}
.tn-ticker__inner { display:flex; align-items:center; width:100%; height:100%; }
.tn-ticker__label {
  flex-shrink: 0;
  background: #000;
  color: var(--c-green);
  padding: 0 16px;
  height: 100%;
  display: flex; align-items:center; gap:6px;
  font-weight: 800; font-size: .72rem;
  letter-spacing: .06em;
  z-index: 1;
}
.tn-ticker__wrap { flex:1; overflow:hidden; height:100%; position:relative; }
.tn-ticker__track {
  display: flex; align-items:center; gap:0;
  animation: ticker-scroll 35s linear infinite;
  white-space: nowrap;
  height: 100%;
}
.tn-ticker:hover .tn-ticker__track { animation-play-state: paused; }
.tn-ticker__item {
  display: inline-flex; align-items:center; gap:10px;
  padding: 0 24px;
  font-size: .8rem; font-weight: 600;
  border-right: 1px solid rgba(0,0,0,.15);
}
.tn-ticker__item a { color:#000; }
.tn-ticker__item::before { content:'◆'; font-size:.5rem; opacity:.5; }
@keyframes ticker-scroll { 0% {transform:translateX(0)} 100% {transform:translateX(-50%)} }

/* ============================================================
   7. HEADER
   ============================================================ */
.tn-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--bg-header);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--brd);
  transition: background var(--t-slow), border-color var(--t-slow);
}
.tn-header__inner {
  display: flex; align-items:center; gap:20px;
  height: 64px;
}

/* Estado: scrolled — sombra reforçada ao rolar */
.tn-header.scrolled {
  box-shadow: var(--sh-md);
}

/* Estado: hidden — header some ao rolar para baixo */
.tn-header.hidden {
  transform: translateY(-100%);
  transition: transform var(--t-med), background var(--t-slow), border-color var(--t-slow), box-shadow var(--t-med);
}
.tn-header:not(.hidden) {
  transform: translateY(0);
  transition: transform var(--t-med), background var(--t-slow), border-color var(--t-slow), box-shadow var(--t-med);
}

/* Logo */
.tn-logo {
  display: flex; align-items:center; gap:10px;
  flex-shrink: 0;
  text-decoration: none;
}
.tn-logo__mark {
  width: 34px; height: 34px;
  background: var(--c-green);
  border-radius: var(--r-sm);
  display: flex; align-items:center; justify-content:center;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}
.tn-logo:hover .tn-logo__mark { transform: rotate(-5deg) scale(1.05); }
.tn-logo__text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--tx-1);
  letter-spacing: -.02em;
}
.tn-logo__text span { color: var(--c-green); }

/* Nav */
.tn-nav { flex: 1; display:flex; justify-content:center; }
.tn-nav__list { display:flex; align-items:center; gap:2px; }
.tn-nav__item { position:relative; }
.tn-nav__link {
  display: flex; align-items:center; gap:5px;
  padding: 6px 12px;
  font-size: .875rem; font-weight: 600;
  color: var(--tx-2);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.tn-nav__link:hover,
.tn-nav__item.current-menu-item .tn-nav__link {
  color: var(--c-green);
  background: var(--c-green-glow);
}
.tn-nav__item.current-menu-item .tn-nav__link::after {
  content:''; position:absolute; bottom:-1px; left:12px; right:12px;
  height:2px; background:var(--c-green); border-radius:var(--r-full);
}

/* Dropdown */
.tn-nav__dropdown {
  position: absolute; top:calc(100% + 8px); left:0;
  background: var(--bg-card);
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  min-width: 200px;
  padding: 6px;
  opacity: 0; visibility:hidden; transform:translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 100;
}
.tn-nav__item:hover .tn-nav__dropdown,
.tn-nav__item:focus-within .tn-nav__dropdown {
  opacity:1; visibility:visible; transform:translateY(0);
}
.tn-nav__dropdown li a {
  display:block; padding:8px 12px;
  font-size:.85rem; font-weight:500; color:var(--tx-2);
  border-radius:var(--r-sm);
  transition:background var(--t-fast), color var(--t-fast);
}
.tn-nav__dropdown li a:hover { background:var(--bg-card-2); color:var(--c-green); }

/* Header actions */
.tn-header__actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }

.tn-search-toggle {
  width:38px; height:38px; border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  color:var(--tx-2); font-size:.95rem;
  transition: color var(--t-fast), background var(--t-fast);
}
.tn-search-toggle:hover { color:var(--c-green); background:var(--c-green-glow); }

/* .tn-a11y-toggle removido do header — agora é widget flutuante */

.tn-dark-toggle {
  width:38px; height:38px; border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  color:var(--tx-2); font-size:1rem;
  transition: color var(--t-fast), background var(--t-fast);
}
.tn-dark-toggle:hover { color:var(--c-yellow); background:rgba(255,211,42,.12); }

.tn-btn-subscribe {
  display:flex; align-items:center; gap:6px;
  padding: 7px 14px;
  background: var(--c-green);
  color: #000 !important;
  font-size:.8rem; font-weight:700;
  border-radius: var(--r-full);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.tn-btn-subscribe:hover {
  background: var(--c-green-dark);
  transform: translateY(-1px);
  box-shadow: var(--sh-glow);
}

.tn-mobile-toggle {
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; padding:6px;
  border-radius:var(--r-sm);
  transition: background var(--t-fast);
}
.tn-mobile-toggle:hover { background:var(--bg-card-2); }
.tn-mobile-toggle span {
  display:block; height:2px; background:var(--tx-1); border-radius:2px;
  transition: transform var(--t-med), opacity var(--t-med), width var(--t-med);
}
.tn-mobile-toggle.active span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.tn-mobile-toggle.active span:nth-child(2) { opacity:0; width:0; }
.tn-mobile-toggle.active span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Search bar */
.tn-searchbar {
  position: fixed; top: var(--searchbar-top, 64px); left:0; right:0; z-index:901;
  background: var(--bg-card);
  border-bottom: 1px solid var(--brd);
  padding: 14px 20px;
  box-shadow: var(--sh-md);
  transform: translateY(-20px);
  opacity: 0; visibility:hidden;
  transition: transform var(--t-med), opacity var(--t-med), visibility var(--t-med);
}
.tn-searchbar.open { transform:translateY(0); opacity:1; visibility:visible; }
.tn-searchbar form { max-width:640px; margin:0 auto; display:flex; gap:8px; align-items:center; }
.tn-searchbar input {
  flex:1; min-width:0; padding:10px 16px;
  border:2px solid var(--brd); border-radius:var(--r-full);
  background:var(--bg); color:var(--tx-1);
  font-size:.95rem;
  transition:border-color var(--t-fast);
}
.tn-searchbar input:focus { border-color:var(--c-green); box-shadow:var(--focus-ring); }
.tn-searchbar button[type=submit] {
  flex-shrink:0; padding:10px 20px;
  background:var(--c-green); color:#000;
  font-weight:700; font-size:.875rem;
  border-radius:var(--r-full);
  transition:background var(--t-fast);
  white-space:nowrap;
}
.tn-searchbar button[type=submit]:hover { background:var(--c-green-dark); }

/* Mobile menu */
.tn-mobile-panel {
  position: fixed; top:0; right:0; bottom:0; z-index:1000;
  width: min(320px, 90vw);
  background: var(--bg-card);
  border-left: 1px solid var(--brd);
  box-shadow: var(--sh-lg);
  transform: translateX(100%);
  transition: transform var(--t-med);
  overflow-y: auto;
  display: flex; flex-direction:column;
}
.tn-mobile-panel.open { transform: translateX(0); }
.tn-mobile-panel__head {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px;
  border-bottom:1px solid var(--brd);
}
.tn-mobile-close {
  width:36px; height:36px; border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  color:var(--tx-2); font-size:1.1rem;
  transition: color var(--t-fast), background var(--t-fast);
}
.tn-mobile-close:hover { color:var(--c-red); background:rgba(255,71,87,.1); }
.tn-mobile-nav { padding:12px; }
.tn-mobile-nav ul { display:flex; flex-direction:column; gap:2px; }
.tn-mobile-nav a {
  display:block; padding:10px 14px;
  border-radius:var(--r-sm);
  font-weight:600; font-size:.9rem; color:var(--tx-2);
  transition:background var(--t-fast), color var(--t-fast);
}
.tn-mobile-nav a:hover { background:var(--c-green-glow); color:var(--c-green); }
.tn-mobile-nav .sub-menu { padding-left:14px; margin-top:2px; }
.tn-mobile-search { padding:12px 16px; border-top:1px solid var(--brd); }
.tn-mobile-search input {
  width:100%; padding:10px 14px;
  border:2px solid var(--brd); border-radius:var(--r-full);
  background:var(--bg); color:var(--tx-1); font-size:.875rem;
  transition:border-color var(--t-fast);
}
.tn-mobile-search input:focus { border-color:var(--c-green); }
.tn-overlay {
  position:fixed; inset:0; z-index:999;
  background:rgba(0,0,0,.6);
  opacity:0; visibility:hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}
.tn-overlay.open { opacity:1; visibility:visible; }

/* ============================================================
   ACESSIBILIDADE — Widget flutuante + painel lateral
   ============================================================ */

/* ── Botão flutuante de acessibilidade ── */
.tn-a11y-float {
  position: fixed;
  bottom: 100px;
  z-index: 1100;
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  background: var(--c-cyan);
  color: #000;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,217,245,.35);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  border: none;
  cursor: pointer;
}
.tn-a11y-float--right { right: 20px; }
.tn-a11y-float--left  { left:  20px; }
.tn-a11y-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,217,245,.5);
  background: var(--c-cyan-dark);
}
.tn-a11y-float[aria-expanded="true"] {
  background: var(--c-cyan-dark);
  transform: scale(1.05);
}

/* ── Painel lateral de acessibilidade ──
   Mantido FORA do botão no DOM para que position:fixed funcione corretamente */
.tn-a11y-panel {
  position: fixed;
  top: 0; bottom: 0;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--brd);
  box-shadow: var(--sh-lg);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: transform var(--t-med), opacity var(--t-med), visibility var(--t-med);
  z-index: 1099;
  overflow-y: auto;
}
/* Painel à direita */
.tn-a11y-panel--right {
  right: 0;
  border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  transform: translateX(100%);
}
.tn-a11y-panel--right.open {
  transform: translateX(0);
  opacity: 1; visibility: visible;
}
/* Painel à esquerda */
.tn-a11y-panel--left {
  left: 0;
  border-left: none;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  transform: translateX(-100%);
}
.tn-a11y-panel--left.open {
  transform: translateX(0);
  opacity: 1; visibility: visible;
}

/* Cabeçalho do painel */
.tn-a11y-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--brd);
  flex-shrink: 0;
}
.tn-a11y-panel__title {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 800;
  color: var(--tx-1);
}
.tn-a11y-panel__title i { color: var(--c-cyan); }
.tn-a11y-panel__close {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--tx-3); font-size: .95rem;
  transition: color var(--t-fast), background var(--t-fast);
}
.tn-a11y-panel__close:hover { color: var(--c-red); background: rgba(255,71,87,.1); }

/* Corpo do painel */
.tn-a11y-panel__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Rótulo de seção */
.tn-a11y-panel__section-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tx-3); margin: 8px 0 4px;
}
.tn-a11y-panel__section-label:first-child { margin-top: 0; }

/* Linha de dois botões lado a lado */
.tn-a11y-panel__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Botões do painel */
.tn-a11y-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: .82rem; font-weight: 600; color: var(--tx-2);
  background: var(--bg-card-2);
  border: 1px solid var(--brd);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  text-align: center;
}
.tn-a11y-btn kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 4px;
  border-radius: 4px;
  background: var(--brd); color: var(--tx-2);
  font-size: .65rem; font-weight: 800; font-family: var(--font-mono);
  border: 1px solid var(--brd-2);
}
.tn-a11y-btn:hover { background: rgba(0,217,245,.12); color: var(--c-cyan); border-color: var(--c-cyan); }
.tn-a11y-btn.active { background: rgba(0,217,245,.18); color: var(--c-cyan); border-color: var(--c-cyan); }
.tn-a11y-btn--full { width: 100%; justify-content: flex-start; gap: 10px; }
.tn-a11y-btn--full i { width: 20px; text-align: center; flex-shrink: 0; }
.tn-a11y-btn--reset {
  margin-top: 12px;
  color: var(--tx-3); border-style: dashed;
}
.tn-a11y-btn--reset:hover { color: var(--c-red); border-color: var(--c-red); background: rgba(255,71,87,.08); }

/* Breadcrumbs */
.tn-breadcrumbs {
  padding: 10px 20px;
  max-width: var(--container);
  margin: 0 auto;
  display:flex; align-items:center; flex-wrap:wrap; gap:6px;
  font-size:.78rem; color:var(--tx-3);
}
.tn-breadcrumbs a { color:var(--tx-3); }
.tn-breadcrumbs a:hover { color:var(--c-green); }
.tn-breadcrumbs .sep { font-size:.6rem; opacity:.5; }
.tn-breadcrumbs .current { color:var(--tx-2); font-weight:600; max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width:768px) {
  .tn-mobile-toggle { display:flex; }
  .tn-nav, .tn-btn-subscribe { display:none; }
  .tn-header__inner { justify-content:space-between; }
}
/* .tn-a11y-toggle removido do header — widget flutuante visível em todos os tamanhos */

/* ============================================================
   8. HERO / DESTAQUES
   ============================================================ */
/* ── HERO ───────────────────────────────────────────── */
.tn-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--brd);
  padding: 24px 0 32px;
}
.tn-hero__inner { max-width:var(--container); margin:0 auto; padding:0 20px; }
.tn-hero__label {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px;
}
.tn-hero__badge {
  display:flex; align-items:center; gap:6px;
  font-size:.72rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
  color:var(--c-green);
}
.tn-hero__badge i { font-size:.8rem; }
.tn-hero__date { font-size:.78rem; color:var(--tx-3); }

/* Grid: imagem grande + coluna lateral igual em altura */
.tn-hero__grid {
  display:grid;
  grid-template-columns: 1.65fr 1fr;
  gap:24px;
  align-items:stretch;
}

/* Post principal */
.tn-hero__main {
  display:flex; flex-direction:column;
}
.tn-hero__thumb-link {
  display:block; position:relative;
  border-radius:var(--r-lg); overflow:hidden;
  aspect-ratio:16/9; flex-shrink:0;
}
.tn-hero__thumb-link img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s var(--ease);
}
.tn-hero__main:hover .tn-hero__thumb-link img { transform:scale(1.03); }
.tn-hero__img-placeholder {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background:var(--bg-2); color:var(--tx-3); font-size:2rem;
}
.tn-thumb-badge { position:absolute; top:12px; left:12px; z-index:2; }

.tn-hero__body {
  padding:14px 0 0;
  flex:1; display:flex; flex-direction:column;
}
.tn-hero__main-meta {
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  font-size:.82rem; color:var(--tx-3); margin-bottom:8px;
}
.tn-hero__main-meta i { font-size:.78rem; }
.tn-hero__title {
  font-size:clamp(1.15rem,2.5vw,1.65rem);
  font-weight:800; line-height:1.2;
  margin:0 0 10px;
}
.tn-hero__title a { color:var(--tx-1); }
.tn-hero__title a:hover { color:var(--c-green); }
.tn-hero__excerpt {
  font-size:.875rem; color:var(--tx-2); line-height:1.6;
  margin:0 0 14px; flex:1;
}
.tn-hero__author {
  display:flex; align-items:center; gap:8px; margin-top:auto;
}
.tn-hero__author-name {
  font-size:.8rem; font-weight:600; color:var(--tx-2);
}
.tn-hero__author-name:hover { color:var(--c-green); }

/* Coluna lateral: 6 itens, distribuídos para ocupar a mesma altura da imagem */
.tn-hero__side {
  display:flex; flex-direction:column;
  gap:0;
  justify-content:space-between;
}

/* Cada item lateral */
.tn-hero__side-item {
  display:flex; gap:12px; align-items:flex-start;
  padding:10px 0;
  border-bottom:1px solid var(--brd);
  flex:1;
}
.tn-hero__side-item:first-child { padding-top:0; }
.tn-hero__side-item:last-child  { border-bottom:none; padding-bottom:0; }

/* Thumbnail lateral */
.tn-side-thumb {
  display:block; flex-shrink:0;
  width:88px; border-radius:var(--r-sm); overflow:hidden;
  aspect-ratio:16/10;
}
.tn-side-thumb img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .35s var(--ease);
}
.tn-hero__side-item:hover .tn-side-thumb img { transform:scale(1.06); }

/* Corpo lateral */
.tn-side-body {
  flex:1; min-width:0;
  display:flex; flex-direction:column; justify-content:center;
  gap:4px;
}
.tn-side-title {
  font-size:.76rem; font-weight:700; line-height:1.3;
  margin:0 0 4px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.tn-side-title a { color:var(--tx-1); }
.tn-side-title a:hover { color:var(--c-green); }

/* Meta linha: "9 min · 07/03/2026 · Categoria" */
.tn-side-meta {
  display:flex; align-items:center; gap:4px; flex-wrap:wrap;
  font-size:.65rem; color:var(--tx-3); line-height:1;
}
.tn-side-meta i { font-size:.6rem; }
.tn-meta__sep { color:var(--brd); font-size:.65rem; }

/* Link de categoria inline na meta */
a.tn-side-cat {
  color:var(--c-green);
  font-weight:700;
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  transition:color .2s;
}
a.tn-side-cat:hover { color:var(--c-cyan); }

/* Responsivo */
@media (max-width:900px) {
  .tn-hero__grid { grid-template-columns:1fr; }
  .tn-hero__side { gap:0; }
  .tn-side-thumb { width:76px; }
}
@media (max-width:600px) {
  .tn-hero__grid { gap:16px; }
  .tn-side-thumb { width:64px; }
  .tn-side-title { font-size:.78rem; }
}

/* ============================================================
   9. POST CARDS
   ============================================================ */
.tn-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap:var(--gap);
}
.tn-card {
  background:var(--bg-card);
  border:1px solid var(--brd);
  border-radius:var(--r-lg);
  overflow:hidden;
  transition:transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display:flex; flex-direction:column;
}
.tn-card:hover {
  transform:translateY(-3px);
  box-shadow:var(--sh-lg);
  border-color:var(--brd-2);
}
.tn-card__thumb {
  aspect-ratio:16/10; overflow:hidden; position:relative;
  background:var(--bg-card-2);
}
.tn-card__thumb img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s var(--ease);
}
.tn-card:hover .tn-card__thumb img { transform:scale(1.05); }
.tn-card__body { padding:18px; flex:1; display:flex; flex-direction:column; }
.tn-card__meta {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin-bottom:10px;
}
.tn-card__title {
  font-size:1rem; font-weight:700; line-height:1.35;
  margin-bottom:8px; color:var(--tx-1);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.tn-card__title a { color:inherit; }
.tn-card__title a:hover { color:var(--c-green); }
.tn-card__excerpt {
  font-size:.85rem; color:var(--tx-3); line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  margin-bottom:14px; flex:1;
}
.tn-card__foot {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:12px; border-top:1px solid var(--brd);
  font-size:.78rem; color:var(--tx-3);
}

/* Category badge */
.tn-cat-badge {
  display:inline-flex; align-items:center;
  padding:3px 9px;
  background:var(--c-green-glow);
  color:var(--c-green-dark);
  font-size:.7rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase;
  border-radius:var(--r-full);
  border:1px solid rgba(0,184,95,.25);
  transition:background var(--t-fast), color var(--t-fast);
}
.tn-cat-badge:hover { background:var(--c-green); color:#000; }

/* Read time */
.tn-readtime {
  display:inline-flex; align-items:center; gap:4px;
  font-size:.72rem; color:var(--tx-3);
}

/* ============================================================
   10. SINGLE POST
   ============================================================ */
.tn-article {
  background:var(--bg-card);
  border:1px solid var(--brd);
  border-radius:var(--r-lg);
  overflow:hidden;
}
.tn-article__header { padding:32px 40px 24px; }
.tn-article__featured {
  aspect-ratio:16/9; overflow:hidden;
  position:relative;
}
.tn-article__featured img {
  width:100%; height:100%; object-fit:cover;
  transition:transform 1s var(--ease);
}
.tn-article:hover .tn-article__featured img { transform:scale(1.02); }
.tn-article__body { padding:36px 40px; }
.tn-article__footer { padding:24px 40px 32px; }

@media (max-width:600px) {
  .tn-article__header,.tn-article__body,.tn-article__footer { padding:20px; }
}

/* Article title */
.tn-article__title {
  font-size:clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight:800; line-height:1.15;
  margin:16px 0;
  letter-spacing:-.02em;
}

/* Article meta */
.tn-meta {
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  font-size:.82rem; color:var(--tx-3);
}
.tn-meta__item { display:inline-flex; align-items:center; gap:5px; }
.tn-meta__item a { color:var(--tx-3); }
.tn-meta__item a:hover { color:var(--c-green); }
.tn-meta__avatar {
  width:28px; height:28px; border-radius:50%; object-fit:cover;
  border:2px solid var(--brd); flex-shrink:0;
}

/* Social share bar */
.tn-share {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 20px 0;
  border-top: 2px solid var(--brd);
  border-bottom: 2px solid var(--brd);
  margin: 28px 0;
}
.tn-share__label {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tx-3); margin-right: 4px; flex-shrink: 0; width: 100%;
}
/* Base: outline style — sem fundo, borda cor primária, ícone + texto */
.tn-share__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  font-size: .78rem; font-weight: 700;
  background: transparent;
  border: 2px solid var(--c-green);
  color: var(--c-green);
  transition: background var(--t-fast), color var(--t-fast),
              transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.tn-share__btn i { font-size: .9rem; flex-shrink: 0; }
.tn-share__btn:hover {
  background: var(--c-green);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,232,122,.3);
}
.tn-share__btn:active { transform: translateY(0); box-shadow: none; }

/* Copiar link — feedback visual extra */
.tn-share__btn--copy.copied {
  background: var(--c-green);
  color: #000;
  border-color: var(--c-green);
}

/* Post content typography */
.tn-entry-content { line-height:1.85; color:var(--tx-2); }
.tn-entry-content h2 {
  font-size:1.5rem; font-weight:800; margin:2rem 0 .8rem;
  padding-left:16px;
  border-left:3px solid var(--c-green);
  color:var(--tx-1);
}
.tn-entry-content h3 { font-size:1.2rem; font-weight:700; margin:1.6rem 0 .6rem; color:var(--tx-1); }
.tn-entry-content h4 { font-size:1rem; font-weight:700; margin:1.3rem 0 .5rem; color:var(--tx-1); }
.tn-entry-content p { margin-bottom:1.2rem; }
.tn-entry-content a { color:var(--c-green-dark); text-decoration:underline; text-underline-offset:3px; }
.tn-entry-content a:hover { color:var(--c-green); }
.tn-entry-content ul,.tn-entry-content ol { margin:0 0 1.2rem 1.4rem; }
.tn-entry-content ul { list-style:disc; }
.tn-entry-content ol { list-style:decimal; }
.tn-entry-content li { margin-bottom:.4rem; }
.tn-entry-content blockquote {
  background:var(--bg-card-2);
  border-left:4px solid var(--c-green);
  padding:18px 22px;
  margin:1.6rem 0;
  border-radius:0 var(--r-md) var(--r-md) 0;
  font-style:italic; color:var(--tx-2);
}
.tn-entry-content blockquote cite { display:block; font-size:.8rem; margin-top:8px; font-style:normal; color:var(--tx-3); }
.tn-entry-content code {
  background:var(--c-green-glow);
  color:var(--c-green-dark);
  padding:2px 6px; border-radius:var(--r-sm);
  font-family:var(--font-mono); font-size:.85em;
}
.tn-entry-content pre {
  background:var(--bg-code);
  color:#c9d1d9;
  padding:20px; border-radius:var(--r-md);
  overflow-x:auto; margin:1.4rem 0;
  font-family:var(--font-mono); font-size:.85rem; line-height:1.6;
  border:1px solid rgba(255,255,255,.05);
  position:relative;
}
.tn-entry-content pre code { background:none; color:inherit; padding:0; }
.tn-entry-content table { width:100%; border-collapse:collapse; margin:1.4rem 0; font-size:.9rem; }
.tn-entry-content th {
  background:var(--bg-card-2); color:var(--tx-1);
  padding:10px 14px; text-align:left; font-weight:700;
  border:1px solid var(--brd);
}
.tn-entry-content td { padding:9px 14px; border:1px solid var(--brd); }
.tn-entry-content tr:nth-child(even) td { background:var(--bg-card-2); }
.tn-entry-content img {
  border-radius:var(--r-md);
  box-shadow:var(--sh-md);
  margin:1.2rem 0;
}
.tn-entry-content figure { margin:1.4rem 0; }
.tn-entry-content figcaption { font-size:.78rem; color:var(--tx-3); text-align:center; margin-top:6px; }
.tn-entry-content hr { border:none; border-top:1px solid var(--brd); margin:2rem 0; }
.tn-entry-content .wp-caption-text { font-size:.78rem; color:var(--tx-3); text-align:center; margin-top:6px; }

/* Table of Contents */
.tn-toc {
  background:var(--bg-card-2);
  border:1px solid var(--brd);
  border-left:3px solid var(--c-cyan);
  border-radius:var(--r-md);
  padding:20px 22px;
  margin:1.6rem 0;
}
.tn-toc__title {
  font-size:.8rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:var(--tx-3); margin-bottom:12px;
  display:flex; align-items:center; gap:6px;
}
.tn-toc ol { list-style:decimal; margin-left:18px; }
.tn-toc li { margin-bottom:6px; font-size:.88rem; }
.tn-toc a { color:var(--tx-2); text-decoration:none; }
.tn-toc a:hover { color:var(--c-cyan); }

/* Tags */
.tn-tags { display:flex; flex-wrap:wrap; gap:6px; margin:20px 0; }
.tn-tag {
  display:inline-flex; align-items:center; gap:4px;
  padding:5px 11px;
  background:var(--bg-card-2);
  color:var(--tx-2);
  font-size:.75rem; font-weight:600;
  border-radius:var(--r-full);
  border:1px solid var(--brd);
  transition:background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tn-tag:hover { background:var(--c-green-glow); color:var(--c-green-dark); border-color:rgba(0,184,95,.3); }
.tn-tag::before { content:'#'; opacity:.5; font-size:.65rem; }

/* Author box */
.tn-author {
  display:flex; gap:20px;
  background:var(--bg-card-2);
  border:1px solid var(--brd);
  border-radius:var(--r-lg);
  padding:24px;
  margin:32px 0;
}
.tn-author__avatar {
  width:80px; height:80px; border-radius:50%; object-fit:cover; flex-shrink:0;
  border:3px solid var(--brd);
}
.tn-author__name { font-weight:800; font-size:1rem; color:var(--tx-1); margin-bottom:4px; }
.tn-author__role { font-size:.75rem; color:var(--tx-3); margin-bottom:8px; }
.tn-author__bio { font-size:.875rem; color:var(--tx-2); line-height:1.6; }
@media (max-width:480px) {
  .tn-author { flex-direction:column; align-items:center; text-align:center; }
}

/* Related posts */
.tn-related__title {
  font-size:1rem; font-weight:800; color:var(--tx-1);
  margin-bottom:16px;
  padding-bottom:10px;
  border-bottom:2px solid var(--brd);
  display:flex; align-items:center; gap:8px;
}
.tn-related__title::before {
  content:''; display:inline-block;
  width:4px; height:18px;
  background:var(--c-green); border-radius:var(--r-full);
}
.tn-related__grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:16px; }
.tn-related__item { display:flex; flex-direction:column; gap:8px; }
.tn-related__thumb { border-radius:var(--r-md); overflow:hidden; aspect-ratio:16/10; }
.tn-related__thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.tn-related__item:hover .tn-related__thumb img { transform:scale(1.05); }
.tn-related__item-title { font-size:.875rem; font-weight:700; color:var(--tx-1); line-height:1.35; }
.tn-related__item-title:hover { color:var(--c-green); }

/* Post navigation */
.tn-post-nav {
  display:grid; grid-template-columns:1fr 1fr; gap:16px;
  margin:32px 0;
}
.tn-post-nav__item {
  background:var(--bg-card-2);
  border:1px solid var(--brd);
  border-radius:var(--r-md);
  padding:14px 18px;
  transition:border-color var(--t-fast), background var(--t-fast);
}
.tn-post-nav__item:hover { border-color:var(--c-green); background:var(--c-green-glow); }
.tn-post-nav__label {
  font-size:.7rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:var(--tx-3); margin-bottom:4px; display:flex; align-items:center; gap:5px;
}
.tn-post-nav__title { font-size:.875rem; font-weight:700; color:var(--tx-1); line-height:1.35; }
.tn-post-nav__item--next { text-align:right; }
.tn-post-nav__item--next .tn-post-nav__label { justify-content:flex-end; }
@media (max-width:480px) { .tn-post-nav { grid-template-columns:1fr; } }

/* ============================================================
   11. SIDEBAR WIDGETS
   ============================================================ */
.tn-widget {
  background:var(--bg-card);
  border:1px solid var(--brd);
  border-radius:var(--r-lg);
  padding:22px;
  margin-bottom:var(--gap);
}
.tn-widget:last-child { margin-bottom:0; }
.tn-widget-title {
  font-size:.75rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
  color:var(--tx-3);
  margin-bottom:16px;
  padding-bottom:10px;
  border-bottom:1px solid var(--brd);
  display:flex; align-items:center; gap:7px;
}
.tn-widget-title::before {
  content:''; width:3px; height:14px;
  background:var(--c-green); border-radius:var(--r-full);
  flex-shrink:0;
}

/* Popular posts widget */
.tn-widget-posts { display:flex; flex-direction:column; gap:12px; }
.tn-widget-post { display:flex; gap:12px; align-items:flex-start; }
.tn-widget-post__num {
  font-size:1.1rem; font-weight:900;
  color:var(--c-green); opacity:.4;
  line-height:1; flex-shrink:0; width:20px;
  font-family:var(--font-head);
}
.tn-widget-post__title { font-size:.82rem; font-weight:700; color:var(--tx-2); line-height:1.35; }
.tn-widget-post__title:hover { color:var(--c-green); }
.tn-widget-post__meta { font-size:.7rem; color:var(--tx-3); margin-top:2px; display:flex; gap:8px; }

/* Category list */
.tn-widget-cats { display:flex; flex-direction:column; gap:2px; }
.tn-widget-cat {
  display:flex; align-items:center; justify-content:space-between;
  padding:7px 10px;
  border-radius:var(--r-sm);
  font-size:.85rem; color:var(--tx-2); font-weight:500;
  transition:background var(--t-fast), color var(--t-fast);
}
.tn-widget-cat:hover { background:var(--c-green-glow); color:var(--c-green); }
.tn-widget-cat span {
  font-size:.7rem; font-weight:700; color:var(--tx-3);
  background:var(--bg-card-2); padding:2px 7px;
  border-radius:var(--r-full);
}

/* Tags cloud */
.tn-widget-tags { display:flex; flex-wrap:wrap; gap:6px; }
.tn-widget-tag {
  padding:4px 10px;
  font-size:.75rem; font-weight:600;
  background:var(--bg-card-2);
  color:var(--tx-2);
  border:1px solid var(--brd);
  border-radius:var(--r-full);
  transition:background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tn-widget-tag:hover { background:var(--c-green); color:#000; border-color:transparent; }

/* Newsletter widget */
.tn-newsletter {
  background: linear-gradient(135deg, var(--bg-card-2), var(--bg-card));
  text-align: center;
  position: relative; overflow:hidden;
}
.tn-newsletter::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse at top, var(--c-green-glow) 0%, transparent 70%);
  pointer-events:none;
}
.tn-newsletter__icon {
  font-size:1.8rem; margin-bottom:10px;
  filter:drop-shadow(0 0 8px var(--c-green-glow));
}
.tn-newsletter__title { font-size:1rem; font-weight:800; color:var(--tx-1); margin-bottom:6px; }
.tn-newsletter__desc { font-size:.82rem; color:var(--tx-3); margin-bottom:16px; line-height:1.5; }
.tn-newsletter__form { display:flex; flex-direction:column; gap:8px; }
.tn-newsletter__input {
  width:100%; padding:10px 14px;
  border:2px solid var(--brd); border-radius:var(--r-full);
  background:var(--bg); color:var(--tx-1);
  font-size:.875rem; text-align:center;
  transition:border-color var(--t-fast);
}
.tn-newsletter__input:focus { border-color:var(--c-green); }
.tn-newsletter__btn {
  width:100%; padding:10px;
  background:var(--c-green); color:#000;
  font-weight:800; font-size:.875rem;
  border-radius:var(--r-full);
  transition:background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.tn-newsletter__btn:hover { background:var(--c-green-dark); box-shadow:var(--sh-glow); transform:translateY(-1px); }
.tn-newsletter__msg { font-size:.78rem; margin-top:6px; display:none; }
.tn-newsletter__msg.success { color:var(--c-green-dark); display:block; }
.tn-newsletter__msg.error   { color:var(--c-red); display:block; }

/* Ícone newsletter WhatsApp */
.tn-newsletter__icon--wa {
  color: #25D366;
  font-size: 2.2rem;
}

/* Botão Canal do WhatsApp — seção de inscrição */
.tn-btn-whatsapp-channel {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: #25D366;
  color: #fff !important;
  font-size: 1rem; font-weight: 800;
  border-radius: var(--r-full);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  text-decoration: none;
  margin-top: 4px;
}
.tn-btn-whatsapp-channel i { font-size: 1.3rem; }
.tn-btn-whatsapp-channel:hover {
  background: #1eaf56;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
}
.tn-btn-whatsapp-channel:active { transform: translateY(0); }

/* Sidebar variant — full width, slightly smaller */
.tn-btn-whatsapp-channel--sidebar {
  width: 100%;
  justify-content: center;
  padding: 11px 20px;
  font-size: .88rem;
  margin-top: 8px;
}

/* ── Widget: Mais Comentados ─────────────────────────────── */
.tn-widget-commented { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0; }
.tn-wc-item {
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 0; border-bottom:1px solid var(--brd);
}
.tn-wc-item:first-child { padding-top:0; }
.tn-wc-item:last-child  { border-bottom:none; padding-bottom:0; }
.tn-wc-rank {
  font-size:1rem; font-weight:900; color:var(--c-green); opacity:.35;
  font-family:var(--font-head); line-height:1; flex-shrink:0; width:18px; padding-top:2px;
}
.tn-wc-thumb {
  display:block; flex-shrink:0; width:56px;
  border-radius:var(--r-sm); overflow:hidden; aspect-ratio:1;
}
.tn-wc-thumb img { width:100%; height:100%; object-fit:cover; }
.tn-wc-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.tn-wc-title {
  font-size:.8rem; font-weight:700; color:var(--tx-1); line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.tn-wc-title:hover { color:var(--c-green); }
.tn-wc-count {
  font-size:.7rem; color:var(--tx-3);
  display:flex; align-items:center; gap:4px;
}
.tn-wc-count i { font-size:.65rem; }

/* ── Widget: Stats do Site ───────────────────────────────── */
.tn-widget-stats {
  display:grid; grid-template-columns: repeat(2, 1fr);
  gap:10px;
}
.tn-stat-item {
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:14px 8px;
  background:var(--bg-card-2); border:1px solid var(--brd);
  border-radius:var(--r-md); text-align:center;
  transition:border-color var(--t-fast), background var(--t-fast);
}
.tn-stat-item:hover { border-color:var(--c-green); background:var(--c-green-glow); }
.tn-stat-icon { font-size:1.1rem; color:var(--c-green); line-height:1; }
.tn-stat-value { font-size:1.25rem; font-weight:900; color:var(--tx-1); font-family:var(--font-head); line-height:1; }
.tn-stat-label { font-size:.65rem; color:var(--tx-3); text-transform:uppercase; letter-spacing:.06em; font-weight:700; }

/* ── Widget: Posts por Categoria ─────────────────────────── */
.tn-widget-bycat { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0; }
.tn-wbc-item {
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 0; border-bottom:1px solid var(--brd);
}
.tn-wbc-item:first-child { padding-top:0; }
.tn-wbc-item:last-child  { border-bottom:none; padding-bottom:0; }
.tn-wbc-thumb {
  display:block; flex-shrink:0; width:60px;
  border-radius:var(--r-sm); overflow:hidden; aspect-ratio:16/10;
}
.tn-wbc-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.tn-wbc-item:hover .tn-wbc-thumb img { transform:scale(1.06); }
.tn-wbc-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
a.tn-wbc-cat {
  font-size:.62rem; font-weight:800; text-transform:uppercase;
  letter-spacing:.06em; color:var(--c-green); line-height:1;
}
a.tn-wbc-cat:hover { color:var(--c-cyan); }
.tn-wbc-title {
  font-size:.8rem; font-weight:700; color:var(--tx-1); line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.tn-wbc-title:hover { color:var(--c-green); }
.tn-wbc-meta {
  font-size:.68rem; color:var(--tx-3);
  display:flex; align-items:center; gap:4px; flex-wrap:wrap;
}
.tn-wbc-meta i { font-size:.62rem; }

/* ── Widget: Banner AdSense ──────────────────────────────── */
.tn-ad-label {
  font-size:.6rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.08em; color:var(--tx-3); text-align:center;
  margin-bottom:8px;
}
.tn-ad-wrap { display:flex; justify-content:center; align-items:center; }
.tn-ad-placeholder {
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-card-2); border:2px dashed var(--brd);
  border-radius:var(--r-md); color:var(--tx-3);
  font-size:.8rem; text-align:center; line-height:1.5;
  max-width:100%;
}
.tn-ad-placeholder small { font-size:.7rem; opacity:.7; }

/* ============================================================
   12. PAGINATION
   ============================================================ */
.tn-pagination { display:flex; justify-content:center; align-items:center; gap:6px; margin:32px 0; flex-wrap:wrap; }
.tn-pagination .page-numbers {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:38px; padding:0 8px;
  border:1px solid var(--brd); border-radius:var(--r-sm);
  font-size:.875rem; font-weight:600; color:var(--tx-2);
  background:var(--bg-card);
  transition:background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tn-pagination .page-numbers:hover,
.tn-pagination .page-numbers.current {
  background:var(--c-green); color:#000; border-color:transparent;
}
.tn-pagination .prev,.tn-pagination .next { gap:6px; }

/* ============================================================
   13. COMMENTS
   ============================================================ */
.tn-comments {
  background:var(--bg-card);
  border:1px solid var(--brd);
  border-radius:var(--r-lg);
  padding:30px;
  margin-top:var(--gap);
}
.tn-comments__title { font-size:1.1rem; font-weight:800; color:var(--tx-1); margin-bottom:24px; }

.comment-list { display:flex; flex-direction:column; gap:20px; }
.comment-body {
  display:flex; gap:14px;
  background:var(--bg-card-2);
  border:1px solid var(--brd);
  border-radius:var(--r-md);
  padding:16px;
}
.comment-meta { margin-bottom:8px; }
.comment-author b { font-size:.9rem; color:var(--tx-1); }
.comment-metadata { font-size:.75rem; color:var(--tx-3); }
.comment-content { font-size:.875rem; color:var(--tx-2); }
.comment-content p:last-child { margin-bottom:0; }
.reply { margin-top:8px; }
.comment-reply-link {
  font-size:.75rem; font-weight:700; color:var(--c-green-dark);
  display:inline-flex; align-items:center; gap:4px;
}
.children { padding-left:36px; margin-top:12px; display:flex; flex-direction:column; gap:12px; }

/* Comment form */
.tn-comment-form { margin-top:30px; padding-top:24px; border-top:1px solid var(--brd); }
.tn-comment-form h3 { font-size:1rem; font-weight:800; color:var(--tx-1); margin-bottom:18px; }
.comment-form-fields { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.comment-form-comment { margin-bottom:14px; }
.comment-form-fields label,
.comment-form-comment label { display:block; font-size:.8rem; font-weight:600; color:var(--tx-3); margin-bottom:5px; }
.comment-form-fields input,
.comment-form-comment textarea {
  width:100%; padding:10px 14px;
  border:2px solid var(--brd); border-radius:var(--r-md);
  background:var(--bg); color:var(--tx-1); font-size:.875rem;
  transition:border-color var(--t-fast);
}
.comment-form-fields input:focus,
.comment-form-comment textarea:focus { border-color:var(--c-green); }
.comment-form-comment textarea { min-height:130px; resize:vertical; }
.comment-form-submit .submit {
  padding:11px 28px;
  background:var(--c-green); color:#000;
  font-weight:800; font-size:.9rem;
  border-radius:var(--r-full);
  transition:background var(--t-fast), box-shadow var(--t-fast);
}
.comment-form-submit .submit:hover { background:var(--c-green-dark); box-shadow:var(--sh-glow); }
@media (max-width:480px) { .comment-form-fields { grid-template-columns:1fr; } }

/* ============================================================
   14. FOOTER
   ============================================================ */
.tn-footer {
  background:var(--bg-footer);
  color:#98C4A6;
  margin-top:60px;
  border-top:1px solid rgba(255,255,255,.05);
}
.tn-footer__top {
  padding:52px 0 40px;
  display:grid;
  grid-template-columns:1.4fr repeat(3, 1fr);
  gap:40px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.tn-footer__brand {}
.tn-footer__brand .tn-logo__text { color:#E8F2EC; }
.tn-footer__about { font-size:.85rem; color:#6A9078; line-height:1.7; margin:14px 0 20px; }
.tn-footer__social { display:flex; gap:8px; }
.tn-footer__social a {
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:var(--r-sm);
  background:rgba(255,255,255,.06);
  color:#98C4A6; font-size:.9rem;
  transition:background var(--t-fast), color var(--t-fast);
}
.tn-footer__social a:hover { background:var(--c-green); color:#000; }
.tn-footer__col-title {
  font-size:.75rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
  color:#E8F2EC; margin-bottom:16px;
}
.tn-footer__menu { display:flex; flex-direction:column; gap:8px; }
.tn-footer__menu a {
  font-size:.85rem; color:#6A9078;
  display:flex; align-items:center; gap:7px;
  transition:color var(--t-fast), padding-left var(--t-fast);
}
.tn-footer__menu a:hover { color:var(--c-green); padding-left:4px; }
.tn-footer__bottom {
  padding:20px 0;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:.78rem; color:#4A6A56;
}
.tn-footer__bottom a { color:#4A6A56; }
.tn-footer__bottom a:hover { color:var(--c-green); }
.tn-footer__legal { display:flex; gap:16px; }

@media (max-width:900px) {
  .tn-footer__top { grid-template-columns:1fr 1fr; }
}
@media (max-width:540px) {
  .tn-footer__top { grid-template-columns:1fr; gap:28px; padding:36px 0 28px; }
  .tn-footer__bottom { flex-direction:column; align-items:flex-start; }
}

/* Newsletter section full */
#newsletter.tn-nl-section {
  background:var(--bg-card);
  border-top:1px solid var(--brd);
  border-bottom:1px solid var(--brd);
  padding:52px 0;
  text-align:center;
}
.tn-nl-section__inner { max-width:540px; margin:0 auto; padding:0 20px; }
.tn-nl-section__icon {
  font-size: 3rem; margin-bottom: 16px;
  color: #25D366;
  line-height: 1;
}
.tn-nl-section__title { font-size:clamp(1.3rem,3vw,1.8rem); font-weight:800; margin-bottom:8px; }
.tn-nl-section__desc { color:var(--tx-3); margin-bottom:24px; }
.tn-nl-section__form { display:flex; gap:8px; max-width:420px; margin:0 auto; }
.tn-nl-section__form input { flex:1; }
@media (max-width:480px) { .tn-nl-section__form { flex-direction:column; } }

/* ============================================================
   15. SPECIAL PAGES
   ============================================================ */
/* 404 */
.tn-404 { text-align:center; padding:80px 20px; }
.tn-404__code {
  font-size:clamp(80px,18vw,180px); font-weight:900; line-height:1;
  color:var(--c-green); opacity:.15;
  font-family:var(--font-head);
  display:block; margin-bottom:-20px;
}
.tn-404__title { font-size:clamp(1.4rem,4vw,2.2rem); margin-bottom:12px; }
.tn-404__desc { color:var(--tx-3); margin-bottom:28px; }
.tn-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 24px;
  background:var(--c-green); color:#000;
  font-weight:700; font-size:.9rem;
  border-radius:var(--r-full);
  transition:background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.tn-btn:hover { background:var(--c-green-dark); box-shadow:var(--sh-glow); transform:translateY(-2px); color:#000; }
.tn-btn--ghost {
  background:transparent; color:var(--tx-2);
  border:2px solid var(--brd);
}
.tn-btn--ghost:hover { border-color:var(--c-green); background:var(--c-green-glow); color:var(--c-green); box-shadow:none; }

/* Search results */
.tn-search-header {
  background:var(--bg-card);
  border:1px solid var(--brd);
  border-radius:var(--r-lg);
  padding:24px 28px;
  margin-bottom:24px;
}
.tn-search-header__query { font-size:1.2rem; font-weight:800; }
.tn-search-header__query span { color:var(--c-green); }
.tn-search-header__count { font-size:.875rem; color:var(--tx-3); margin-top:4px; }

/* Archive header */
.tn-archive-header {
  background:var(--bg-card);
  border:1px solid var(--brd);
  border-radius:var(--r-lg);
  padding:28px 32px;
  margin-bottom:24px;
  display:flex; align-items:center; gap:20px;
}
.tn-archive-header__icon {
  width:52px; height:52px; border-radius:var(--r-md);
  background:var(--c-green-glow); color:var(--c-green);
  display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; flex-shrink:0;
}
.tn-archive-header__title { font-size:1.4rem; font-weight:800; }
.tn-archive-header__desc { font-size:.875rem; color:var(--tx-3); margin-top:4px; }

/* ============================================================
   16. SECTION TITLES
   ============================================================ */
.tn-section-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:20px;
}
.tn-section-title {
  font-size:1rem; font-weight:800;
  color:var(--tx-1);
  display:flex; align-items:center; gap:8px;
}
.tn-section-title::before {
  content:''; width:4px; height:18px;
  background:var(--c-green); border-radius:var(--r-full);
}
.tn-section-more {
  font-size:.78rem; font-weight:700; color:var(--c-green-dark);
  display:flex; align-items:center; gap:4px;
  transition:gap var(--t-fast);
}
.tn-section-more:hover { gap:8px; color:var(--c-green); }

/* ============================================================
   17. UTILITIES & MISC
   ============================================================ */
.tn-no-thumb {
  aspect-ratio:16/10;
  background: linear-gradient(135deg, var(--bg-card-2) 0%, var(--bg-card) 100%);
  display:flex; align-items:center; justify-content:center;
  font-size:2rem; color:var(--tx-3); opacity:.3;
}

.wp-post-image,.attachment-post-thumbnail { max-width:100%; height:auto; }

.page-content,.entry-content,.entry-summary { word-break:break-word; overflow-wrap:break-word; }

.alignleft  { float:left;  margin-right:20px; }
.alignright { float:right; margin-left:20px; }
.aligncenter { display:block; margin:0 auto; }
.alignwide { margin-left:calc(-40px); margin-right:calc(-40px); }
.alignfull { margin-left:calc(-40px); margin-right:calc(-40px); border-radius:0; }

/* Sticky post label */
.sticky .tn-card::before {
  content:'📌 Fixado';
  position:absolute; top:10px; right:10px; z-index:3;
  background:var(--c-yellow); color:#000;
  font-size:.65rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase;
  padding:3px 9px; border-radius:var(--r-full);
}
.sticky .tn-card { position:relative; }

/* Loading spinner */
.tn-spinner {
  display:inline-block; width:18px; height:18px;
  border:2px solid var(--brd);
  border-top-color:var(--c-green);
  border-radius:50%;
  animation:spin .6s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* Toast */
.tn-toast {
  position:fixed; bottom:24px; right:24px; z-index:9999;
  background:var(--bg-card);
  border:1px solid var(--brd);
  border-radius:var(--r-md);
  padding:12px 18px;
  box-shadow:var(--sh-lg);
  font-size:.875rem; font-weight:600; color:var(--tx-1);
  display:flex; align-items:center; gap:10px;
  transform:translateY(20px); opacity:0;
  transition:transform var(--t-med), opacity var(--t-med);
  pointer-events:none;
}
.tn-toast.show { transform:translateY(0); opacity:1; }
.tn-toast.success .tn-toast__icon { color:var(--c-green); }
.tn-toast.error   .tn-toast__icon { color:var(--c-red); }

/* Dark mode label */
[data-theme="dark"] .tn-dark-toggle .icon-moon { display:none; }
[data-theme="dark"] .tn-dark-toggle .icon-sun  { display:block; }
.tn-dark-toggle .icon-sun { display:none; }
.tn-dark-toggle .icon-moon { display:block; }

/* Section separator */
.tn-sep {
  height:1px; background:var(--brd);
  margin:40px 0; border:none;
}

/* Cookie banner */
.tn-cookie {
  position:fixed; bottom:0; left:0; right:0; z-index:9000;
  background:var(--bg-footer);
  border-top:1px solid rgba(255,255,255,.08);
  padding:16px 20px;
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  justify-content:space-between;
  color:#98C4A6; font-size:.82rem;
  transform:translateY(100%);
  transition:transform var(--t-med);
}
.tn-cookie.show { transform:translateY(0); }
.tn-cookie__text a { color:var(--c-green); }
.tn-cookie__btns { display:flex; gap:8px; }
.tn-cookie__accept {
  padding:7px 16px; background:var(--c-green); color:#000;
  font-weight:700; font-size:.78rem;
  border-radius:var(--r-full);
}
.tn-cookie__decline {
  padding:7px 16px; background:transparent; color:#6A9078;
  font-size:.78rem; border:1px solid rgba(255,255,255,.1);
  border-radius:var(--r-full);
}

/* Back to top */
#tn-back-top {
  position:fixed; bottom:72px; right:20px; z-index:500;
  width:40px; height:40px; border-radius:var(--r-md);
  background:var(--bg-card); border:1px solid var(--brd);
  color:var(--tx-2); font-size:.9rem;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--sh-md);
  transform:translateY(20px); opacity:0; visibility:hidden;
  transition:transform var(--t-med), opacity var(--t-med), visibility var(--t-med), background var(--t-fast), color var(--t-fast);
  cursor:pointer;
}
#tn-back-top.show { transform:translateY(0); opacity:1; visibility:visible; }
#tn-back-top:hover { background:var(--c-green); color:#000; border-color:transparent; }

/* ============================================================
   18. PRINT
   ============================================================ */
@media print {
  .tn-header, .tn-ticker, .tn-sidebar, .tn-footer,
  #tn-progress, #tn-back-top, .tn-share, .tn-related,
  .tn-pagination, .tn-comments, .tn-cookie { display:none !important; }
  .tn-layout { display:block; }
  .tn-article { border:none; }
  body { font-size:12pt; color:#000; background:#fff; }
  a[href]::after { content:" (" attr(href) ")"; font-size:9pt; opacity:.6; }
}
