/*
Theme Name: TechCampo Child
Theme URI: https://techcampo.com
Description: Child theme editorial TechCampo — verde agro, Inter + Sora.
Author: Inovar Media Group
Template: astra
Version: 2.3.5
Text Domain: astra-techcampo-child
*/

/* Grid / cards: min-width 0 no item (como inovar-post-grid). Estrutura do card alinhada a astra-inovarinfo — sem reset global de writing-mode. */
.tc-feed-col {
  min-width: 0;
  width: 100%;
}

/* Só min-width: grid — não forçar display:flex nos filhos (evita interação estranha com flex ancestors). */
.tc-grid-3 > *,
.tc-grid-2 > *,
.cards-grid > *,
.posts-grid > *,
.ultimas-noticias > *,
.grid-container > * {
  min-width: 0 !important;
  width: 100% !important;
}

.post-card,
.card {
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.tc-post-title,
.tc-post-title a,
p.tc-post-title {
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  width: 100% !important;
  min-width: 0 !important;
}

.tc-post-title {
  display: block !important;
}

.tc-post-title a {
  color: inherit;
  text-decoration: none;
  display: block !important;
}

.tc-post-title a:hover {
  text-decoration: underline;
}

/* Remove truncamento WebKit herdado (Astra / line-clamp) que empilha caracteres em caixas estreitas */
.tc-post-title,
.tc-post-title a {
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-height: none !important;
}

:root {
  --cor-primaria: #2e7d32;
  --cor-secundaria: #f1f8e9;
  --cor-acento: #ff6f00;
  --fonte-titulo: "Sora", sans-serif;
  --fonte-corpo: "Inter", sans-serif;
  --border-radius: 6px;
  --tc-footer-bg: #1b3d1f;
  --tc-ink: #1a1a1a;
  --tc-muted: #5c5c5c;
  --tc-card-bg: #fff;
  --tc-border: #e0e8dc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-corpo), system-ui, sans-serif;
  color: var(--tc-ink);
  background: var(--cor-secundaria);
  overflow-x: hidden;
  max-width: 100%;
}

/* Fallback visual quando URLs de mídia apontam para produção (import) — gradient por trás do <img> */
img.wp-post-image,
img.attachment-medium,
img.attachment-medium_large,
img.size-medium,
img.size-medium_large {
  display: block;
  min-height: 180px;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

/* Evita #page/#content em flex-row (Astra + Elementor): rodapé ao lado e coluna estreita */
#masthead,
#colophon,
.ast-primary-header-bar,
.ast-above-header-wrap,
.ast-below-header-wrap,
.site-header:not(.tc-custom-header),
.site-footer:not(.tc-custom-footer) {
  display: none !important;
}

/* Título/tagline WP legado (#headerimg) — duplica o tc-brand no canto superior */
#page > #header,
#page > #header + hr,
#headerimg,
#header[role="banner"] {
  display: none !important;
}

/* Fluxo em bloco no invólucro Astra — corrige coluna minúscula + rodapé à direita */
#page.site,
#page.hfeed.site {
  display: block;
  width: 100%;
  max-width: 100%;
}

#content.site-content {
  display: block;
  width: 100%;
  max-width: 100%;
  float: none;
}

#content.site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: 100%;
  float: none;
}

.tc-custom-footer {
  display: block;
  width: 100%;
  max-width: none;
  clear: both;
}

.tc-title-font,
h1,
h2,
h3,
h4,
h5,
h6,
.entry-title {
  font-family: var(--fonte-titulo), system-ui, sans-serif;
}

/* —— News ticker —— */
.tc-ticker {
  background: var(--cor-primaria);
  color: #fff;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.4;
  border-bottom: 3px solid var(--cor-acento);
}
.tc-ticker__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.tc-ticker__label {
  flex-shrink: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: #c8e6c9;
}
.tc-ticker__track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.tc-ticker__marquee {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: tc-marquee 40s linear infinite;
}
@keyframes tc-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.tc-ticker__marquee a {
  color: #fff;
  text-decoration: none;
}
.tc-ticker__marquee a:hover {
  text-decoration: underline;
  color: #fff9c4;
}

