/*
Theme Name: Aprova Notícias
Theme URI: https://www.aprovaconcursos.com.br/noticias/
Author: Klaos Lacerda (Nimbus Network)
Author URI: https://nimbusnetwork.com.br/
Description: Portal de notícias oficial do Aprova Concursos. Desenvolvido com foco em performance e otimizado para a preparação de concursos públicos, destacando o que realmente cai na prova. Totalmente compatível com Yoast SEO e plugins padrão do WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aprova-noticias
Tags: news, blog, two-columns, right-sidebar, custom-menu, featured-images, dark-mode, translation-ready
*/

/* Aprova Concursos — Portal de Notícias (Frontend Redesign)
   Brand: Green Core | Light + Dark Mode via [data-theme]
   Architecture: Vanilla JS & Pure CSS (No build step required)
   Development: Nimbus Network
*/

:root {
  /* brand */
  --brand: #19724f;
  --brand-600: #145c3e;
  --brand-700: #0f4630;
  --accent: #149c2e;
  --accent-soft: #dff5e2;

  /* semantic — light (default) */
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #f0f3f1;
  --text: #16201c;
  --text-soft: #5a6b63;
  --border: #e2e8e4;
  --shadow: 0 1px 2px rgba(16,40,30,.06), 0 8px 24px rgba(16,40,30,.06);
  --shadow-lg: 0 12px 40px rgba(16,40,30,.14);
  --header-bg: #ffffff;
  --on-brand: #ffffff;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1200px;
  --gap: 24px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Georgia", "Times New Roman", serif;
}

[data-theme="dark"] {
  --bg: #0d1411;
  --surface: #141d18;
  --surface-2: #1a261f;
  --text: #eaf2ed;
  --text-soft: #9db0a6;
  --border: #243029;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 14px 44px rgba(0,0,0,.5);
  --header-bg: #111a15;
  --accent-soft: #16301f;
  --brand: #2a9d6e;
  --accent: #2fc04f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- States bar (above header) ---------- */
.statebar { background: var(--brand-700); color: rgba(255,255,255,.9); }
.statebar .container { display: flex; align-items: center; gap: 10px; height: 42px; }
.statebar-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.7); flex: none; }
.statebar-label span:last-child { display: inline; }
.states { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.states::-webkit-scrollbar { display: none; }
/* states render as compact buttons; all UFs fit on desktop, scroll on smaller screens */
.states a { white-space: nowrap; font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.92);
  padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  transition: background .15s, color .15s, border-color .15s; }
.states a:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); color: #fff; }
.states a.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(20,156,46,.4); }
.states .state-btn:first-child { font-weight: 800; } /* "Todo Brasil" */

/* ---------- Header ---------- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-main { display: flex; align-items: center; gap: 22px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 38px; width: auto; }
[data-theme="dark"] .logo img { filter: brightness(0) invert(1); opacity: .92; }
.logo-fallback { font-weight: 800; font-size: 21px; color: var(--brand); letter-spacing: -.5px; }
.logo-fallback span { color: var(--accent); }

.theme-toggle {
  height: 44px; width: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; flex: none;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Category nav (with dropdowns) ---------- */
