/* ═══════════════════════════════════════════════════════════════
   NA TRILHA — Design System
   Portal editorial independente · otimizapro.com/na-trilha/
   Intencionalmente distinto do styles.css da Otimiza:
     Otimiza → dark (#050b1f), laranja, Inter, tech/SaaS
     Na Trilha → claro (#fff), verde-floresta, Playfair, editorial
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --nt-green: #1a3d2b;
  --nt-green-mid: #2d6a4f;
  --nt-green-light: #e8f5ee;
  --nt-amber: #b45309;
  --nt-amber-light: #fef7ec;

  --nt-text: #111827;
  --nt-text-mid: #374151;
  --nt-text-muted: #6b7280;
  --nt-text-faint: #9ca3af;

  --nt-bg: #ffffff;
  --nt-bg-alt: #f9fafb;
  --nt-bg-section: #f3f4f6;

  --nt-border: #e5e7eb;
  --nt-border-dark: #d1d5db;

  --nt-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --nt-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nt-container: 1200px;
  --nt-container-sm: 760px;
  --nt-radius: 4px;
  --nt-transition: all 0.2s ease;
}

/* ── RESET ──────────────────────────────────────────────────── */
.nt-scope *,
.nt-scope *::before,
.nt-scope *::after {
  box-sizing: border-box;
}

