/* ========== GOOGLE FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&display=swap');

/* ========== VARIABLES ========== */
:root {
  --bg:           #EFE9DD;
  --panel:        #FFFFFF;
  --panel-alt:    #F5F1EA;
  --text:         #1C1C1C;
  --muted:        #6E6E6E;
  --detail:       #4A5568;
  --accent:       #B89452;
  --accent-dark:  #14263B;
  --accent-strong:#14263B;
  --gold-light:   #D2B278;
  --green:        #5F7A4B;
  --border:       rgba(20, 38, 59, 0.14);
  --shadow:       rgba(20, 38, 59, 0.08);
  --serif:        'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:         Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ========== RESET ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; width: 100%; overflow-x: hidden; }

/* ========== BASE ========== */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.page-visible  { opacity: 1; }
body.page-fade-out { opacity: 0; }

/* ========== BANNER ========== */
.banner { width: 100%; background: var(--bg); }
.banner img { width: 100%; height: auto; display: block; }

/* ========== MASTHEAD ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: var(--bg);
  border-bottom: 3px double var(--accent-strong);
}

.site-header::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-strong) 0%, var(--accent) 40%, var(--gold-light) 55%, var(--accent) 70%, var(--accent-strong) 100%);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.admin-bar .banner { margin-top: -32px; }
@media screen and (max-width: 782px) { .admin-bar .banner { margin-top: -46px; } }

.masthead__top {
  width: 100%;
  padding: 6px clamp(16px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead__name {
  width: 100%;
  padding: 14px clamp(16px, 4vw, 40px) 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.masthead__name::before,
.masthead__name::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 28%;
  height: 2px;
}
.masthead__name::before { left: 0;  background: linear-gradient(90deg,  transparent, var(--accent)); }
.masthead__name::after  { right: 0; background: linear-gradient(270deg, transparent, var(--accent)); }

.masthead__name a {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--accent-strong);
  text-decoration: none;
  letter-spacing: -0.025em;
  line-height: 1;
  display: block;
}
.masthead__name em { color: var(--accent); font-style: normal; }

.masthead__nav {
  width: 100%;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.masthead__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; }
.masthead__nav li { display: flex; align-items: stretch; }

.site-header .masthead__nav a,
.site-header .masthead__nav li > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.site-header .masthead__nav a:hover,
.site-header .masthead__nav li > a:hover {
  color: var(--accent-dark);
  background: rgba(20, 38, 59, 0.04);
  border-bottom-color: var(--accent);
}
.site-header .masthead__nav a.active,
.site-header .masthead__nav li.current-menu-item > a,
.site-header .masthead__nav li.current-page-ancestor > a {
  color: var(--accent-dark);
  font-weight: 800;
  border-bottom-color: var(--accent-strong);
}

/* ========== PAGE WRAPPER ========== */
.page {
  width: 100%;
  padding: 40px clamp(16px, 4vw, 40px) 60px;
  position: relative;
  z-index: 1;
}

/* ========== REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== SECTION TITLE ========== */
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 700;
  font-style: normal;
  color: var(--accent-strong);
  padding: 10px 0;
  border-top: 4px double var(--accent-strong);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  letter-spacing: 0.03em;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ========== PAGE HERO ========== */
.page-hero {
  padding: 48px 0 36px;
  border-bottom: 4px double var(--accent-strong);
  margin-bottom: 40px;
}
.page-hero .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}
.page-hero p { color: var(--detail); max-width: 560px; font-size: 1.05rem; line-height: 1.72; }