.catnav { border-top: 1px solid var(--border); background: var(--surface); }
.catnav .container { display: flex; align-items: stretch; gap: 2px; }
.catnav-menu { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.catnav-menu li { list-style: none; position: relative; }
/* top-level links */
.catnav-home, .catnav-menu > li > a {
  display: flex; align-items: center; white-space: nowrap; padding: 13px 14px; font-size: 14px;
  font-weight: 600; color: var(--text-soft); border-bottom: 3px solid transparent; }
.catnav-home:hover, .catnav-home.active,
.catnav-menu > li > a:hover, .catnav-menu > li.current-menu-item > a, .catnav-menu > li.current-menu-ancestor > a,
.catnav-menu > li.current-cat > a, .catnav-menu > li:hover > a {
  color: var(--brand); border-bottom-color: var(--accent); }
/* caret on items that have a dropdown */
.catnav-menu > li.menu-item-has-children > a::after {
  content: ""; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
/* dropdown panel */
.catnav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease; z-index: 60; }
.catnav-menu > li:hover > .sub-menu, .catnav-menu > li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0); }
.catnav .sub-menu li a {
  display: block; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.catnav .sub-menu li a:hover, .catnav .sub-menu li.current-menu-item > a {
  background: var(--accent-soft); color: var(--brand-600); }

/* external icon links appended to the menu (Cursos / Blog) */
.catnav-menu .menu-icon > a::before, .drawer-menu .menu-icon > a::before {
  content: ""; width: 15px; height: 15px; margin-right: 7px; flex: none; display: inline-block;
  background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
.menu-icon-cursos > a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5Z'/%3E%3Cpath d='M6 12v5c0 1.1 2.7 3 6 3s6-1.9 6-3v-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5Z'/%3E%3Cpath d='M6 12v5c0 1.1 2.7 3 6 3s6-1.9 6-3v-5'/%3E%3C/svg%3E"); }
.menu-icon-blog > a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11a9 9 0 0 1 9 9'/%3E%3Cpath d='M4 4a16 16 0 0 1 16 16'/%3E%3Ccircle cx='5' cy='19' r='1.5' fill='%23000' stroke='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11a9 9 0 0 1 9 9'/%3E%3Cpath d='M4 4a16 16 0 0 1 16 16'/%3E%3Ccircle cx='5' cy='19' r='1.5' fill='%23000' stroke='none'/%3E%3C/svg%3E"); }

/* ---------- Hamburger + mobile drawer ---------- */
.nav-toggle { display: none; flex: none; width: 44px; height: 44px; border: 1px solid var(--border);
  background: var(--surface-2); border-radius: 12px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle:hover { border-color: var(--brand); }
body.drawer-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.drawer-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.drawer-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(8,20,14,.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s; z-index: 190; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }

.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px);
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: none;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s; z-index: 200;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
body.drawer-open .mobile-drawer { transform: translateX(0); box-shadow: -12px 0 40px rgba(8,20,14,.25); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.drawer-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--brand); }
.drawer-close { width: 38px; height: 38px; border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.drawer-close:hover { border-color: var(--brand); color: var(--brand); }
.drawer-search { padding: 16px 20px 4px; }
.drawer-nav { padding: 8px 12px 4px; }
.drawer-home, .drawer-menu { list-style: none; margin: 0; padding: 0; }
.drawer-menu, .drawer-menu .sub-menu { display: flex; flex-direction: column; }
.drawer-menu li { list-style: none; }
.drawer-home, .drawer-menu > li > a { display: block; padding: 13px 12px; font-size: 15.5px; font-weight: 600; color: var(--text); border-radius: 10px; }
.drawer-home:hover, .drawer-menu a:hover, .drawer-menu .current-menu-item > a, .drawer-menu .current-cat > a { background: var(--accent-soft); color: var(--brand-600); }
/* nested categories: indented, always visible on mobile */
.drawer-menu .sub-menu { margin: 0 0 6px 4px; padding-left: 12px; border-left: 2px solid var(--border); }
.drawer-menu .sub-menu li a { display: block; padding: 9px 12px; font-size: 14px; font-weight: 500; color: var(--text-soft); border-radius: 8px; }
.drawer-menu .sub-menu li a:hover { background: var(--accent-soft); color: var(--brand-600); }
.drawer-menu > li.menu-item-has-children > a { font-weight: 700; }
.drawer-states { padding: 14px 20px 28px; margin-top: auto; border-top: 1px solid var(--border); }
.drawer-subtitle { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-soft); margin-bottom: 12px; }
.drawer-states .states { flex-wrap: wrap; overflow: visible; gap: 6px; }
.drawer-states .states a { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.drawer-states .states a:hover { background: var(--accent-soft); color: var(--brand-600); }
.drawer-states .states a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.layout { display: flex; align-items: flex-start; gap: 40px; padding: 34px 0 60px; }
.layout > :not(.sidebar) { flex: 1 1 0; min-width: 0; } /* content column grows, can shrink */
.section-title {
  display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .8px; color: var(--text); margin: 0 0 18px;
}
.section-title::before { content: ""; width: 5px; height: 20px; background: var(--accent); border-radius: 3px; }

/* ---------- Hero (slider + numbered index) ---------- */
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--gap); margin: 30px 0 36px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 470px; box-shadow: var(--shadow-lg); background: #0b1812; }
.hero-main .slide { position: absolute; inset: 0; display: flex; align-items: flex-end; color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.hero-main .slide.on { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.hero-main .slide::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,24,16,.95) 6%, rgba(8,24,16,.55) 42%, rgba(8,24,16,.05) 78%); }
.slide-inner { position: relative; z-index: 2; padding: 34px 36px 56px; max-width: 90%; }
.s-eye { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.s-fresh { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 5px 11px; border-radius: 999px; }
.sf-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.s-sec { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.85); }
.s-title { font-size: 32px; line-height: 1.16; font-weight: 800; margin: 0 0 12px; letter-spacing: -.4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-lead { color: rgba(255,255,255,.82); font-size: 15px; margin: 0 0 18px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-foot { display: flex; align-items: center; gap: 16px; }
.s-datepill { font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(255,255,255,.16);
  backdrop-filter: blur(4px); padding: 7px 14px; border-radius: 999px; }
.btn-hm { font-size: 13.5px; font-weight: 800; color: #fff; }
.hero-main .slide:hover .btn-hm { text-decoration: underline; }
.hero-dots { position: absolute; z-index: 4; left: 36px; bottom: 26px; display: flex; gap: 8px; }
.hdot { width: 26px; height: 5px; border-radius: 3px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: background .2s; }
.hdot.on { background: var(--accent); }

.hero-index { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px 6px; display: flex; flex-direction: column; }
.hi-head { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--brand);
  padding: 12px 14px 10px; display: flex; align-items: center; gap: 8px; }
.hi-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hi-item { display: flex; gap: 13px; padding: 13px 14px; border-radius: 10px; align-items: flex-start;
  border-left: 3px solid transparent; transition: background .15s; }
.hi-item:hover, .hi-item.on { background: var(--surface-2); border-left-color: var(--accent); }
.hi-num { font-size: 19px; font-weight: 800; color: var(--border); line-height: 1.1; flex: none; transition: color .15s; }
.hi-item.on .hi-num, .hi-item:hover .hi-num { color: var(--accent); }
.hi-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hi-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--brand); }
.hi-title { font-size: 14px; font-weight: 700; line-height: 1.32; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hi-date { font-size: 11.5px; color: var(--text-soft); }

.empty { color: var(--text-soft); padding: 30px 0; }

.card.mini { display: flex; flex-direction: column; }
.card.mini .thumb { aspect-ratio: 16/9; overflow: hidden; }
.card.mini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card.mini .body { padding: 16px 18px; }
.card.mini h3 { font-size: 16.5px; line-height: 1.3; margin: 8px 0 0; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* chips + meta */
.chip { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; padding: 4px 10px; border-radius: 999px; }
.card.feature .chip { background: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.meta { font-size: 12.5px; color: var(--text-soft); display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ---------- News grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.news-row { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.news-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-row .thumb { flex: none; width: 132px; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; }
.news-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row h3 { font-size: 15.5px; line-height: 1.32; margin: 7px 0 0; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.load-more { display: block; margin: 32px auto 0; padding: 13px 30px; border-radius: 999px; border: 1px solid var(--brand);
  background: transparent; color: var(--brand); font-weight: 700; font-size: 14px; cursor: pointer; }
.load-more:hover { background: var(--brand); color: #fff; }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 28px; align-content: start; flex: 0 1 300px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rank li { display: flex; gap: 14px; align-items: flex-start; }
.rank .num { font-size: 22px; font-weight: 800; color: var(--accent); line-height: 1; flex: none; width: 26px; }
.rank a { font-size: 14.5px; font-weight: 600; line-height: 1.34; }
.rank a:hover { color: var(--brand); }
.rank .meta { margin-top: 4px; font-size: 12px; gap: 6px; }
/* keep the category label small in the ranking (don't inherit .rank a's 14.5px) */
.rank .meta .chip { font-size: 10.5px; font-weight: 700; padding: 2px 8px; line-height: 1.5; white-space: nowrap; }
.rank .meta > span { white-space: nowrap; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text-soft); font-weight: 600; }
.tags a:hover { background: var(--accent-soft); color: var(--brand-600); border-color: transparent; }

.cta { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; text-align: center; }
.cta h4 { margin: 0 0 6px; font-size: 18px; }
.cta p { margin: 0 0 16px; font-size: 13.5px; opacity: .9; }
.cta button { width: 100%; border: 0; border-radius: 10px; padding: 12px; background: #fff; color: var(--brand-600);
  font-weight: 800; font-size: 14px; cursor: pointer; }

/* ---------- Article page (two-column single) ---------- */
/* sidebar flows in normal order on the article page (no sticky/fixed feel) */
.breadcrumb { font-size: 12px; color: var(--text-soft); margin-bottom: 18px; line-height: 1.7;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }
.breadcrumb .bc-sep { opacity: .45; margin: 0 5px; }

article.single { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px 38px 38px; }
.single-cats { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.single-cats .chip { font-size: 11.5px; }
.single-title { font-size: 36px; line-height: 1.15; font-weight: 800; margin: 0 0 14px; letter-spacing: -.6px; }
.single-lede { font-size: 19px; color: var(--text-soft); line-height: 1.5; margin: 0 0 20px; font-weight: 500; }
.single-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: var(--text-soft);
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.single-meta .sm-author { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text); }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar { border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.single-meta .dsep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.sm-share { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.sm-share:hover { border-color: var(--brand); color: var(--brand); }

.single-hero { margin: 26px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.single-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.single-hero figcaption { font-size: 12.5px; color: var(--text-soft); padding: 10px 14px; background: var(--surface-2); }

.post-content p { font-size: 18px; line-height: 1.78; margin: 0 0 22px; }
.post-content blockquote { margin: 28px 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--accent);
  font-size: 21px; line-height: 1.5; font-weight: 600; color: var(--text); font-style: italic; }
.source-note { margin-top: 26px; padding: 16px 18px; background: var(--surface-2); border-left: 4px solid var(--accent);
  border-radius: 8px; font-size: 13.5px; color: var(--text-soft); }
.source-note a { color: var(--brand); font-weight: 600; }

.author-box { display: flex; gap: 18px; margin-top: 34px; padding: 24px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius); }
.ab-av { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.ab-eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-soft); font-weight: 700; }
.ab-name { display: block; font-size: 17px; margin: 2px 0 8px; }
.ab-bio { font-size: 14px; line-height: 1.55; color: var(--text-soft); margin: 0 0 10px; }
.ab-link { font-size: 13.5px; font-weight: 700; color: var(--brand); }
.ab-link:hover { text-decoration: underline; }

/* prev/next posts: side by side on desktop (the_post_navigation markup) */
.single-nav { margin-top: 28px; }
.single-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.single-nav .nav-previous a, .single-nav .nav-next a { display: block; height: 100%; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, transform .15s; }
.single-nav .nav-previous a:hover, .single-nav .nav-next a:hover { border-color: var(--brand); transform: translateY(-2px); }
.single-nav .nav-next { text-align: right; }
.single-nav span { font-size: 12.5px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 6px; }
.single-nav b { font-size: 14.5px; line-height: 1.35; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.related { margin-top: 40px; }
.related .grid { grid-template-columns: repeat(2,1fr); }

/* sidebar related list + lead widget (dark header + card body, igual ao blog) */
.lead-widget { background: var(--brand-700); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lw-top { padding: 22px 20px 18px; text-align: center; position: relative; overflow: hidden; }
.lw-top::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(95,196,140,.1) 1.5px, transparent 1.5px); background-size: 24px 24px; }
/* topo tem fundo escuro nos 2 temas: ícone/título sempre brancos */
.lw-icon { display: block; margin: 0 auto 8px; position: relative; z-index: 1; color: #fff; width: 26px; }
.lw-title { font-size: 16px; color: #fff; line-height: 1.3; position: relative; z-index: 1; margin: 0 0 6px; font-weight: 700; }
.lw-title b { color: #5fc48c; font-weight: 800; }
.lw-sub { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.5; position: relative; z-index: 1; margin: 0; }
.lw-body { background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.lw-btn { display: block; width: 100%; padding: 10px; border-radius: 999px; border: none;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .18s; }
.lw-btn:hover { background: var(--brand-600); }

/* Newsletter integrada ao Mautic (form id 1) — reveste as classes .mauticform-* com o
   mesmo visual do .lw-* (input pill, botão verde, dark/light, responsivo). A dupla
   seletora abaixo (3 classes + elemento) vence o CSS default do embed sem precisar de
   !important, mesma técnica usada no blog de referência. */
.lead-widget .mauticform_wrapper { max-width: none; margin: 0; padding: 0; }
.lead-widget .mauticform-innerform, .lead-widget .mauticform-page-wrapper { display: flex; flex-direction: column; gap: 9px; }
.lead-widget .mauticform-row { display: block; margin: 0; }
/* rótulos ficam só para leitores de tela (o campo já funciona como placeholder) */
.lead-widget .mauticform-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lead-widget .mauticform-input,
.lead-widget .mauticform-selectbox { width: 100%; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 13.5px; line-height: 1.3;
  outline: none; box-shadow: none; box-sizing: border-box; transition: border-color .18s; }
.lead-widget .mauticform-selectbox { cursor: pointer; -webkit-appearance: none; appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 13px; }
.lead-widget .mauticform-input:focus,
.lead-widget .mauticform-selectbox:focus { border-color: var(--brand); }
.lead-widget .mauticform-input::placeholder { color: var(--text-soft); }
.lead-widget .mauticform-button-wrapper { margin: 0; display: block; }
/* 3 classes + elemento vence o CSS do embed (.mauticform-button-wrapper .mauticform-button.btn-ghost) */
.lead-widget .mauticform-button-wrapper button.mauticform-button,
.lead-widget .mauticform-button-wrapper button.mauticform-button.btn-ghost { display: block; width: 100%; padding: 10px;
  border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--font); font-weight: 700;
  font-size: 13.5px; line-height: 1.3; border: none; cursor: pointer; transition: background .18s; }
.lead-widget .mauticform-button-wrapper button.mauticform-button:hover { background: var(--brand-600); }
.lead-widget .mauticform-errormsg { display: block; color: #e05252; font-size: 11px; margin-top: 3px; }
.lead-widget .mauticform-error { color: #e05252; font-size: 12px; margin-bottom: 8px; }
.lead-widget .mauticform-message { color: var(--brand); font-size: 12.5px; text-align: center; line-height: 1.5; padding: 4px 0; }
.lead-widget .mauticform-post-success { padding: 8px 0; text-align: center; }
.rel-list { display: grid; gap: 14px; }
.rel-row { display: flex; gap: 12px; align-items: flex-start; }
.rel-row .thumb { width: 76px; height: 58px; flex: none; border-radius: 9px; overflow: hidden; }
.rel-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-row .rel-cat { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--brand); display: block; }
.rel-row .rel-title { font-size: 13.5px; font-weight: 700; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0; }
.rel-row:hover .rel-title { color: var(--brand); }
.rel-row .rel-date { font-size: 11.5px; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #0f4630; color: rgba(255,255,255,.6); padding: 52px 24px 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 28px; max-width: 1680px; margin: 0 auto 36px; }
.footer-logo { display: block; line-height: 0; }
.footer-logo-img { height: 36px; width: auto; display: block; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .92; }
.brand-desc { font-size: 13.5px; line-height: 1.65; margin: 12px 0 18px; max-width: 320px; }
.socials { display: flex; gap: 7px; flex-wrap: wrap; }
.soc { width: 33px; height: 33px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); text-decoration: none;
  transition: background .15s, border-color .15s, color .15s; }
.soc svg { width: 15px; height: 15px; display: block; }
.soc:hover { background: rgba(95,196,140,.14); border-color: var(--accent); color: #fff; }
.footer-press { margin-top: 22px; }
.footer-press h4 { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.3); margin: 0 0 9px; }
.footer-press p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.55); margin: 0; max-width: 340px; }
.footer-press a { color: #5fc48c; text-decoration: none; font-weight: 600; word-break: break-word; }
.footer-press a:hover { color: #fff; }
.fcol h4 { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.3); margin: 0 0 13px; }
.flinks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.flinks li { list-style: none; }
.flinks a { display: inline; padding: 0; font-size: 13.5px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
.flinks a:hover { color: var(--accent); }
.footer-bottom { max-width: 1680px; margin: 0 auto; display: flex; align-items: center; justify-content: center; text-align: center;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12.5px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ---------- Responsive ---------- */
/* switch the horizontal menu for a hamburger + slide drawer on small screens */
@media (max-width: 780px) {
  .catnav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 980px) {
  .layout { flex-direction: column; }
  .layout > :not(.sidebar), .sidebar { flex: 1 1 auto; width: 100%; }
  .hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 400px; }
  .related .grid { grid-template-columns: repeat(2,1fr); }
  .article-layout .sidebar { position: static; }
}
@media (max-width: 640px) {
  .header-main { height: 64px; gap: 10px; }
  /* search is hidden here, so push the toggles to the right edge */
  .header-main .theme-toggle { margin-left: auto; }
  .grid, .related .grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 340px; }
  .s-title { font-size: 23px; }
  .slide-inner { padding: 24px 22px 48px; }
  article.single { padding: 22px 20px 28px; }
  .single-title { font-size: 26px; }
  .single-meta { font-size: 12px; gap: 5px 8px; }
  .single-hero img { aspect-ratio: 3 / 2; } /* a bit taller/bigger on phones */
  .post-content p { font-size: 17px; }
  .single-nav .nav-links { grid-template-columns: 1fr; }
  .single-nav .nav-next { text-align: left; }
  .site-footer { padding: 36px 16px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  /* share: label on its own line, buttons in a tidy row below */
  .share-label { flex-basis: 100%; margin-bottom: 4px; }
  .share-btn { width: 40px; height: 40px; }
}

/* ============================================================
   WordPress theme additions (archive / author / search / 404)
   ============================================================ */

/* feed grid + cards (archive, author, search, blog index) */
.page-head { margin: 30px 0 22px; }
.page-head .eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .8px; }
.page-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin: 6px 0 8px; }
.page-head p { color: var(--text-soft); margin: 0; max-width: 640px; }
/* category/tag description: same rich typography as the article body, not the muted one-liner above */
.page-head .archive-desc { margin-top: 6px; }
.page-head .archive-desc p { color: var(--text); margin: 0 0 22px; max-width: none; }
.page-head .archive-desc p:last-child { margin-bottom: 0; }

.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.feed-card { min-width: 0; }
/* Reels (Shorts) block in the main column */
.aprova-shorts-widget { margin-top: 34px; }
.feed-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.feed-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fc-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); display: block; }
.fc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fc-thumb.is-empty { display: grid; place-items: center; color: var(--border); }
.fc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fc-title { font-size: 17px; line-height: 1.32; font-weight: 700; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card:hover .fc-title { color: var(--brand); }
.fc-excerpt { font-size: 13.5px; color: var(--text-soft); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-soft); }
.fc-foot .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* author archive header */
.author-hero { display: flex; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; margin: 30px 0 26px; }
.author-hero .ab-av { width: 84px; height: 84px; font-size: 28px; }
.author-hero h1 { font-size: 28px; font-weight: 800; margin: 0 0 4px; }
.author-hero .ah-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); }
.author-hero .ah-bio { color: var(--text-soft); font-size: 14.5px; line-height: 1.55; margin: 6px 0 0; max-width: 620px; }
.author-hero .ah-count { font-size: 13px; color: var(--text-soft); margin-top: 8px; font-weight: 600; }

/* pagination (the_posts_pagination / paginate_links) */
.navigation.pagination { margin: 36px 0 10px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; }
a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-numbers.dots { border: 0; background: transparent; }

/* search form */
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; height: 46px; border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 999px; padding: 0 20px; color: var(--text); font-size: 15px; font-family: inherit; }
.search-form .search-field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-form .search-submit { height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--brand);
  color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.search-form .search-submit:hover { background: var(--brand-600); }
.search-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 30px; margin: 30px 0 26px; }

/* 404 */
.error-404 { text-align: center; padding: 70px 20px; max-width: 620px; margin: 0 auto; }
.error-404 .big { font-size: 110px; font-weight: 800; line-height: 1; color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-404 h1 { font-size: 26px; margin: 6px 0 10px; }
.error-404 p { color: var(--text-soft); margin: 0 0 24px; }
.error-404 .search-form { max-width: 460px; margin: 0 auto 18px; }
.btn-primary { display: inline-block; padding: 13px 28px; border-radius: 999px; background: var(--brand); color: #fff;
  font-weight: 700; font-size: 14px; }
.btn-primary:hover { background: var(--brand-600); }

/* WordPress core / editor alignments + captions */
article.single, .post-content { min-width: 0; overflow-wrap: break-word; word-wrap: break-word; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin-inline: auto; }
.post-content iframe, .post-content embed, .post-content object, .post-content video { max-width: 100%; }
/* keep figures (incl. legacy .wp-caption with inline width) inside the column and centered */
.post-content figure, .post-content .wp-caption { max-width: 100% !important; width: auto !important; margin-left: auto; margin-right: auto; text-align: center; }
.post-content figure img, .post-content .wp-caption img { width: 100%; box-shadow: var(--shadow); }
/* wide tables scroll inside the column instead of stretching it (fixes broken sidebar) */
.post-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.post-content .wp-block-table, .post-content figure.wp-block-table { max-width: 100%; overflow-x: auto; }
.post-content pre { overflow-x: auto; max-width: 100%; }
.post-content .alignleft { float: left; margin: 6px 24px 16px 0; }
.post-content .alignright { float: right; margin: 6px 0 16px 24px; }
.post-content .aligncenter { display: block; margin: 18px auto; }
.post-content figure { margin: 24px auto; }
.post-content figcaption, .wp-caption-text { font-size: 13px; color: var(--text-soft); text-align: center; margin-top: 8px; }
.post-content h2 { font-size: 25px; margin: 36px 0 14px; font-weight: 600; color: var(--brand); letter-spacing: -.2px; }
.post-content h3 { font-size: 21px; margin: 28px 0 12px; font-weight: 700; }
.post-content ul, .post-content ol { font-size: 17.5px; line-height: 1.75; padding-left: 24px; margin: 0 0 22px; }
.post-content a { color: var(--brand); text-decoration: underline; }
.post-content a:hover { color: var(--brand-600); }
.sticky .fc-title::before { content: "★ "; color: var(--accent); }

/* ---------- Índice / table of contents (compacto e discreto) ---------- */
.aprova-toc, .post-content .yoast-table-of-contents {
  background: transparent; border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 9px 14px; margin: 0 0 20px; max-width: 440px; font-size: 12.5px; }
.aprova-toc .aprova-toc-title, .post-content .yoast-table-of-contents h2 {
  display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text-soft); margin: 0 0 6px; }
.aprova-toc-icon { color: var(--accent); font-size: 10px; }
.aprova-toc ol, .post-content .yoast-table-of-contents ul {
  margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.post-content .yoast-table-of-contents ul ul { margin: 2px 0 2px 14px; }
.aprova-toc li { counter-increment: toc; }
.aprova-toc li a, .post-content .yoast-table-of-contents a {
  display: inline-block; font-size: 12.5px; line-height: 1.4; color: var(--text-soft); text-decoration: none; }
.aprova-toc li a::before { content: counter(toc) ". "; color: var(--accent); font-weight: 700; }
.aprova-toc li a:hover, .post-content .yoast-table-of-contents a:hover { color: var(--brand); text-decoration: underline; }
.aprova-toc .toc-h3 { padding-left: 12px; }
.aprova-toc .toc-h3 a::before { content: "– "; }
.aprova-toc .toc-h4 { padding-left: 24px; }
.aprova-toc .toc-h4 a::before { content: "· "; }
.post-content .yoast-table-of-contents li::marker { content: none; }
@media (max-width: 640px) { .aprova-toc, .post-content .yoast-table-of-contents { max-width: 100%; } }
/* keep anchored sections clear of the sticky header */
.post-content h2[id], .post-content h3[id], .post-content h4[id] { scroll-margin-top: 96px; }

/* ---------- Share buttons ---------- */
.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 28px 0 4px;
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--text-soft); margin-right: 4px; }
.share-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: #fff; border: 0; cursor: pointer; padding: 0; transition: transform .15s, filter .15s; }
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share-btn.s-x { background: #000; }
[data-theme="dark"] .share-btn.s-x { background: #1a1a1a; border: 1px solid var(--border); }
.share-btn.s-facebook { background: #1877f2; }
.share-btn.s-whatsapp { background: #25d366; }
.share-btn.s-copy { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.share-btn.s-copy:hover { color: var(--brand); border-color: var(--brand); }
.share-btn.s-copy.copied { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 34px; }
.comments-area .section-title { margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.comment-list .children { list-style: none; margin: 16px 0 0; padding-left: 26px; display: grid; gap: 16px; border-left: 2px solid var(--border); }
.comment-list .comment-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; }
.comment-author.vcard { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
/* avatar: real photo if available, generic icon otherwise — always rounded */
.comment-author .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--surface-2); border: 1px solid var(--border); }
.comment-author .fn { font-weight: 800; color: var(--brand); font-style: normal; font-size: 15px; line-height: 1.2; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.comment-metadata a { color: inherit; }
.comment-metadata a:hover { color: var(--brand); }
.comment-content { font-size: 15px; line-height: 1.65; color: var(--text); }
.comment-content p { margin: 0 0 10px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-awaiting-moderation { font-size: 12.5px; color: var(--accent); font-style: italic; }
.reply { margin-top: 8px; }
.comment-reply-link { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--brand);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; }
.comment-reply-link:hover { background: var(--accent-soft); border-color: transparent; }
.no-comments { color: var(--text-soft); }

/* comment form */
.comment-respond { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 24px 26px; }
.comment-reply-title { font-size: 19px; font-weight: 800; color: var(--brand); margin: 0 0 6px; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--text-soft); margin: 0 0 16px; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; max-width: 100%; box-sizing: border-box; font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft); }
.comment-form-author, .comment-form-email, .comment-form-url { }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); }
.comment-form-cookies-consent input { width: auto; }
.comment-form .form-submit { margin: 0; }
.comment-form .submit, .comment-form #submit { display: inline-block; border: 0; cursor: pointer;
  padding: 13px 28px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; }
.comment-form .submit:hover, .comment-form #submit:hover { background: var(--brand-600); }
.required { color: var(--accent); }
@media (min-width: 560px) {
  .comment-form { grid-template-columns: 1fr 1fr; }
  .comment-form-comment, .comment-notes, .comment-form-cookies-consent, .form-submit, .comment-form-url { grid-column: 1 / -1; }
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; border-radius: 8px; }

@media (max-width: 980px) {
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .feed-grid { grid-template-columns: 1fr; }
  .author-hero { flex-direction: column; text-align: center; }
  .page-head h1, .author-hero h1 { font-size: 24px; }
  .error-404 .big { font-size: 84px; }
}

/* header search sizing (reuses .search-form) */
.header-main .search-form { margin-left: auto; flex: 0 1 360px; }
.header-main .search-form .search-field { height: 44px; }
.header-main .search-form .search-submit { height: 44px; width: 44px; padding: 0; }
@media (max-width: 640px) { .header-main .search-form { display: none; } }

/* normalize wp_list_categories markup for the states bar */
.states > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.states { align-items: stretch; }
.states li { list-style: none; display: inline-flex; }
.states li > a { display: inline-flex; align-items: center; }