/* —— Header sticky + shrink —— */
.tc-custom-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 3px solid var(--cor-primaria);
  box-shadow: none;
  transition: box-shadow 0.2s ease, padding 0.2s ease;
}
.tc-custom-header.is-shrunk {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.tc-custom-header .tc-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: padding 0.2s ease;
}
.tc-custom-header.is-shrunk .tc-header-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.tc-brand {
  text-decoration: none;
  color: var(--cor-primaria);
}
.tc-brand__name {
  font-family: var(--fonte-titulo), sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cor-primaria);
  transition: font-size 0.2s ease;
}
.tc-custom-header.is-shrunk .tc-brand__name {
  font-size: 22px;
}
.tc-brand__tag {
  display: block;
  font-size: 0.7rem;
  color: var(--tc-muted);
  font-weight: 500;
  margin-top: 0.15rem;
}
.tc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: flex-end;
}
.tc-nav a {
  color: var(--tc-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.tc-nav a:hover {
  color: var(--cor-primaria);
}

.tc-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 2px solid var(--cor-primaria);
  border-radius: var(--border-radius);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.tc-nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--cor-primaria);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tc-custom-header.is-nav-open .tc-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tc-custom-header.is-nav-open .tc-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.tc-custom-header.is-nav-open .tc-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.tc-nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .tc-custom-header .tc-header-inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
  }

  .tc-brand {
    flex: 1;
    min-width: 0;
  }

  .tc-brand__tag {
    display: none;
  }

  .tc-nav {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 0.25rem;
  }

  .tc-custom-header.is-nav-open .tc-nav {
    display: block;
  }

  .tc-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .tc-nav li {
    border-top: 1px solid var(--tc-border);
  }

  .tc-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.95rem;
  }
}

/* —— Layout shell —— */
.tc-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 0.75rem 2rem;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .tc-shell {
    padding: 1.5rem 1rem 3rem;
  }
}
.tc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .tc-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 2rem;
  }
}
.tc-main {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Home: mobile-first — 1 coluna; sidebar abaixo até desktop */
.tc-front-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}
@media (min-width: 960px) {
  .tc-front-split {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 1.75rem;
  }
}

.tc-front-main {
  min-width: 0;
  width: 100%;
}

.tc-sidebar--rail {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.tc-sidebar-widget--flush {
  padding-top: 0;
}

.tc-rail-heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--cor-primaria);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tc-side-row-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tc-side-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--tc-border);
  margin: 0;
  min-width: 0;
}

.tc-side-row:first-of-type {
  padding-top: 0;
}

.tc-side-row__thumb {
  display: block;
  width: 96px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  flex-shrink: 0;
}

.tc-side-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tc-side-row__thumb--empty {
  min-height: 72px;
}

.tc-side-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tc-side-row__cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cor-acento);
}

.tc-side-row__title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
}

.tc-side-row__title a {
  color: var(--tc-ink);
  text-decoration: none;
  display: block;
  width: 100%;
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.tc-side-row__title a:hover {
  color: var(--cor-primaria);
}

.tc-side-row__date {
  font-size: 0.72rem;
  color: var(--tc-muted);
}

.tc-side-row-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--tc-muted);
}

.tc-section-kicker {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--cor-primaria);
}

.tc-hero__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffcc80;
  margin-bottom: 0.35rem;
}

.tc-sidebar--rail,
.tc-sidebar {
  order: 10;
}

@media (max-width: 959px) {
  .tc-ticker__marquee {
    animation-duration: 55s;
  }
}

@media (max-width: 640px) {
  .tc-brand__name {
    font-size: 20px;
  }

  .tc-ticker__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .tc-ticker__track {
    width: 100%;
    mask-image: none;
  }

  .tc-hero {
    min-height: 220px;
    margin-bottom: 1.25rem;
  }

  .tc-hero__content {
    padding: 1rem;
  }

  .tc-hero__content h2 {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  }

  .tc-category-pills {
    flex-direction: column;
  }

  .tc-category-pill {
    width: 100%;
    justify-content: space-between;
  }
}

/* —— Cards / grid —— */
.tc-card {
  background: var(--tc-card-bg);
  border-radius: var(--border-radius);
  overflow: visible;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--tc-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.tc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
}