.nt-scope {
  font-family: var(--nt-sans);
  font-size: 1rem;
  color: var(--nt-text);
  background: var(--nt-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.nt-container {
  max-width: var(--nt-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nt-container--sm {
  max-width: var(--nt-container-sm);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.nt-header {
  background: var(--nt-bg);
  border-bottom: 1px solid var(--nt-border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nt-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.nt-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex-shrink: 0;
}

.nt-logo__name {
  font-family: var(--nt-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--nt-green);
  letter-spacing: -0.02em;
  line-height: 1;
}

.nt-logo__name span {
  color: var(--nt-amber);
}

.nt-logo__tagline {
  font-family: var(--nt-sans);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--nt-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nt-header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nt-nav {
  border-top: 1px solid var(--nt-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.nt-nav::-webkit-scrollbar {
  display: none;
}

.nt-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nt-nav__link {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--nt-text-mid);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 2px solid transparent;
  transition: var(--nt-transition);
  white-space: nowrap;
}

.nt-nav__link:hover,
.nt-nav__link--active {
  color: var(--nt-green);
  border-bottom-color: var(--nt-green);
}

/* ── BOTÕES ─────────────────────────────────────────────────── */
.nt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--nt-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  transition: var(--nt-transition);
  cursor: pointer;
  border: none;
}

.nt-btn--primary {
  background: var(--nt-green);
  color: #fff;
}

.nt-btn--primary:hover {
  background: var(--nt-green-mid);
  color: #fff;
}

.nt-btn--outline {
  background: transparent;
  color: var(--nt-amber);
  border-bottom: 1px solid var(--nt-amber);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.nt-btn--outline:hover {
  color: var(--nt-green);
  border-color: var(--nt-green);
}

/* ── TAGS / BADGES ──────────────────────────────────────────── */
.nt-tag {
  display: inline-block;
  font-family: var(--nt-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  text-decoration: none;
}

.nt-tag--green {
  background: var(--nt-green-light);
  color: var(--nt-green);
}

.nt-tag--amber {
  background: var(--nt-amber-light);
  color: var(--nt-amber);
}

/* ── SEÇÃO HEADER ───────────────────────────────────────────── */
.nt-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--nt-green);
  margin-bottom: 1.5rem;
}

.nt-section-label {
  font-family: var(--nt-sans);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--nt-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── HERO ───────────────────────────────────────────────────── */
.nt-hero {
  border-bottom: 1px solid var(--nt-border);
  padding: 2.5rem 0;
}

.nt-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.nt-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.nt-hero__date {
  font-size: 0.75rem;
  color: var(--nt-text-muted);
}

.nt-hero__title {
  font-family: var(--nt-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--nt-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.nt-hero__title em {
  color: var(--nt-green);
  font-style: italic;
}

.nt-hero__excerpt {
  font-size: 1rem;
  color: var(--nt-text-mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.nt-hero__byline {
  font-size: 0.75rem;
  color: var(--nt-text-muted);
}

.nt-hero__byline strong {
  color: var(--nt-text);
  font-weight: 600;
}

.nt-hero__image {
  border-radius: var(--nt-radius);
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--nt-bg-section);
  border: 1px solid var(--nt-border);
}

.nt-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── GRADE DE ARTIGOS ───────────────────────────────────────── */
.nt-articles {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--nt-border);
}

.nt-articles--bordered {
  border-top: 1px solid var(--nt-border);
}

.nt-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nt-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.nt-card__image {
  border-radius: var(--nt-radius);
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--nt-bg-section);
  border: 1px solid var(--nt-border);
  margin-bottom: 0.25rem;
}

.nt-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nt-card:hover .nt-card__image img {
  transform: scale(1.03);
}

.nt-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nt-card__date {
  font-size: 0.72rem;
  color: var(--nt-text-muted);
}

.nt-card__title {
  font-family: var(--nt-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--nt-text);
  line-height: 1.3;
  transition: color 0.15s;
}

.nt-card:hover .nt-card__title {
  color: var(--nt-green);
}

.nt-card__excerpt {
  font-size: 0.82rem;
  color: var(--nt-text-muted);
  line-height: 1.55;
}

.nt-card__byline {
  font-size: 0.7rem;
  color: var(--nt-text-faint);
  margin-top: auto;
  padding-top: 0.25rem;
}

/* ── LISTA + PODCAST (2 colunas) ────────────────────────────── */
.nt-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--nt-border);
}

.nt-ranked {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nt-ranked__item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--nt-border);
  text-decoration: none;
  color: inherit;
}

.nt-ranked__item:first-child {
  padding-top: 0;
}
.nt-ranked__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nt-ranked__num {
  font-family: var(--nt-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--nt-border-dark);
  line-height: 1;
  min-width: 1.75rem;
}

.nt-ranked__title {
  font-family: var(--nt-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nt-text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  display: block;
  transition: color 0.15s;
}

.nt-ranked__item:hover .nt-ranked__title {
  color: var(--nt-green);
}

.nt-ranked__meta {
  font-size: 0.7rem;
  color: var(--nt-text-muted);
}

/* ── PODCAST BOX ────────────────────────────────────────────── */
.nt-podcast {
  background: var(--nt-green);
  border-radius: 6px;
  padding: 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nt-podcast__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a7f3d0;
}

.nt-podcast__title {
  font-family: var(--nt-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.nt-podcast__desc {
  font-size: 0.75rem;
  color: #d1fae5;
  line-height: 1.5;
}

.nt-podcast__progress {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  height: 3px;
  position: relative;
  overflow: hidden;
}

.nt-podcast__bar {
  position: absolute;
  inset: 0;
  width: 38%;
  background: var(--nt-amber);
  border-radius: 99px;
}

.nt-podcast__controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nt-podcast__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--nt-transition);
  flex-shrink: 0;
}

.nt-podcast__btn--play {
  width: 42px;
  height: 42px;
  background: var(--nt-amber);
}

.nt-podcast__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.nt-podcast__btn--play:hover {
  background: #c2841a;
}

.nt-podcast__platforms {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nt-podcast__badge {
  background: rgba(255, 255, 255, 0.1);
  color: #d1fae5;
  font-size: 0.62rem;
  font-weight: 500;
  padding: 0.18rem 0.45rem;
  border-radius: 3px;
}

.nt-podcast__badge--all {
  margin-left: auto;
}

/* ── NEWSLETTER ─────────────────────────────────────────────── */
.nt-newsletter {
  background: var(--nt-amber-light);
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.nt-newsletter__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nt-amber);
  display: block;
  margin-bottom: 0.5rem;
}

.nt-newsletter__title {
  font-family: var(--nt-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--nt-text);
  margin-bottom: 0.4rem;
}

.nt-newsletter__sub {
  font-size: 0.82rem;
  color: var(--nt-text-mid);
  margin-bottom: 1.25rem;
}

.nt-newsletter__form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.nt-newsletter__input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--nt-border-dark);
  border-radius: var(--nt-radius);
  font-size: 0.85rem;
  font-family: var(--nt-sans);
  color: var(--nt-text);
  background: #fff;
  outline: none;
}

.nt-newsletter__input:focus {
  border-color: var(--nt-green);
  box-shadow: 0 0 0 2px rgba(26, 61, 43, 0.1);
}

.nt-newsletter__btn {
  background: var(--nt-green);
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--nt-radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--nt-sans);
  transition: var(--nt-transition);
  white-space: nowrap;
}

.nt-newsletter__btn:hover {
  background: var(--nt-green-mid);
}

/* ── ARTIGO (página interna) ────────────────────────────────── */
.nt-article__header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--nt-border);
  margin-bottom: 2rem;
}

.nt-article__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.nt-article__title {
  font-family: var(--nt-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--nt-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.nt-article__subtitle {
  font-size: 1.15rem;
  color: var(--nt-text-mid);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.nt-article__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--nt-text-muted);
  flex-wrap: wrap;
}

.nt-article__meta strong {
  color: var(--nt-text);
  font-weight: 600;
}
.nt-article__meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nt-article__cover {
  margin: 2rem 0;
  border-radius: var(--nt-radius);
  overflow: hidden;
  border: 1px solid var(--nt-border);
}

.nt-article__cover img {
  width: 100%;
  display: block;
}
.nt-article__cover figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  color: var(--nt-text-muted);
  background: var(--nt-bg-alt);
  font-style: italic;
}

/* Corpo do artigo */
.nt-article__body {
  line-height: 1.8;
}

.nt-article__body h2 {
  font-family: var(--nt-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nt-text);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.nt-article__body h3 {
  font-family: var(--nt-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--nt-text);
  margin: 1.5rem 0 0.5rem;
}

.nt-article__body p {
  margin-bottom: 1.2rem;
  color: var(--nt-text-mid);
}

.nt-article__body strong {
  color: var(--nt-text);
  font-weight: 600;
}

.nt-article__body a {
  color: var(--nt-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nt-article__body ul,
.nt-article__body ol {
  margin: 0 0 1.2rem 1.5rem;
  color: var(--nt-text-mid);
}

.nt-article__body li {
  margin-bottom: 0.4rem;
}

.nt-article__body blockquote {
  border-left: 3px solid var(--nt-green);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--nt-text-mid);
  font-style: italic;
  background: var(--nt-green-light);
  border-radius: 0 var(--nt-radius) var(--nt-radius) 0;
}

.nt-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.nt-article__body th {
  background: var(--nt-green);
  color: #fff;
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.nt-article__body td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--nt-border);
  color: var(--nt-text-mid);
}

.nt-article__body tr:nth-child(even) td {
  background: var(--nt-bg-alt);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.nt-footer {
  background: var(--nt-green);
  color: #d1fae5;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.nt-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.nt-footer__logo {
  font-family: var(--nt-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.nt-footer__logo span {
  color: #fcd34d;
}

.nt-footer__desc {
  font-size: 0.75rem;
  color: #a7f3d0;
  max-width: 240px;
  line-height: 1.5;
}

.nt-footer__links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.nt-footer__col-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a7f3d0;
  margin-bottom: 0.6rem;
  display: block;
}

.nt-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nt-footer__col a {
  font-size: 0.78rem;
  color: #d1fae5;
  text-decoration: none;
  transition: var(--nt-transition);
}

.nt-footer__col a:hover {
  color: #fff;
}

.nt-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nt-footer__credit {
  font-size: 0.7rem;
  color: #6ee7b7;
}

.nt-footer__credit a {
  color: #a7f3d0;
  text-decoration: none;
}
.nt-footer__credit a:hover {
  color: #fff;
}

.nt-footer__link {
  color: #a7f3d0;
  text-decoration: none;
}
.nt-footer__link:hover {
  color: #fff;
}

.nt-footer__legal {
  font-size: 0.68rem;
  color: #6ee7b7;
}

/* ── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nt-hero__grid {
    grid-template-columns: 1fr;
  }
  .nt-hero__image {
    display: none;
  }
  .nt-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nt-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nt-hero__title {
    font-size: 1.75rem;
  }
  .nt-articles__grid {
    grid-template-columns: 1fr;
  }
  .nt-newsletter__form {
    flex-direction: column;
  }
  .nt-footer__links {
    gap: 1.5rem;
  }
  .nt-article__title {
    font-size: 1.75rem;
  }
}