/* ========== HERO ========== */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 300px;
  gap: 0;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.hero__copy {
  padding: 0 40px 0 0;
  border-right: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.hero__eyebrow {
  display: block;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  width: fit-content;
}
.hero__copy h1 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero__copy p {
  color: var(--detail);
  margin-bottom: 28px;
  font-size: 1.02rem;
  line-height: 1.72;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.hero__copy .cta,
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 10px 20px;
  border: 1.5px solid var(--accent-strong);
  transition: background 0.22s, color 0.22s, gap 0.2s;
}
.hero__copy .cta:hover,
.cta:hover { background: var(--accent-strong); color: var(--bg); gap: 16px; }
.hero__copy .cta::after,
.cta::after { content: '→'; }

.hero__panel { padding-left: 32px; display: grid; gap: 0; }
.panel-card {
  background: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  padding: 0 0 22px;
  margin-bottom: 22px;
}
.panel-card:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.panel-card h2 {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 12px;
  color: var(--accent-strong);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-card h2::before {
  content: '';
  display: inline-block;
  width: 3px; height: 14px;
  background: var(--accent);
  flex-shrink: 0;
}
.panel-card p { color: var(--detail); font-size: 0.92rem; line-height: 1.65; }

.topics { display: grid; gap: 0; }
.topics__item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.18s, padding-left 0.18s;
}
.topics__item::before { content: '›'; color: var(--accent); font-size: 1.2rem; flex-shrink: 0; font-weight: 700; line-height: 1; }
.topics__item:hover { color: var(--accent-dark); padding-left: 6px; }

/* ========== BADGES ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 0;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.badge--politica  { background: rgba(20,38,59,0.1);   color: #14263B; }
.badge--analise   { background: rgba(30,53,80,0.1);   color: #1E3550; }
.badge--energia   { background: rgba(122,94,30,0.1);  color: #7A5E1E; }
.badge--ambiental { background: rgba(61,82,40,0.1);   color: #3D5228; }
.badge--opiniao   { background: rgba(122,94,30,0.1);  color: #7A5E1E; }
.badge--ao-vivo   { background: rgba(20,38,59,0.1);   color: #14263B; }

/* ========== GRID DE ARTIGOS ========== */
.content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* ========== CARD DE ARTIGO ========== */
.article-card {
  padding: 22px 22px 20px;
  border-radius: 0;
  background: var(--panel);
  border: none;
  border-top: 3px solid var(--border);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: background 0.22s, border-top-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.article-card:hover {
  background: var(--panel-alt);
  border-top-color: transparent;
  box-shadow: 0 4px 20px rgba(20,38,59,0.09);
  transform: translateY(-2px);
}
.article-card:hover::before { transform: scaleX(1); }

.article-card .meta {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: 0.74rem; font-weight: 500;
}
.article-card h3 {
  font-family: var(--serif);
  font-size: 1rem; font-weight: 700;
  line-height: 1.3; color: var(--text); letter-spacing: 0;
  text-transform: none;
}
.article-card h3 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card p { color: var(--detail); font-size: 0.92rem; flex: 1; line-height: 1.64; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  font-size: 0.71rem; font-weight: 700;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em;
  margin-top: 4px; width: fit-content;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: gap 0.2s, color 0.2s, border-color 0.2s;
}
.read-more::after { content: '→'; }
.read-more:hover { gap: 12px; color: var(--accent); border-bottom-color: var(--accent); }

.card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 4px;
}
.card-comments-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-strong); text-decoration: none;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  border: 1.5px solid rgba(20,38,59,0.2);
  padding: 5px 10px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.card-comments-link:hover { background: var(--accent-strong); color: var(--bg); border-color: var(--accent-strong); }
.card-comments-link svg { flex-shrink: 0; }

/* ========== ARTIGO EM DESTAQUE ========== */
.featured-article {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  border-radius: 0;
  background: var(--panel);
  border: none;
  border-top: 5px solid var(--accent-strong);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  overflow: visible;
  transition: none;
  position: relative;
}
.featured-article::before { display: none; }
.featured-article:hover { transform: none; box-shadow: none; }