.tc-post-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  flex-shrink: 0;
}
.tc-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 180px;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}
.tc-post-thumb--empty {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.tc-post-thumb--variant-0.tc-post-thumb--empty {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.tc-post-thumb--variant-1.tc-post-thumb--empty {
  background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
}

.tc-post-thumb--variant-2.tc-post-thumb--empty {
  background: linear-gradient(135deg, #558b2f 0%, #33691e 100%);
}

.tc-post-thumb--variant-3.tc-post-thumb--empty {
  background: linear-gradient(135deg, #0277bd 0%, #01579b 100%);
}

.tc-post-thumb--variant-4.tc-post-thumb--empty {
  background: linear-gradient(135deg, #ef6c00 0%, #e65100 100%);
}
.tc-post-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
}
.tc-card__body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.tc-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cor-primaria);
}
.tc-post-title {
  font-size: 1.05rem;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

/* Fallback para markup antigo / widgets */
.tc-card .entry-title,
.tc-card h2,
.tc-card h3,
.card .entry-title,
.card-title,
.post-card .entry-title {
  word-break: normal;
  overflow-wrap: break-word;
  width: 100%;
  min-width: 0;
}

.tc-grid-3,
.cards-grid,
.posts-grid,
.ultimas-noticias {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}
.tc-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}
@media (min-width: 560px) {
  .tc-grid-3,
  .tc-grid-2,
  .cards-grid,
  .posts-grid,
  .ultimas-noticias {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 900px) {
  .tc-grid-3,
  .cards-grid,
  .posts-grid,
  .ultimas-noticias {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.card,
.post-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
/* —— Destaque hero —— */
.tc-hero {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  min-height: 380px;
  background-color: #1b5e20;
}
.tc-hero__media {
  position: absolute;
  inset: 0;
}
.tc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.tc-thumb-fallback,
.thumb-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #2e7d32 0%, #1b5e20 55%, #0d3310 100%);
}
.tc-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.tc-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.75rem;
  color: #fff;
}
.tc-hero__content h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
  color: #fff;
}
.tc-hero__meta {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* —— Editoriais —— */
.tc-editoriais {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}
@media (min-width: 600px) {
  .tc-editoriais {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 381px) and (max-width: 899px) {
  .tc-editorial-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .tc-editoriais {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .tc-editoriais {
    grid-template-columns: repeat(5, 1fr);
  }

  .tc-editorial-card {
    padding: 1.25rem;
    font-size: 1.1rem;
  }
}
.tc-editorial-card {
  display: block;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-family: var(--fonte-titulo), sans-serif;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease;
}
.tc-editorial-card:hover {
  transform: scale(1.02);
  color: #fff;
}
.tc-editorial-card--pec {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
}
.tc-editorial-card--agr {
  background: linear-gradient(135deg, #558b2f, #33691e);
}
.tc-editorial-card--agt {
  background: linear-gradient(135deg, #00695c, #004d40);
}
.tc-editorial-card--drn {
  background: linear-gradient(135deg, #0277bd, #01579b);
}
.tc-editorial-card--mrc {
  background: linear-gradient(135deg, #ef6c00, #e65100);
}
.tc-editorial-card--irr {
  background: linear-gradient(135deg, #00838f, #006064);
}
.tc-editorial-card--gst {
  background: linear-gradient(135deg, #5d4037, #3e2723);
}
.tc-editorial-card--tec {
  background: linear-gradient(135deg, #4527a0, #311b92);
}

.tc-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tc-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tc-border);
  color: var(--cor-primaria);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.tc-category-pill:hover {
  background: var(--cor-secundaria);
  color: var(--cor-primaria);
}

.tc-category-pill__count {
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.75rem;
}

/* —— Sidebar —— */
.tc-sidebar-widget {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: var(--border-radius);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}
.tc-sidebar-widget h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--cor-primaria);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tc-sidebar-widget ul {
  margin: 0;
  padding-left: 1rem;
}
.tc-sidebar-widget a {
  color: var(--tc-ink);
}
.tc-sidebar-widget a:hover {
  color: var(--cor-primaria);
}
.tc-newsletter-placeholder input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 2px solid var(--cor-primaria);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  font-family: inherit;
  background: #fff;
}
.tc-newsletter-placeholder input:focus {
  outline: 2px solid rgba(46, 125, 50, 0.35);
  outline-offset: 1px;
}
.tc-newsletter-placeholder button {
  width: 100%;
  padding: 0.55rem;
  border: 2px solid var(--cor-primaria);
  border-radius: var(--border-radius);
  background: var(--cor-primaria);
  color: #fff;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.85;
}
.tc-ad-slot {
  min-height: 250px;
  background: repeating-linear-gradient(
    -45deg,
    #f5f5f5,
    #f5f5f5 10px,
    #ececec 10px,
    #ececec 20px
  );
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9e9e9e;
  font-size: 0.8rem;
  font-weight: 600;
}

/* —— Footer verde escuro —— */
.tc-custom-footer {
  background: var(--tc-footer-bg);
  color: #e8f5e9;
  margin-top: 3rem;
  padding: 2.5rem 1rem;
}
.tc-custom-footer a {
  color: #fff;
  text-decoration: none;
}
.tc-custom-footer a:hover {
  text-decoration: underline;
  color: #ffcc80;
}
.tc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .tc-footer-inner {
    grid-template-columns: 1fr;
  }
}
.tc-footer-inner h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a5d6a7;
}
.tc-footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tc-footer-inner li {
  margin-bottom: 0.45rem;
}
.tc-footer-base {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: #c8e6c9;
  text-align: center;
}

/* —— Single layout 70/30 —— */
.tc-single-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}
.tc-single-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .tc-single-grid {
    grid-template-columns: 1fr 30%;
    gap: 2rem;
  }
}
.tc-breadcrumb {
  font-size: 0.8rem;
  color: var(--tc-muted);
  margin-bottom: 1rem;
}
.tc-breadcrumb a {
  color: var(--cor-primaria);
  text-decoration: none;
}
.tc-single-content .entry-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--tc-ink);
}
.tc-single-content .entry-meta {
  font-size: 0.85rem;
  color: var(--tc-muted);
  margin-bottom: 1.5rem;
}
.tc-single-content .entry-content {
  font-size: 1.05rem;
  line-height: 1.7;
}
.tc-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tc-border);
}
.tc-related h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--cor-primaria);
}

