/*
Theme Name:   Nerd Tatuado Portal
Theme URI:    https://nerdtatuado.com.br/
Description:  Tema leve com layout de portal de notícias para o Nerd Tatuado. Não precisa de tema pai nem de importação. Compatível com Elementor e Elementor Pro.
Author:       Nerd Tatuado
Version:      2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  nerdtatuado
*/

/* ==========================================================
   1. CORES E MEDIDAS — mude aqui e o site inteiro acompanha
   ========================================================== */
:root {
  --nt-accent: #e11d2e;      /* cor de destaque */
  --nt-accent-2: #b5101f;    /* destaque mais escuro (hover) */
  --nt-ink: #121212;         /* texto */
  --nt-ink-2: #3d3d3d;
  --nt-muted: #6f6f73;       /* datas, legendas */
  --nt-line: #e6e6e8;        /* divisórias */
  --nt-bg: #ffffff;
  --nt-soft: #f3f3f5;        /* caixas */
  --nt-dark: #111111;        /* cabeçalho, faixa e rodapé */
  --nt-dark-2: #1c1c1f;
  --nt-radius: 10px;
  --nt-max: 1240px;
  --nt-text: #222222;        /* texto das matérias */
  --nt-field: #ffffff;       /* campos de formulário */
  --nt-field-line: #cfcfd4;
  --nt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================
   2. BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { color-scheme: light; }
body {
  margin: 0; font-family: var(--nt-font); font-size: 16px; line-height: 1.5;
  color: var(--nt-ink); background: var(--nt-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--nt-accent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--nt-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.nt-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--nt-accent); color: #fff; padding: 8px 14px; border-radius: 6px; }
.nt-skip:focus { left: 8px; color: #fff; }
.nt-wrap { width: 100%; max-width: var(--nt-max); margin: 0 auto; padding: 0 16px; }
.nt-ico { width: 20px; height: 20px; fill: currentColor; display: block; }
.nt-iconbtn { background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; border-radius: 8px; line-height: 0; }
.nt-iconbtn:hover { background: rgba(255,255,255,.08); }

.nt-btn {
  display: inline-block; background: var(--nt-accent); color: #fff !important; font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: 999px; border: 2px solid var(--nt-accent); cursor: pointer; transition: background .2s;
}
.nt-btn:hover { background: var(--nt-accent-2); border-color: var(--nt-accent-2); }
.nt-btn--outline { background: transparent; color: var(--nt-ink) !important; border-color: var(--nt-ink); }
.nt-btn--outline:hover { background: var(--nt-ink); border-color: var(--nt-ink); color: #fff !important; }

/* ==========================================================
   3. CABEÇALHO
   ========================================================== */
.nt-topbar { background: #000; color: #a9a9ad; font-size: 12px; }
.nt-topbar__in { display: flex; align-items: center; gap: 16px; min-height: 34px; }
.nt-topbar__tag { margin-left: auto; color: #d4d4d8; font-weight: 600; letter-spacing: .02em; }
.nt-social { list-style: none; display: flex; gap: 4px; }
.nt-social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #cfcfd3; }
.nt-social a:hover { color: #fff; background: var(--nt-accent); }
.nt-social .nt-ico { width: 15px; height: 15px; }

.nt-mainbar { background: var(--nt-dark); color: #fff; position: sticky; top: 0; z-index: 90; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.admin-bar .nt-mainbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .nt-mainbar { top: 0; } }
.nt-mainbar__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.nt-logo { display: flex; align-items: center; flex: 0 0 auto; }
.nt-logo__img { max-height: 48px; width: auto; }
.nt-logo__text { font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: #fff; text-transform: uppercase; }
.nt-nav { flex: 1 1 auto; }
.nt-menu { list-style: none; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nt-menu > li { position: relative; }
.nt-menu > li > a {
  display: block; padding: 24px 12px; font-size: 14px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .03em; color: #fff; position: relative;
}
.nt-menu > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 4px; background: var(--nt-accent);
  transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.nt-menu > li > a:hover, .nt-menu > .current-menu-item > a, .nt-menu > .current-category-ancestor > a { color: #fff; }
.nt-menu > li > a:hover::after, .nt-menu > .current-menu-item > a::after, .nt-menu > .current-category-ancestor > a::after { transform: scaleX(1); }
.nt-menu .sub-menu {
  list-style: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--nt-dark-2);
  padding: 8px 0; border-radius: 0 0 8px 8px; box-shadow: 0 12px 30px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 5;
}
.nt-menu li:hover > .sub-menu, .nt-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nt-menu .sub-menu a { display: block; padding: 9px 16px; font-size: 14px; color: #e4e4e7; }
.nt-menu .sub-menu a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nt-search-btn { color: #fff; }
.nt-burger, .nt-nav__close { display: none; color: #fff; }

.nt-trend { background: var(--nt-bg); border-bottom: 1px solid var(--nt-line); }
.nt-trend__in { display: flex; align-items: center; gap: 14px; min-height: 46px; overflow: hidden; }
.nt-trend__label {
  flex: 0 0 auto; background: var(--nt-accent); color: #fff; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 4px;
}
.nt-trend__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; flex: 1; min-width: 0; }
.nt-trend__list li { min-width: 0; padding-left: 12px; border-left: 2px solid var(--nt-line); }
.nt-trend__list a { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Busca em tela cheia */
.nt-search-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.96); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: .2s; padding: 20px;
}
.nt-search-open .nt-search-overlay { opacity: 1; visibility: visible; }
.nt-search-overlay__close { position: absolute; top: 18px; right: 18px; color: #fff; }
.nt-search-overlay__close .nt-ico { width: 28px; height: 28px; }
.nt-search-form { display: flex; width: 100%; max-width: 760px; border-bottom: 3px solid var(--nt-accent); }
.nt-search-form input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-size: clamp(22px, 4vw, 40px);
  font-weight: 800; padding: 12px 0; outline: none;
}
.nt-search-form input::placeholder { color: #77777c; }
.nt-search-form button { background: none; border: 0; color: #fff; cursor: pointer; padding: 0 6px; }
.nt-search-form button .nt-ico { width: 30px; height: 30px; }
.nt-search-form--inline { max-width: 560px; margin-top: 18px; border: 2px solid var(--nt-line); border-radius: 999px; padding: 0 8px 0 18px; background: var(--nt-field); }
.nt-search-form--inline input { color: var(--nt-ink); font-size: 16px; font-weight: 500; padding: 12px 0; }
.nt-search-form--inline button { color: var(--nt-ink); }
.nt-search-form--inline button .nt-ico { width: 22px; height: 22px; }
.nt-archive-head .nt-search-form--inline { border-color: transparent; }

/* Menu mobile */
.nt-backdrop { display: none; }
@media (max-width: 1024px) {
  .nt-burger, .nt-nav__close { display: block; }
  .nt-mainbar__in { min-height: 60px; gap: 10px; }
  .nt-logo { margin: 0 auto; }
  .nt-search-btn, .nt-theme-btn { margin-left: 0; }
  .nt-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: var(--nt-dark);
    z-index: 150; padding: 12px 0 30px; overflow-y: auto; transform: translateX(-100%); transition: transform .25s;
  }
  .nt-menu-open .nt-nav { transform: none; }
  .nt-nav__close { margin: 0 12px 8px auto; }
  .nt-menu { flex-direction: column; align-items: stretch; }
  .nt-menu > li > a { padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nt-menu > li > a::after { display: none; }
  .nt-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 6px 12px; }
  .nt-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 140; }
  .nt-menu-open .nt-backdrop { display: block; }
  .nt-topbar__date { display: none; }
  .nt-topbar__tag { margin-left: 0; margin-right: auto; }
  .nt-trend__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-trend__list li:nth-child(n+3) { display: none; }
}
@media (max-width: 600px) {
  .nt-trend__list { grid-template-columns: 1fr; }
  .nt-trend__list li:nth-child(n+2) { display: none; }
  .nt-logo__img { max-height: 40px; }
}

/* ==========================================================
   4. CARDS DE NOTÍCIA
   ========================================================== */
.nt-card { position: relative; min-width: 0; }
.nt-card__media { display: block; position: relative; overflow: hidden; border-radius: var(--nt-radius); background: var(--nt-soft); aspect-ratio: 16 / 9; }
.nt-card__media .nt-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nt-card:hover .nt-card__media .nt-img { transform: scale(1.045); }
.nt-img--empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #2a2a2e, #111); }
.nt-badge {
  display: inline-block; background: var(--nt-accent); color: #fff !important; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 4px; line-height: 1.2; margin-bottom: 8px;
}
.nt-badge:hover { background: var(--nt-accent-2); }
.nt-card__title { font-weight: 800; letter-spacing: -.005em; }
.nt-card__title a:hover { color: var(--nt-accent); }
.nt-card__meta { margin-top: 6px; font-size: 12px; color: var(--nt-muted); }
.nt-card__excerpt { margin: 6px 0 0; color: var(--nt-ink-2); font-size: 14.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Card padrão: imagem em cima */
.nt-card--card .nt-card__body { padding-top: 12px; }
.nt-card--card .nt-card__title { font-size: 18px; }

/* Texto sobre a imagem */
.nt-card--overlay { border-radius: var(--nt-radius); overflow: hidden; }
.nt-card--overlay .nt-card__media { height: 100%; border-radius: 0; }
.nt-card--overlay .nt-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.92) 100%);
}
.nt-card--overlay .nt-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; z-index: 2; color: #fff; pointer-events: none; }
.nt-card--overlay .nt-card__body a { pointer-events: auto; }
.nt-card--overlay .nt-card__title a { color: #fff; }
.nt-card--overlay:hover .nt-card__title a { color: #fff; text-decoration: underline; text-decoration-color: var(--nt-accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.nt-card--overlay .nt-card__meta { color: #d6d6da; }
.nt-card--overlay .nt-card__title { font-size: 17px; text-shadow: 0 1px 10px rgba(0,0,0,.35); }

/* Linha: imagem à esquerda */
.nt-card--row { display: grid; grid-template-columns: 38% 1fr; gap: 18px; align-items: start; }
.nt-card--row .nt-card__title { font-size: 19px; }
@media (max-width: 600px) {
  .nt-card--row { grid-template-columns: 120px 1fr; gap: 12px; }
  .nt-card--row .nt-card__title { font-size: 15.5px; }
  .nt-card--row .nt-card__excerpt, .nt-card--row .nt-badge { display: none; }
  .nt-card--row .nt-card__media { aspect-ratio: 4 / 3; border-radius: 8px; }
}

/* Mini */
.nt-card--mini { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.nt-card--mini .nt-card__media { aspect-ratio: 3 / 2; border-radius: 8px; }
.nt-card--mini .nt-card__title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.nt-card--mini .nt-card__meta { margin-top: 4px; }

/* ==========================================================
   5. HOME
   ========================================================== */
.nt-hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; padding-top: 22px; padding-bottom: 6px; }
.nt-hero__main .nt-card { height: 100%; }
.nt-hero__main .nt-card__media { aspect-ratio: 16 / 10; }
.nt-hero__main .nt-card__body { padding: 26px; }
.nt-hero__main .nt-card__title { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -.015em; }
.nt-hero__side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.nt-hero__side .nt-card__media { aspect-ratio: auto; min-height: 100%; }
.nt-hero__side .nt-card__body { padding: 14px; }
.nt-hero__side .nt-card__title { font-size: 15.5px; line-height: 1.25; }
.nt-hero__side .nt-card__meta { display: none; }
@media (max-width: 900px) {
  .nt-hero { grid-template-columns: 1fr; }
  .nt-hero__side .nt-card__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .nt-hero { padding-top: 14px; gap: 12px; }
  .nt-hero__main .nt-card__body { padding: 16px; }
  .nt-hero__side { gap: 12px; }
  .nt-hero__side .nt-card__title { font-size: 14px; }
  .nt-hero__side .nt-badge { display: none; }
}

.nt-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--nt-ink); margin-bottom: 20px; }
.nt-sec-title {
  font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; padding-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.nt-sec-title::before { content: ""; width: 8px; height: 20px; background: var(--nt-accent); border-radius: 2px; flex: 0 0 auto; }
.nt-sec-more { font-size: 13px; font-weight: 800; color: var(--nt-accent); text-transform: uppercase; padding-bottom: 9px; white-space: nowrap; }
.nt-sec-more:hover { color: var(--nt-accent-2); }
.nt-sec-head--dark { border-color: #fff; }
.nt-sec-head--dark .nt-sec-title { color: #fff; }

.nt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 34px; padding-bottom: 34px; align-items: start; }
@media (max-width: 1024px) { .nt-layout { grid-template-columns: 1fr; } }
.nt-list { display: flex; flex-direction: column; }
.nt-list > .nt-card { padding: 18px 0; border-bottom: 1px solid var(--nt-line); }
.nt-list > .nt-card:first-child { padding-top: 0; }

.nt-band { background: var(--nt-dark); padding: 38px 0 44px; margin: 10px 0; }
.nt-grid { display: grid; gap: 22px; }
.nt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nt-grid--poster .nt-card__media { aspect-ratio: 3 / 4; }
.nt-grid--poster .nt-card__title { font-size: 18px; }
@media (max-width: 1024px) { .nt-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .nt-grid--4, .nt-grid--3 { grid-template-columns: 1fr; }
  .nt-grid--poster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nt-grid--poster .nt-card__title { font-size: 14px; }
  .nt-grid--poster .nt-card__body { padding: 12px; }
  .nt-grid--poster .nt-badge, .nt-grid--poster .nt-card__meta { display: none; }
}

.nt-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 34px; padding-bottom: 10px; }
.nt-duo .nt-card--card .nt-card__title { font-size: 21px; }
.nt-minis { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--nt-line); }
@media (max-width: 900px) { .nt-duo { grid-template-columns: 1fr; } }
.nt-block { padding-top: 34px; padding-bottom: 6px; }
.nt-more { text-align: center; padding-top: 30px; padding-bottom: 50px; }

/* ==========================================================
   6. BARRA LATERAL
   ========================================================== */
.nt-layout__side { min-width: 0; }
.nt-sticky { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1025px) { .nt-sticky { position: sticky; top: 92px; } .admin-bar .nt-sticky { top: 124px; } }
.nt-box { background: var(--nt-soft); border-radius: var(--nt-radius); padding: 20px; }
.nt-box__title { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--nt-ink); }
.nt-box iframe { display: block; border: 0; border-radius: 12px; margin-top: 12px; }
.nt-box--dark { background: var(--nt-dark); color: #fff; }
.nt-box--dark .nt-box__title { border-color: #fff; }
.nt-box--support p { color: var(--nt-ink-2); font-size: 14px; margin: 10px 0 14px; }
.nt-rank { list-style: none; counter-reset: rank; }
.nt-rank li { counter-increment: rank; display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--nt-line); }
.nt-rank li:last-child { border-bottom: 0; padding-bottom: 0; }
.nt-rank li::before { content: counter(rank); font-size: 32px; font-weight: 900; line-height: .9; color: var(--nt-accent); min-width: 24px; font-variant-numeric: tabular-nums; }
.nt-rank a { font-size: 15px; font-weight: 700; line-height: 1.3; }

/* ==========================================================
   7. POST
   ========================================================== */
.nt-single { padding-top: 22px; }
.nt-crumbs { font-size: 13px; color: var(--nt-muted); margin-bottom: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.nt-crumbs a:hover { color: var(--nt-accent); }
.nt-article__title { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 14px; }
.nt-article__lead { font-size: clamp(17px, 2vw, 20px); color: var(--nt-ink-2); line-height: 1.45; margin-bottom: 18px; }
.nt-article__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--nt-line); border-bottom: 1px solid var(--nt-line); margin-bottom: 22px; }
.nt-author-line { display: flex; align-items: center; gap: 12px; }
.nt-author-line img { border-radius: 50%; }
.nt-author-line > div { display: flex; flex-direction: column; }
.nt-author-line__by { font-size: 14px; font-weight: 800; }
.nt-author-line__by a { color: var(--nt-ink); }
.nt-author-line__date { font-size: 13px; color: var(--nt-muted); }
.nt-share { display: flex; gap: 8px; }
.nt-share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--nt-dark); color: #fff; transition: background .2s; }
.nt-share a:hover { background: var(--nt-accent); color: #fff; }
.nt-share .nt-ico { width: 18px; height: 18px; }
.nt-share__wa { background: #1fa855 !important; }
.nt-share__wa:hover { background: #178a45 !important; }
.nt-article__figure { margin: 0 0 26px; }
.nt-article__figure img { width: 100%; border-radius: var(--nt-radius); }
.nt-article__figure figcaption { font-size: 13px; color: var(--nt-muted); margin-top: 8px; }

.nt-content { font-size: 18.5px; line-height: 1.75; color: var(--nt-text); overflow-wrap: break-word; }
.nt-content > * { margin-top: 0; margin-bottom: 1.2em; }
.nt-content h2 { font-size: 27px; font-weight: 900; margin-top: 1.6em; line-height: 1.2; }
.nt-content h3 { font-size: 22px; font-weight: 800; margin-top: 1.4em; }
.nt-content a { color: var(--nt-accent); text-decoration: underline; text-underline-offset: 3px; }
.nt-content img, .nt-content video { border-radius: 8px; height: auto; }
.nt-content iframe { width: 100%; border-radius: 10px; }
.nt-content blockquote { border-left: 4px solid var(--nt-accent); margin-left: 0; padding: 4px 0 4px 20px; font-size: 21px; font-style: italic; color: var(--nt-ink-2); }
.nt-content figcaption, .nt-content .wp-caption-text { font-size: 13px; color: var(--nt-muted); text-align: center; margin-top: 6px; }
.nt-content ul, .nt-content ol { padding-left: 1.4em; }
.nt-content li { margin-bottom: .4em; }
.nt-content .wp-block-embed__wrapper iframe { aspect-ratio: 16 / 9; height: auto; }
.nt-content .alignleft { float: left; margin: 0 20px 12px 0; }
.nt-content .alignright { float: right; margin: 0 0 12px 20px; }
.nt-content .aligncenter { margin-left: auto; margin-right: auto; }
.nt-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nt-content td, .nt-content th { border: 1px solid var(--nt-line); padding: 8px 10px; }

.nt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.nt-tags a { background: var(--nt-soft); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.nt-tags a:hover { background: var(--nt-accent); color: #fff; }
.nt-authorbox { display: flex; gap: 18px; align-items: flex-start; background: var(--nt-soft); border-radius: var(--nt-radius); padding: 22px; margin: 26px 0 40px; }
.nt-authorbox img { border-radius: 50%; flex: 0 0 auto; }
.nt-authorbox__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--nt-muted); font-weight: 700; }
.nt-authorbox__name { font-size: 20px; font-weight: 900; margin: 2px 0 6px; }
.nt-authorbox p { font-size: 15px; color: var(--nt-ink-2); margin: 0; }
.nt-related { margin-bottom: 40px; }
.nt-related .nt-card__title { font-size: 16px; }
.nt-page { padding-top: 34px; padding-bottom: 50px; max-width: 860px; }

/* Comentários */
.nt-comments { margin-top: 10px; }
.nt-comment-list { list-style: none; }
.nt-comment-list .children { list-style: none; padding-left: 28px; border-left: 2px solid var(--nt-line); }
.nt-comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--nt-line); }
.nt-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.nt-comment-list .comment-author img { border-radius: 50%; }
.nt-comment-list .comment-meta { font-size: 12px; color: var(--nt-muted); margin: 2px 0 8px 54px; }
.nt-comment-list .comment-content { margin-left: 54px; }
.nt-comment-list .reply { margin-left: 54px; font-size: 13px; font-weight: 700; }
.nt-comment-list .reply a { color: var(--nt-accent); }
.comment-respond { margin-top: 26px; }
.nt-comments__title { margin-bottom: 14px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; border: 1px solid var(--nt-field-line); border-radius: 8px; padding: 10px 12px; background: var(--nt-field); color: var(--nt-ink);
}
.comment-form textarea { min-height: 140px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ==========================================================
   8. CATEGORIAS, BUSCA, 404
   ========================================================== */
.nt-archive-head { background: var(--nt-dark); color: #fff; padding: 34px 0 32px; }
.nt-archive-head__kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nt-accent); }
.nt-archive-head__title { font-size: clamp(30px, 5vw, 46px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; margin-top: 4px; }
.nt-archive-head__desc { color: #bdbdc2; max-width: 720px; margin-top: 8px; }
.nt-archive-head__desc p { margin: 0; }
.nt-archive-lead { margin-bottom: 26px; }
.nt-archive-lead .nt-card__media { aspect-ratio: 16 / 8; }
.nt-archive-lead .nt-card__body { padding: 24px; }
.nt-archive-lead .nt-card__title { font-size: clamp(22px, 3vw, 32px); line-height: 1.15; }
.nt-pagination { margin-top: 30px; }
.nt-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.nt-pagination a, .nt-pagination span { display: block; padding: 9px 14px; border-radius: 8px; font-weight: 800; font-size: 14px; background: var(--nt-soft); }
.nt-pagination .current { background: var(--nt-accent); color: #fff; }
.nt-pagination a:hover { background: var(--nt-ink); color: #fff; }
.nt-empty { padding: 30px 0; }
.nt-404 { text-align: center; padding: 70px 16px 80px; max-width: 720px; }
.nt-404__code { font-size: 110px; font-weight: 900; color: var(--nt-accent); line-height: 1; letter-spacing: -.04em; }
.nt-404 h1 { font-size: 28px; font-weight: 900; margin: 10px 0; }
.nt-404 .nt-search-form--inline { margin: 18px auto 26px; }

/* ==========================================================
   9. RODAPÉ
   ========================================================== */
.nt-footer { background: var(--nt-dark); color: #a9a9ae; margin-top: 40px; }
.nt-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 50px; padding-bottom: 40px; }
.nt-footer__about p { font-size: 14px; margin: 16px 0; max-width: 380px; }
.nt-footer .nt-logo__img { max-height: 54px; }
.nt-footer__title { color: #fff; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.nt-footer__links { list-style: none; display: grid; gap: 9px; }
.nt-footer__links a { color: #d4d4d8; font-size: 14px; }
.nt-footer__links a:hover { color: var(--nt-accent); }
.nt-footer p { font-size: 14px; }
.nt-footer__bottom { background: #000; color: #808085; font-size: 12px; padding: 16px 0; text-align: center; }
@media (max-width: 900px) { .nt-footer__grid { grid-template-columns: 1fr; gap: 30px; } }

/* ==========================================================
   10. MODO ESCURO
   Ativado pelo botão sol/lua (data-theme="dark" no <html>).
   ========================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --nt-ink: #ededf0;
  --nt-ink-2: #c3c3c9;
  --nt-text: #dcdce0;
  --nt-muted: #9a9aa2;
  --nt-line: #2b2b31;
  --nt-bg: #0e0e10;
  --nt-soft: #19191d;
  --nt-dark: #050506;
  --nt-dark-2: #151518;
  --nt-field: #19191d;
  --nt-field-line: #34343b;
}
html[data-theme="dark"] .nt-topbar { background: #000; border-bottom: 1px solid #1a1a1d; }
html[data-theme="dark"] .nt-mainbar { box-shadow: 0 1px 0 #222226; }
html[data-theme="dark"] .nt-band { background: #050506; border-top: 1px solid #1f1f23; border-bottom: 1px solid #1f1f23; }
html[data-theme="dark"] .nt-box--dark { background: #050506; border: 1px solid #222226; }
html[data-theme="dark"] .nt-footer { border-top: 1px solid #1f1f23; }
html[data-theme="dark"] .nt-archive-head { background: #050506; border-bottom: 1px solid #1f1f23; }
html[data-theme="dark"] .nt-share a { background: #26262b; }
html[data-theme="dark"] .nt-btn--outline { color: var(--nt-ink) !important; border-color: var(--nt-ink); }
html[data-theme="dark"] .nt-btn--outline:hover { background: var(--nt-ink); color: #111 !important; }
html[data-theme="dark"] .nt-pagination a:hover { background: var(--nt-ink); color: #111; }
html[data-theme="dark"] .nt-card__media .nt-img { filter: brightness(.92); }
html[data-theme="dark"] .nt-content img { filter: brightness(.94); }
html[data-theme="dark"] .nt-content table, html[data-theme="dark"] .nt-content td, html[data-theme="dark"] .nt-content th { border-color: var(--nt-line); }
html[data-theme="dark"] .nt-content .has-background { color: #111; }

/* Botão sol/lua */
.nt-theme-btn { color: #fff; position: relative; margin-left: auto; }
.nt-theme-btn .nt-ico--sun { display: none; }
html[data-theme="dark"] .nt-theme-btn .nt-ico--sun { display: block; }
html[data-theme="dark"] .nt-theme-btn .nt-ico--moon { display: none; }
@media (max-width: 1024px) { .nt-theme-btn { order: 3; margin-left: 0; } .nt-search-btn { order: 4; } }

/* Elementor: páginas feitas com ele usam a largura toda */
.elementor-page .nt-main > .elementor { width: 100%; }
body, .nt-box, .nt-trend, .nt-card__title a { transition: background-color .25s, color .25s, border-color .25s; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