.featured-article__body {
  padding: 28px 32px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--border);
}
.featured-badge { display: inline-flex; align-items: center; gap: 8px; }
.featured-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}
.featured-label {
  font-size: 0.63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent);
}
.featured-article__body h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.01em; color: var(--text);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  text-transform: none;
}
.featured-article__body h3 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.featured-article__body h3 a:hover { color: var(--accent-dark); }
.featured-article__body p { color: var(--detail); font-size: 1.02rem; flex: 1; line-height: 1.72; }
.featured-article__meta {
  color: var(--muted); font-size: 0.75rem; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
}
.featured-article__meta::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1.5px;
  background: var(--accent); flex-shrink: 0;
}
.featured-article__image {
  background: linear-gradient(145deg, #BEB8B0 0%, #A8A29A 50%, #B4AEA8 100%);
  position: relative; overflow: hidden; min-height: 240px;
  display: flex; align-items: center; justify-content: center;
}
.featured-article__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-article__image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(239,233,221,0.18), transparent);
  pointer-events: none;
}

/* ========== SLIDER ========== */
.latest-updates {
  padding: 32px clamp(20px, 3vw, 36px) 24px;
  background: linear-gradient(155deg, #0D1B29 0%, #14263B 55%, #1A3050 100%);
  border-radius: 0;
  border: none;
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.latest-updates::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(255,255,255,0.014) 3px, rgba(255,255,255,0.014) 4px
  );
  pointer-events: none;
}