/* —— Category banner —— */
.tc-cat-hero {
  background: var(--cor-primaria);
  color: #fff;
  padding: 2rem 1rem;
  margin: 0 0 1.5rem;
}
.tc-cat-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.tc-cat-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: #fff;
}
.tc-cat-hero p {
  margin: 0.5rem 0 0;
  opacity: 0.95;
  max-width: 42rem;
}

/* —— Paginação —— */
.tc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  margin: 0 0.15rem;
  padding: 0 0.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--tc-border);
  text-decoration: none;
  color: var(--cor-primaria);
  font-weight: 600;
  background: #fff;
}
.tc-pagination .page-numbers.current,
.tc-pagination .page-numbers:hover {
  background: var(--cor-primaria);
  color: #fff;
  border-color: var(--cor-primaria);
}

/* —— Contato —— */
.tc-contact-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.tc-contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.tc-contact-form input[type="text"],
.tc-contact-form input[type="email"],
.tc-contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--tc-border);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-family: inherit;
}
.tc-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.tc-contact-form button[type="submit"] {
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--fonte-titulo), sans-serif;
}
.tc-contact-form button[type="submit"]:hover {
  background: #27692a;
}
.tc-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.tc-alert--ok {
  background: #e8f5e9;
  border: 1px solid var(--cor-primaria);
  color: #1b5e20;
}
.tc-alert--err {
  background: #ffebee;
  border: 1px solid #e57373;
  color: #b71c1c;
}

/* —— Legal / institucional (padrão InovarInfo) —— */
.tc-legal-wrap {
  margin: 28px auto 36px;
  padding: 0 12px;
}

.tc-legal-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 22px 24px 28px;
  border: 1px solid var(--tc-border, #e0e0e0);
  border-radius: var(--border-radius);
  background: #fff;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.06);
}

.tc-legal-breadcrumb {
  margin-bottom: 14px;
  color: #5f6f63;
  font-size: 13px;
}

.tc-legal-breadcrumb a {
  color: var(--cor-primaria);
}

.tc-legal-content h1 {
  margin: 0 0 8px;
  color: var(--cor-primaria);
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.tc-legal-updated {
  margin: 0 0 18px;
  color: #5f6f63;
  font-size: 13px;
}

.tc-legal-content h2 {
  margin: 22px 0 10px;
  color: #1b5e20;
  font-size: 1.15rem;
}

.tc-legal-content p,
.tc-legal-content li {
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.65;
}

.tc-legal-content a {
  color: var(--cor-primaria);
}

.tc-legal-content ul {
  padding-left: 1.2rem;
}

.tc-legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
}

.tc-legal-table th,
.tc-legal-table td {
  border: 1px solid var(--tc-border, #e0e0e0);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.tc-legal-table th {
  background: #f1f8e9;
  color: #1b5e20;
}

.tc-legal-table code {
  color: var(--cor-primaria);
  font-size: 12px;
}

.tc-legal-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #2e7d32 0%, #43a047 100%);
  cursor: pointer;
}

.tc-legal-btn:hover {
  filter: brightness(1.08);
}

.tc-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 30, 12, 0.96);
  border-top: 1px solid rgba(46, 125, 50, 0.5);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.tc-cookie-banner.is-visible {
  transform: translateY(0);
}

.tc-cookie-banner-inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tc-cookie-banner-text {
  flex: 1 1 280px;
  margin: 0;
  color: #d8ead9;
  font-size: 14px;
  line-height: 1.55;
}

.tc-cookie-banner-text a {
  color: #81c784;
  text-decoration: underline;
}

.tc-cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tc-cookie-btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.tc-cookie-btn-reject {
  background: transparent;
  border-color: #4caf50;
  color: #c8e6c9;
}

.tc-cookie-btn-accept {
  background: linear-gradient(90deg, #2e7d32 0%, #43a047 100%);
  color: #fff;
  border: 0;
}

@media (max-width: 640px) {
  .tc-cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .tc-cookie-banner-text {
    flex-basis: auto;
    font-size: 13px;
  }

  .tc-cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .tc-cookie-btn {
    width: 100%;
    text-align: center;
  }
}