.section-header {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 16px; margin-bottom: 24px;
  position: relative;
}
.section-label {
  color: var(--gold-light); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.64rem;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px; background: var(--accent);
}
.latest-updates h2 {
  font-family: var(--serif);
  color: #F2EDE3;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.1; margin: 0; font-weight: 800;
  font-style: normal; letter-spacing: -0.015em;
}
.updates-slider {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(8,18,30,0.55);
}
.updates-list { display: flex; transition: transform 0.85s cubic-bezier(0.4,0,0.2,1); }
.update-card {
  min-width: 100%; padding: 28px 24px;
  display: grid; grid-template-columns: minmax(160px, 230px) 1fr;
  gap: 28px; align-items: start;
  text-decoration: none; color: inherit; transition: filter 0.2s;
}
.update-card:hover { filter: brightness(1.07); }
.update-image {
  width: 100%; min-height: 150px; max-height: 170px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12); display: block;
}
.update-image-placeholder {
  width: 100%; min-height: 150px; max-height: 170px;
  background: linear-gradient(135deg, #1a3050, #0d1b29);
  border: 1px solid rgba(255,255,255,0.08);
}
.update-card div { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.update-tag {
  display: inline-flex; padding: 4px 12px;
  border-left: 2px solid var(--gold-light);
  background: rgba(184,148,82,0.18); color: var(--gold-light);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.62rem; font-weight: 700; width: fit-content;
}
.update-card h3 {
  font-family: var(--serif);
  margin: 0; font-size: 1.1rem; color: #F2EDE3;
  font-weight: 700; font-style: normal;
  letter-spacing: 0; line-height: 1.3;
  text-transform: none;
}
.update-card p { margin: 0; color: rgba(242,237,227,0.62); font-size: 0.9rem; line-height: 1.62; font-style: normal; }
.update-status { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.status-dot {
  width: 28px; height: 3px; border-radius: 0;
  background: rgba(255,255,255,0.2);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.status-dot.active { background: var(--accent); transform: scaleX(1.3); }

/* ========== POST ÚNICO ========== */
.single-post { max-width: 760px; margin: 0 auto; padding: 52px 0; }
.single-post__meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px; color: var(--muted); font-size: 0.82rem;
}
.single-post__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800; line-height: 1.18;
  letter-spacing: -0.01em; margin-bottom: 32px; color: var(--text);
  text-transform: none;
}
.single-post__image { overflow: hidden; margin-bottom: 40px; }
.single-post__image img { width: 100%; height: auto; display: block; }

/* ========== CONTEÚDO DO POST ========== */
.entry-content { color: var(--detail); font-size: 1.06rem; line-height: 1.84; }
.entry-content h2 {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 800;
  color: var(--text); margin: 42px 0 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.entry-content h3 { font-family: var(--serif); font-size: 1.22rem; font-weight: 700; color: var(--text); margin: 32px 0 12px; }
.entry-content p  { margin-bottom: 22px; }
.entry-content a  { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul,
.entry-content ol  { margin: 18px 0 18px 26px; }
.entry-content li  { margin-bottom: 10px; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 20px 28px; margin: 32px 0;
  background: rgba(184,148,82,0.07);
  color: var(--accent-strong);
  font-family: var(--serif); font-style: normal;
  font-size: 1.12rem; line-height: 1.7;
}
.entry-content img { max-width: 100%; height: auto; margin: 24px 0; display: block; }
.entry-content figure     { margin: 28px 0; }
.entry-content figcaption { color: var(--muted); font-size: 0.83rem; text-align: center; margin-top: 10px; }
.entry-content .alignleft  { float: left;  margin: 0 24px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 24px; }
.entry-content .aligncenter{ display: block; margin: 20px auto; }
.entry-content .alignnone  { display: block; }
.entry-content .wp-block-embed__wrapper,
.entry-content .wp-video {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden; margin: 28px 0;
}
.entry-content .wp-block-embed__wrapper iframe,
.entry-content .wp-video video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* ========== NAVEGAÇÃO DE POSTS ========== */
.post-navigation {
  display: flex; justify-content: space-between;
  gap: 16px; padding: 36px 0;
  border-top: 1px solid var(--border); margin-top: 52px;
}
.post-navigation a {
  color: var(--accent-strong); text-decoration: none;
  font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.2s;
}
.post-navigation a:hover { color: var(--accent); }

/* ========== PAGINAÇÃO ========== */
.posts-pagination { text-align: center; margin: 36px 0 0; }
.posts-pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.posts-pagination .page-numbers {
  display: inline-flex; align-items: center; padding: 9px 18px;
  border-radius: 0; color: var(--detail); text-decoration: none;
  font-size: 0.8rem; border: 1px solid var(--border); background: var(--panel);
  font-weight: 600; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.posts-pagination .page-numbers.current,
.posts-pagination .page-numbers:hover {
  border-color: var(--accent-strong);
  color: var(--bg); background: var(--accent-strong);
}

/* ========== CATEGORY GRID ========== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin-bottom: 48px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.category-card {
  display: block; padding: 20px 16px;
  background: var(--bg); color: var(--accent-strong); text-decoration: none;
  font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background 0.22s, color 0.22s;
  position: relative; overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s;
}
.category-card:hover { background: var(--accent-strong); color: var(--bg); }
.category-card:hover::before { transform: scaleX(1); }

/* ========== FOOTER ========== */
.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px; align-items: start;
  padding: 40px 0 0;
  border-top: 4px double var(--accent-strong);
  margin-top: 64px;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 900; font-style: normal; font-size: 1.25rem;
  color: var(--accent-strong); margin-bottom: 12px;
  letter-spacing: -0.01em; line-height: 1;
}
.footer-brand em { color: var(--accent); font-style: normal; }
.footer small { display: block; color: var(--muted); font-size: 0.75rem; line-height: 2; }
.footer-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; padding-right: 64px; }
.footer-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer-links a:hover { color: var(--accent-strong); border-bottom-color: var(--accent); }

/* ========== BOTÕES FLUTUANTES ========== */
.back-to-top {
  width: 38px; height: 38px;
  border: 1.5px solid var(--accent-strong); background: var(--bg);
  color: var(--accent-strong); font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; border-radius: 0;
  transition: transform 0.2s, opacity 0.2s, background 0.2s, color 0.2s;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover   { transform: translateY(-3px); background: var(--accent-strong); color: var(--bg); }
.floating-buttons {
  position: fixed; right: 18px; bottom: 28px;
  display: flex; flex-direction: column; gap: 14px; z-index: 999;
}
.float-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; background: none; border: none; text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.float-button:hover { transform: translateY(-2px); opacity: 0.85; }
.float-button.whatsapp  { color: #25D366; }
.float-button.instagram { color: #E1306C; }
.float-button.facebook  { color: #1877F2; }
.float-icon { width: 38px; height: 38px; }

/* grupo de redes sociais */
.social-group {
  display: flex; flex-direction: column; gap: 14px;
}

/* ========== TICKER DE NOTÍCIAS ========== */
.breaking-ticker {
  width: 100%;
  background: var(--accent-strong);
  color: rgba(239,233,221,0.9);
  display: flex; align-items: center;
  overflow: hidden; height: 32px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
  position: sticky; top: var(--header-height, 0); z-index: 199;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--accent); color: #fff;
  padding: 0 14px; height: 100%;
  display: flex; align-items: center;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.62rem;
  white-space: nowrap; margin-right: 0;
}
.ticker-wrap { flex: 1; overflow: hidden; white-space: nowrap; padding: 0 16px; }
.ticker-move {
  display: inline-flex; gap: 80px;
  animation: ticker-scroll 28s linear infinite;
}
.breaking-ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== TEMPO DE LEITURA ========== */
.reading-time {
  color: var(--muted); font-size: 0.72rem;
  display: flex; align-items: center; gap: 6px;
}
.reading-time::before { content: '·'; color: var(--border); }

/* ========== COMPARTILHAMENTO ========== */
.share-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 36px 0;
}
.share-label {
  font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-right: 4px;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; font-size: 0.72rem; font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text); background: var(--panel);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.share-btn--whatsapp:hover  { background: #25D366; color: #fff; border-color: #25D366; }
.share-btn--x:hover         { background: #000;    color: #fff; border-color: #000; }
.share-btn--facebook:hover  { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn--telegram:hover  { background: #2CA5E0; color: #fff; border-color: #2CA5E0; }
.share-btn--linkedin:hover  { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.share-btn--threads:hover   { background: #000;    color: #fff; border-color: #000; }
.share-btn--instagram:hover { background: #E1306C; color: #fff; border-color: #E1306C; }
.share-btn--tiktok:hover    { background: #000;    color: #fff; border-color: #000; }
.share-btn--copy:hover      { background: var(--accent-strong); color: var(--bg); border-color: var(--accent-strong); }
.share-btn--copy.copied     { background: #2ecc71; color: #fff; border-color: #2ecc71; }

/* ========== BIO DO AUTOR ========== */
.author-bio {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px;
  background: var(--panel-alt);
  border-left: 4px solid var(--accent);
  margin: 32px 0;
}
.author-bio__avatar img,
.author-avatar {
  border-radius: 50%; width: 64px; height: 64px;
  object-fit: cover; flex-shrink: 0; display: block;
}
.author-bio__name {
  display: block; font-family: var(--serif);
  font-size: 1rem; font-weight: 800;
  color: var(--accent-strong); margin-bottom: 6px;
}
.author-bio__desc { color: var(--detail); font-size: 0.92rem; line-height: 1.65; }

/* ========== POSTS RELACIONADOS ========== */
.related-posts { margin-top: 52px; }
.related-posts .content { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .related-posts .content { grid-template-columns: 1fr; }
  .share-bar { gap: 6px; }
  .share-btn { padding: 7px 10px; font-size: 0.68rem; }
  .author-bio { flex-direction: column; }
}

/* ========== SINO DE NOTIFICAÇÕES ========== */
.notify-bell {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(20,38,59,0.75);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background 0.22s, border-color 0.22s, transform 0.2s;
  position: relative;
}
.notify-bell svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.85); fill: none; transition: stroke 0.22s; }
.notify-bell:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: scale(1.08); }
.notify-bell:hover svg { stroke: #fff; }

.notify-bell.notif-active { background: var(--accent); border-color: var(--accent); }
.notify-bell.notif-active svg { stroke: #fff; }
.notify-bell.notif-active::after {
  content: '';
  position: absolute; top: 2px; right: 2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71; border: 2px solid var(--bg);
}
.notify-bell.notif-blocked { opacity: 0.45; cursor: not-allowed; }
.notify-bell.notif-blocked:hover { transform: none; background: rgba(20,38,59,0.75); border-color: rgba(255,255,255,0.35); }

/* ========== TOAST DE FEEDBACK ========== */
.notif-toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent-strong);
  color: #EFE9DD;
  font-size: 0.82rem; font-weight: 600;
  padding: 12px 22px;
  border-left: 4px solid var(--accent);
  max-width: min(420px, calc(100vw - 120px));
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  text-align: center;
  box-shadow: 0 4px 20px rgba(20,38,59,0.25);
}
.notif-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.notif-toast--success { border-left-color: #2ecc71; }
.notif-toast--error   { border-left-color: #e74c3c; }

/* ========== RESPONSIVO ========== */
@media (max-width: 860px) {
  .hero                   { grid-template-columns: 1fr; }
  .hero__copy             { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 28px; }
  .hero__panel            { padding-left: 0; padding-top: 28px; }
  .content                { grid-template-columns: 1fr; }
  .featured-article       { grid-template-columns: 1fr; }
  .featured-article__body { border-right: none; }
  .featured-article__image{ min-height: 220px; }
  .update-card            { grid-template-columns: 1fr; }
  .update-image           { min-height: 190px; max-height: 220px; }
  .footer                 { grid-template-columns: 1fr; gap: 24px; }
  .footer-links           { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 16px; padding-right: 64px; }
}
@media (max-width: 640px) {
  .masthead__top  { flex-direction: column; gap: 3px; text-align: center; padding: 6px 16px; }
  .masthead__name { padding: 8px 16px; }
  .masthead__name::before,
  .masthead__name::after { width: 15%; }
  .masthead__nav  { padding: 0 4px; flex-wrap: wrap; justify-content: center; }
  .site-header .masthead__nav a { padding: 7px 8px; font-size: 0.68rem; letter-spacing: 0.06em; }

  /* barra social horizontal no fundo da tela */
  .floating-buttons { position: fixed; right: 12px; bottom: 58px; }
  .social-group {
    position: fixed; bottom: 0; left: 0; right: 0;
    flex-direction: row; flex-wrap: wrap;
    justify-content: center; align-items: center;
    gap: 2px; padding: 6px 8px;
    background: rgba(20,38,59,0.93);
    z-index: 998;
  }
  .social-group .float-icon { width: 30px; height: 30px; }
}
@media (max-width: 480px) {
  .page                   { padding: 20px 12px 36px; }
  .site-header .masthead__nav a { padding: 6px 6px; font-size: 0.64rem; }
  .featured-article__body { padding: 18px 14px; }
  .update-card            { padding: 18px 16px; gap: 16px; }
  .latest-updates         { padding: 22px 16px 18px; }
  .floating-buttons       { right: 10px; bottom: 58px; gap: 8px; }
  .float-icon             { width: 30px; height: 30px; }
  .back-to-top            { width: 30px; height: 30px; font-size: 0.75rem; }
  .notify-bell            { width: 30px; height: 30px; }
  .notify-bell svg        { width: 15px; height: 15px; }
  .content                { gap: 16px; }
  .hero                   { padding: 24px 0; }
  .status-dot             { width: 20px; }
  .article-card:hover     { transform: none; }
}
@media (max-width: 360px) {
  .site-header .masthead__nav a { padding: 5px 5px; font-size: 0.6rem; }
  .page            { padding: 16px 10px 28px; }
}

/* ========== TOGGLE COMENTÁRIOS ========== */
.comments-toggle-wrap {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(20,38,59,0.12);
}
.comments-toggle-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 1.5px solid var(--accent-strong);
  color: var(--accent-strong); font-family: inherit;
  font-size: 0.76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 9px 18px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.comments-toggle-btn:hover,
.comments-toggle-btn[aria-expanded="true"] { background: var(--accent-strong); color: var(--bg); }
.comments-toggle-btn[aria-expanded="true"] svg { stroke: var(--bg); }
.comments-toggle-arrow { font-size: 0.9rem; transition: transform 0.25s; display: inline-block; }
.comments-toggle-btn[aria-expanded="true"] .comments-toggle-arrow { transform: rotate(180deg); }

/* ========== SEÇÃO DE COMENTÁRIOS ========== */
.comments-section { margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--accent); }
.comments-section[hidden] { display: none; }

.comments-section__title {
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-strong); margin: 0 0 18px;
}

.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 18px; border-left: 2px solid rgba(184,148,82,0.35); }

.comment-item { margin: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid rgba(20,38,59,0.08); }

.comment-header { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 9px; }
.comment-avatar__img { width: 42px; height: 42px; border-radius: 50%; display: block; flex-shrink: 0; }
.comment-header__info { flex: 1; min-width: 0; }
.comment-author { display: block; font-size: 0.85rem; font-weight: 700; color: var(--accent-strong); }
.comment-author a { color: inherit; text-decoration: none; }
.comment-date { font-size: 0.7rem; color: var(--muted); }
.comment-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.comment-reply-link, .comment-edit-link a {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent); text-decoration: none; background: none; border: none; cursor: pointer; font-family: inherit;
}
.comment-reply-link:hover { text-decoration: underline; }
.comment-moderation { font-size: 0.75rem; color: var(--muted); margin: 0 0 8px; }
.comment-text { font-size: 0.9rem; line-height: 1.68; color: var(--accent-strong); }
.comment-text p { margin: 0 0 0.4em; }
.comment-text p:last-child { margin-bottom: 0; }

.comments-nav { display: flex; justify-content: space-between; padding: 12px 0; font-size: 0.8rem; font-weight: 700; }
.comments-nav a { color: var(--accent); text-decoration: none; }
.comments-closed { font-size: 0.8rem; color: var(--muted); padding: 12px 0; }

/* ---- Formulário ---- */
#respond { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(20,38,59,0.12); }
.comment-form__heading {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent-strong); margin: 0 0 18px;
}
.comment-form__heading small { font-size: 0.8rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.comment-form__heading small a { color: var(--accent); text-decoration: underline; }

#commentform {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
#commentform .comment-form-author  { grid-column: 1; }
#commentform .comment-form-email   { grid-column: 2; }
#commentform .comment-form-comment,
#commentform .comment-form-cookies-consent,
#commentform .form-submit { grid-column: 1 / -1; }

#commentform p { margin: 0; display: flex; flex-direction: column; gap: 5px; }
#commentform label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-strong);
}
#commentform .required { color: var(--accent); }

#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid rgba(20,38,59,0.18);
  background: #fff; color: var(--accent-strong);
  font-family: inherit; font-size: 0.88rem;
  box-sizing: border-box; outline: none; -webkit-appearance: none;
  transition: border-color 0.2s;
}
#commentform input:focus, #commentform textarea:focus { border-color: var(--accent); }
#commentform textarea { resize: vertical; min-height: 110px; }
#commentform small { font-size: 0.68rem; color: var(--muted); }

#commentform .comment-form-cookies-consent { display: block; }
#commentform .comment-form-cookies-consent label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.76rem; font-weight: 400; text-transform: none;
  letter-spacing: 0; cursor: pointer; flex-direction: row;
}
#commentform .comment-form-cookies-consent input[type="checkbox"] {
  width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--accent); margin-top: 2px;
}

#commentform .form-submit { margin: 0; }
.comment-submit-btn {
  display: inline-block; padding: 11px 28px;
  background: var(--accent-strong); color: var(--bg); border: none;
  font-family: inherit; font-size: 0.76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  cursor: pointer; -webkit-appearance: none;
  transition: background 0.2s, transform 0.15s;
}
.comment-submit-btn:hover { background: var(--accent); transform: translateY(-1px); }

@media (max-width: 560px) {
  #commentform { grid-template-columns: 1fr; }
  #commentform .comment-form-author,
  #commentform .comment-form-email { grid-column: 1; }
}
