/*
Theme Name: NERY — Notícias Compiladas
Theme URI: https://github.com/euneryadv/nery-news-compiler
Author: Nery
Author URI: https://www.linkedin.com/in/euneryadv/
Description: Tema editorial para o blog do Nery — compilados jornalísticos diários sobre direito e tecnologia, com fontes numeradas e verificáveis, mais posts/artigos manuais. Compilados são um tipo de conteúdo próprio publicável via REST API; Posts são escritos à mão. Serif Newsreader + Hanken Grotesk, papel creme quente, detalhes em OrangeRed, marca NE/RY.
Version: 3.3.6
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nery-news-compiler
Tags: blog, news, two-columns, editorial, custom-menu, featured-images, translation-ready, custom-post-type
*/

/* ============================================================
   News Compiler — Editorial system  ·  "Blog | Nery"
   ------------------------------------------------------------
   Serif (Newsreader) for titles + body  — Perplexity-like
   Sans  (Hanken Grotesk) for tags / labels / sources / nav
   Warm cream paper · dark two-bar header & footer
   Details in OrangeRed (#FF4500) + a restrained lime accent
   ============================================================ */

/* Fontes Google são enfileiradas em functions.php (nc_assets). */

:root {
  /* ---- Surfaces & ink (warm cream, ref palette) ---- */
  --paper:      oklch(0.972 0.008 78);   /* floral/shell white          */
  --paper-2:    oklch(0.945 0.010 76);   /* off-white panel  #efe8e2     */
  --paper-3:    oklch(0.918 0.009 80);   /* warm cloud       #e6e4de     */
  --edge:       oklch(0.872 0.012 78);   /* hairline borders             */
  --edge-soft:  oklch(0.905 0.010 78);

  --dark:       oklch(0.225 0.004 60);   /* header/footer    #1e1e1e     */
  --dark-2:     oklch(0.275 0.005 60);   /* second dark bar  #232023     */
  --on-dark:    oklch(0.945 0.010 82);   /* cream text on dark           */
  --on-dark-soft: oklch(0.74 0.010 82);
  --on-dark-faint: oklch(0.60 0.008 82);

  --ink:        oklch(0.275 0.012 58);   /* body text                    */
  --ink-soft:   oklch(0.430 0.012 60);   /* secondary                    */
  --ink-faint:  oklch(0.585 0.011 62);   /* meta / tertiary              */

  /* ---- Detail accents (ref: OrangeRed + lime) ---- */
  --accent:     oklch(0.645 0.224 33);   /* OrangeRed  #FF4500           */
  --accent-deep: oklch(0.560 0.205 32);
  --accent-wash: oklch(0.645 0.224 33 / 0.10);
  --lime:       oklch(0.872 0.168 128);  /* (158,235,71) — used sparingly*/

  /* ---- Category hues (harmonized: shared L & C, hue varies) ---- */
  --cat-l: 0.560; --cat-c: 0.108;
  --cat-ia:        oklch(var(--cat-l) var(--cat-c) 285);  /* indigo  */
  --cat-dados:     oklch(var(--cat-l) var(--cat-c) 150);  /* green   */
  --cat-ciber:     oklch(var(--cat-l) var(--cat-c) 30);   /* red-org */
  --cat-regulacao: oklch(var(--cat-l) var(--cat-c) 250);  /* blue    */
  --cat-fintech:   oklch(var(--cat-l) var(--cat-c) 195);  /* teal    */
  --cat-tech:      oklch(var(--cat-l) var(--cat-c) 75);    /* ochre   */
  --cat-legal:     oklch(var(--cat-l) var(--cat-c) 330);  /* magenta */

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(18px, 4.5vw, 56px);
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.012em; line-height: 1.08; text-wrap: balance; }

/* faint paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, oklch(0.45 0.02 70 / 0.013) 3px 4px);
  mix-blend-mode: multiply;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.rule      { border: 0; border-top: 1px solid var(--edge); margin: 0; }
.rule-ink  { border: 0; border-top: 2px solid var(--ink); margin: 0; }
/* short separator line (len.adv.br) — divides title block from body */
.rule-short { width: 56px; height: 3px; background: var(--accent); border: 0; margin: 0; }

/* ---- Category tag (SANS) ---- */
[data-cat="inteligencia-artificial"] { --cat: var(--cat-ia); }
[data-cat="protecao-de-dados"]       { --cat: var(--cat-dados); }
[data-cat="ciberseguranca"]          { --cat: var(--cat-ciber); }
[data-cat="regulacao-tech"]          { --cat: var(--cat-regulacao); }
[data-cat="tecnologia-financeira"]   { --cat: var(--cat-fintech); }
[data-cat="tecnologia"]              { --cat: var(--cat-tech); }
[data-cat="legaltech"]               { --cat: var(--cat-legal); }

.cat-tag {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cat, var(--ink-soft));
  display: inline-flex; align-items: center; gap: 8px; line-height: 1;
}
.cat-tag::before {
  content: ""; width: 8px; height: 8px; flex: none;
  background: var(--cat, var(--ink-soft)); border-radius: 1px; transform: rotate(45deg);
}

/* meta line (SANS) */
.meta {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.005em; color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); opacity: 0.6; }
.meta b { color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   Header — two dark bars
   ============================================================ */
.bar-dark { background: var(--dark); color: var(--on-dark); position: relative; z-index: 3; }

.util {
  background: var(--dark-2);
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  color: var(--on-dark-soft);
}
.util .wrap { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.util .date { letter-spacing: 0.04em; text-transform: uppercase; }
.util .spacer { flex: 1; }
.util .live { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; font-size: 11.5px; }
.util .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s ease-out infinite; }
.util a { color: var(--on-dark-soft); transition: color .15s; }
.util a:hover { color: var(--accent); }
.util .links { display: inline-flex; gap: 18px; }
.util .links a { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.5px; font-weight: 600; }
.foot-main .proj-links a { font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.more-row .btn { text-transform: uppercase; letter-spacing: 0.06em; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.645 0.224 33 / 0.55); }
  70%  { box-shadow: 0 0 0 8px oklch(0.645 0.224 33 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.645 0.224 33 / 0); }
}

.masthead { background: var(--dark); }
.masthead .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
/* ---- NE/RY brand lockup ---- */
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--on-dark); }
.brand-word {
  display: grid; gap: 0; font-family: 'Oswald', system-ui, sans-serif; color: var(--on-dark);
  font-weight: 600; text-transform: uppercase; line-height: 1.02;
  justify-items: start; letter-spacing: 0.02em;
}
.brand-word .w1 { font-size: 16px; line-height: 1.05; }
.brand-word .w2 { font-size: 14px; }
.brand-word .w1 .o { color: var(--accent); }
.brand-word .w2 i { font-style: normal; color: var(--accent); }
.masthead nav {
  margin-left: auto; display: flex; align-items: center; gap: 2px;
  font-family: var(--sans);
}
.masthead nav a {
  --cat: var(--on-dark);
  font-size: 13.5px; font-weight: 600; color: var(--on-dark-soft);
  padding: 9px 13px; border-radius: 3px; white-space: nowrap;
  transition: color .15s, background .15s; position: relative;
}
.masthead nav a:hover { color: var(--on-dark); background: oklch(1 0 0 / 0.06); }
.masthead nav a[aria-current="true"] { color: var(--on-dark); }
.masthead nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--accent);
}
.masthead .search {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  color: var(--on-dark-soft); transition: background .15s, color .15s;
}
.masthead .search:hover { background: oklch(1 0 0 / 0.08); color: var(--on-dark); }

/* ---- Category filter bar (light, len.adv.br link-filter) ---- */
.catbar { background: var(--paper-2); border-bottom: 1px solid var(--edge); position: sticky; top: 0; z-index: 4; backdrop-filter: blur(6px); }
.catbar .wrap { display: flex; align-items: center; gap: 4px; min-height: 50px; overflow-x: auto; scrollbar-width: none; }
.catbar .wrap::-webkit-scrollbar { display: none; }
.catbar .flabel { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-right: 8px; flex: none; }
.filter {
  --cat: var(--ink-soft);
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-soft);
  padding: 7px 13px; border-radius: 0; white-space: nowrap; flex: none;
  border: 1px solid transparent; transition: all .15s;
}
.filter:hover { color: var(--cat); background: color-mix(in oklch, var(--cat) 10%, transparent); }
.filter[aria-pressed="true"] { color: var(--paper); background: var(--cat); }
.filter[data-cat-all][aria-pressed="true"] { background: var(--ink); }

/* ============================================================
   Source chips (inline, SANS) + hover cursor
   ============================================================ */
.src {
  font-family: var(--sans); font-size: 0.64em; font-weight: 700; line-height: 1;
  vertical-align: super; color: var(--accent);
  padding: 1px 3px; margin-left: 1px; border-radius: 3px; cursor: pointer;
  transition: background .12s, color .12s; text-decoration: none;
}
.src:hover, .src:focus-visible { background: var(--accent); color: var(--paper); outline: none; }
.src + .src { margin-left: 2px; }

/* inline word-link inside body (Substack-style) */
.body a.link {
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px;
  transition: color .15s, background .15s; cursor: pointer;
}
.body a.link:hover { color: var(--accent); background: var(--accent-wash); }

/* inline accent link — orange clickable text */
.body a.link-accent {
  color: var(--accent); font-weight: 500; cursor: pointer;
  text-decoration: none; transition: color .15s;
}
.body a.link-accent:hover { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Links de texto escritos no editor (sem classe especial) — negrito + OrangeRed.
   Vale para todo o corpo de conteúdo: compilados, posts, comentários e páginas
   institucionais (Sobre/Metodologia/Editorial). Exclui os componentes que já têm
   seu próprio estilo (fontes, CTAs, botões, figuras, cartões, TOC). */
.body a:not([class]),
.nery-comentario .cm-sec a:not([class]) {
  color: var(--accent); font-weight: 700; cursor: pointer;
  text-decoration: none; transition: color .15s;
}
.body a:not([class]):hover,
.nery-comentario .cm-sec a:not([class]):hover { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ============================================================
   Figures / images — striped placeholder + hover (len.adv.br)
   ============================================================ */
.fig { margin: 0; position: relative; }
.fig .frame {
  overflow: hidden; position: relative; background: var(--paper-3);
  border: 1px solid var(--edge);
}
/* Real photo: fills the frame, cropped & centered (rectangle → any shape) */
.fig .frame img {
  display: block; width: 100%; height: 100%;
  aspect-ratio: var(--ar, 16 / 9);
  object-fit: cover; object-position: center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
a.fig:hover .frame img, .fig.hoverable:hover .frame img { transform: scale(1.045); }
.fig .ph {
  width: 100%; aspect-ratio: var(--ar, 16 / 9); display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, oklch(0.88 0.01 80) 0 11px, oklch(0.855 0.012 80) 11px 22px);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.fig .ph span {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: oklch(0.5 0.01 80); background: var(--paper);
  padding: 5px 11px; border: 1px solid var(--edge); border-radius: 100px;
}
a.fig, .fig.hoverable { display: block; cursor: pointer; }
a.fig .frame::after, .fig.hoverable .frame::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent);
  transition: width .45s cubic-bezier(.2,.7,.2,1);
}
a.fig:hover .ph, .fig.hoverable:hover .ph { transform: scale(1.045); }
a.fig:hover .frame::after, .fig.hoverable:hover .frame::after { width: 100%; }
.fig figcaption {
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-faint);
  padding-top: 9px; line-height: 1.5;
}
.fig figcaption b { color: var(--ink-soft); font-weight: 600; }
.fig figcaption strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   Article body content styles
   ============================================================ */
.body { font-size: 20px; line-height: 1.68; color: var(--ink); }
.body > p { margin: 0 0 1.25em; }
.body > p:first-of-type { font-size: 1.06em; }
.body h2 { font-family: var(--serif); font-size: 1.45em; font-weight: 600; margin: 1.7em 0 0.5em; }
.body h3 { font-family: var(--serif); font-size: 1.18em; font-weight: 600; margin: 1.5em 0 0.4em; }

/* bullet & numbered lists */
.body ul, .body ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.body li { position: relative; padding-left: 1.6em; margin-bottom: 0.6em; }
.body ul > li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg);
}
.body ol { counter-reset: li; }
.body ol > li::before {
  counter-increment: li; content: counter(li);
  position: absolute; left: 0; top: 0.06em;
  font-family: var(--sans); font-size: 0.7em; font-weight: 700; color: var(--accent);
  width: 1.5em; height: 1.5em; display: grid; place-items: center;
  border: 1.5px solid var(--accent); border-radius: 50%;
}

/* blockquote — Substack-style side bar */
.body blockquote {
  margin: 1.6em 0; padding: 0.2em 0 0.2em 1.4em;
  border-left: 3px solid var(--accent);
  font-style: italic; font-size: 1.22em; line-height: 1.5; color: var(--ink);
}
.body blockquote cite {
  display: block; margin-top: 0.6em; font-style: normal;
  font-family: var(--sans); font-size: 0.62em; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-faint);
}
.body blockquote cite::before { content: "— "; }

/* pull / mid-text call-to-action button (Substack) */
.body .cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--paper); background: var(--ink);
  padding: 11px 20px; border-radius: 0; margin: 0.5em 0;
  transition: background .18s, transform .18s;
}
.body .cta:hover { background: var(--accent); transform: translateY(-1px); }
.body .cta .arw { transition: transform .18s; }
.body .cta:hover .arw { transform: translateX(3px); }

/* "leia mais" subtle text link */
.readmore {
  font-family: var(--sans); font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--accent); display: inline-flex; align-items: center; gap: 6px;
}
.readmore .arw { transition: transform .18s; }
.readmore:hover .arw { transform: translateX(3px); }

/* table */
.body .tbl-wrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--edge); border-radius: 4px; }
.body table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14.5px; }
.body table caption {
  caption-side: top; text-align: left; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
  padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--edge);
}
.body thead th {
  text-align: left; font-weight: 700; color: var(--ink); background: var(--paper-2);
  padding: 11px 16px; border-bottom: 2px solid var(--ink); white-space: nowrap;
}
.body tbody td { padding: 11px 16px; border-bottom: 1px solid var(--edge-soft); color: var(--ink-soft); }
.body tbody tr:last-child td { border-bottom: 0; }
.body tbody tr:hover td { background: var(--accent-wash); }
.body td.num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

/* ============================================================
   Card (home grid + related)
   ============================================================ */
.card { display: flex; flex-direction: column; gap: 12px; }
.card a.fig .ph { aspect-ratio: var(--ar, 16 / 10); }
.card .ctitle {
  font-family: var(--serif); font-weight: 600; font-size: 1.32em; line-height: 1.14;
  letter-spacing: -0.012em; transition: color .15s;
}
.card:hover .ctitle { color: var(--accent); }
.card .cdek { font-family: var(--serif); color: var(--ink-soft); font-size: 1.02em; line-height: 1.45; }
.card .cmeta { margin-top: auto; }

/* Card sem imagem destacada (nc_card() em template-tags.php, has_post_thumbnail()
   decide a cada carregamento — nada de novo no contrato, retroativo). Sem .fig,
   o fio de acento no topo assume o lugar; .cmeta continua indo pro fim do card
   via margin-top:auto acima, então o card de texto "estica" pra acompanhar a
   altura dos cards com foto na mesma linha do grid (align-items:stretch padrão). */
.card--text::before { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); }

/* ============================================================
   Buttons / pills (generic)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  padding: 12px 22px; border-radius: 0; transition: all .18s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arw { transition: transform .18s; }
.btn:hover .arw { transform: translateX(3px); }

/* ============================================================
   Footer — two dark bars
   ============================================================ */
.site-foot { margin-top: clamp(56px, 8vw, 110px); position: relative; z-index: 1; }
.foot-main { background: var(--dark); color: var(--on-dark-soft); padding-block: clamp(40px, 6vw, 64px); }
.foot-main .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px 48px; }
.site-foot .logo { gap: 15px; }
.site-foot .brand-word .w1 { font-size: 20px; }
.site-foot .brand-word .w2 { font-size: 17px; }
.foot-main h4 {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-faint); margin: 0 0 16px;
}
.foot-main ul { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 14px; line-height: 2.2; }
.foot-main a { transition: color .15s; }
.foot-main a:hover { color: var(--accent); }
.foot-main .blurb { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--on-dark-soft); margin: 14px 0 0; max-width: 32ch; }
.foot-main .social { display: flex; gap: 10px; margin-top: 14px; }
.foot-main .social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid oklch(1 0 0 / 0.18); color: var(--on-dark-soft);
  transition: color .15s, border-color .15s, background .15s;
}
.foot-main .social a:hover { color: var(--accent); border-color: var(--accent); background: oklch(1 0 0 / 0.05); }
.news-field { display: flex; gap: 8px; margin-top: 14px; }
.news-field input {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 13px; color: var(--on-dark);
  background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.14); border-radius: 0; padding: 11px 16px;
}
.news-field input::placeholder { color: var(--on-dark-faint); }
.news-field button { background: var(--accent); color: var(--paper); border-radius: 0; padding: 0 18px; font-family: var(--sans); font-weight: 700; font-size: 13px; transition: background .15s; }
.news-field button:hover { background: var(--accent-deep); }
.news-privacy { font-family: var(--sans); font-size: 14px; line-height: 2.2; color: var(--on-dark-soft); margin: 8px 0 0; max-width: 34ch; }
.news-privacy a { color: var(--on-dark-soft); text-decoration: underline; text-decoration-color: currentColor; }
.news-privacy a:hover { color: var(--accent); }

.foot-legal {
  background: var(--dark-2); color: var(--on-dark-faint);
  font-family: var(--sans); font-size: 12px;
}
.foot-legal .wrap { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; min-height: 56px; }
.foot-legal .spacer { flex: 1; }
.foot-legal > .wrap > span:first-child, .foot-legal a { color: var(--on-dark-soft); }
.foot-legal .bot-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-soft); }
.foot-legal .bot-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.foot-legal a:hover { color: var(--accent); }

::selection { background: oklch(0.645 0.224 33 / 0.20); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .masthead nav { display: none; }
}
@media (max-width: 900px) {
  .foot-main .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .util .links { display: none; }
  .foot-main .wrap { grid-template-columns: 1fr; }
}


/* ============================================================
   HOME — front-page layout (movido do mockup index.html)
   ============================================================ */
.home-head { padding-block: clamp(28px, 4vw, 44px) clamp(8px, 1.5vw, 14px); }
.home-head .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.home-head h1 {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.02em; color: var(--ink); line-height: 1.14;
}
.home-head h1 b { font-style: normal; font-weight: 600; }
.home-head .sub { font-family: var(--sans); font-size: 13.5px; color: var(--ink-faint); margin-top: 12px; }

/* Lead block: featured + secondary */
.lead { display: grid; grid-template-columns: 1.62fr 1fr; gap: clamp(28px, 4vw, 56px); padding-block: 22px clamp(36px, 5vw, 60px); align-items: start; }
.lead-main .fig { margin-bottom: 20px; }
.lead-main .fig .ph { aspect-ratio: 16 / 9; }
.lead-main h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02; letter-spacing: -0.022em; margin: 14px 0 0; transition: color .15s;
}
.lead-main a:hover h2 { color: var(--accent); }
.lead-main .dek { font-size: 1.18em; line-height: 1.45; color: var(--ink-soft); margin: 14px 0 0; max-width: 40ch; }
.lead-main .cmeta { margin-top: 18px; }

.lead-side { display: flex; flex-direction: column; }
.lead-side .item { display: grid; grid-template-columns: 1fr 96px; gap: 16px; padding-block: 20px; }
.lead-side .item:first-of-type { padding-top: 0; }
.lead-side .item + .item { border-top: 1px solid var(--edge); }
.lead-side .item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.32em; line-height: 1.16; transition: color .15s; }
.lead-side .item:hover h3 { color: var(--accent); }
.lead-side .item .fig .ph { aspect-ratio: 1 / 1; }
.lead-side .item .cmeta { margin-top: 10px; }
.lead-side .sidehead {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 4px;
  display: flex; align-items: center; justify-content: space-between;
}

/* Manchete/"Veja também" sem imagem destacada (has_post_thumbnail() decide a
   cada carregamento, ver front-page.php — nada de novo no contrato, retroativo:
   anexar uma foto depois vira o padrão com foto sem republicar). Sem .fig, um
   fio de acento no topo assume o lugar da imagem; o título fica um pouco maior. */
.lead-main--text::before { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin-bottom: 18px; }
.lead-main--text h2 { font-size: clamp(38px, 5vw, 62px); }
.lead-side .item.item--text { grid-template-columns: 1fr; border-left: 3px solid var(--accent); padding-left: 16px; }

/* Section heading */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 26px; }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); }
.sec-head .count { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-faint); }

/* Card grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 36px); }
.grid .card { transition: opacity .3s; }
.grid .card.hide { display: none; }
.grid .card .cdek { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.empty { font-family: var(--sans); color: var(--ink-faint); font-size: 15px; padding: 40px 0; display: none; }
.empty.show { display: block; }

.more-row { display: flex; justify-content: center; padding-top: clamp(40px, 5vw, 56px); }

@media (max-width: 860px) {
  .lead { grid-template-columns: 1fr; gap: 36px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .lead-side .item { grid-template-columns: 1fr 80px; }
}


/* ============================================================
   SINGLE — compilado / post (movido do mockup Compilado.html)
   ============================================================ */
.crumb { background: var(--paper-2); border-bottom: 1px solid var(--edge); }
.crumb .wrap { display: flex; align-items: center; gap: 10px; min-height: 46px; font-family: var(--sans); font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; }
.crumb a { font-weight: 600; transition: color .15s; }
.crumb a:hover { color: var(--accent); }
.crumb .arw { opacity: 0.5; }

.hero { padding-block: clamp(30px, 4.5vw, 56px) 0; }
.hero .wrap { max-width: 880px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -0.022em; margin-top: 16px;
}
.hero .dek {
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 25px); line-height: 1.4;
  color: var(--ink-soft); margin-top: 18px; max-width: 44ch;
}
.hero .rule-short { margin: 26px 0 22px; }
.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.byline .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--on-dark);
  display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 22px; flex: none; overflow: hidden;
}
.byline .avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline .who { font-family: var(--sans); font-size: 14px; line-height: 1.35; }
.byline .who b { font-weight: 700; color: var(--ink); }
.byline .who span { color: var(--ink-faint); }
.byline .author { font-weight: 700; color: var(--ink); transition: color .15s; }
.byline .author:hover { color: var(--accent); }
.byline .spacer { flex: 1; }
.byline .actions { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--edge); border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-soft); background: var(--paper);
  transition: all .15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.hero-fig { margin-top: clamp(26px, 4vw, 40px); }
.hero-fig .wrap { max-width: var(--maxw); }
.hero-fig .ph { aspect-ratio: 21 / 9; }

/* Compilado: resumo executivo entre o cabeçalho e a imagem de capa (ver
   single.php — nc_split_cp_resumo() separa o box .cp-resumo, que o plugin
   grava como 1º elemento do corpo, do resto do texto). Mesma largura de
   --maxw por padrão; o Compilado estreita para 860px logo abaixo, junto
   com .hero/.hero-fig. .cp-resumo já tem margem inferior própria — some o
   top margin da figura quando ela vem logo depois, pra não dobrar o espaço. */
.hero-resumo { margin-top: clamp(26px, 4vw, 40px); }
.hero-resumo .wrap { max-width: var(--maxw); }
.hero-resumo + .hero-fig { margin-top: 0; }

/* Compilado: capa alinhada à largura e à margem esquerda do texto (.col-main,
   760px), não do site (--maxw, 1240px). single.php grava .article SEMPRE com
   a classe no-rail (linha 93) — não há variante com trilha lateral de 300px
   para o Compilado — então o .wrap do texto renderizado é sempre o de
   .article.no-rail (max-width:860px), não o de duas colunas (1180px).
   .hero-fig .wrap usa o mesmo max-width; mesmo padding-inline de .wrap então
   as bordas esquerdas coincidem — e .frame trava em 760px, colado à esquerda.
   Escopado à single de Compilado: não afeta outras single.php.
   Mesmo problema no cabeçalho: .hero .wrap é 880px (usado também por outras
   páginas do tema — page.php, autores, contato — por isso não mexemos na
   regra global), 20px mais largo que os 860px do texto/imagem, jogando
   título/dek/tag/autoria ~10px à esquerda da coluna. Só no Compilado, o
   .hero também casa com 860px. */
.single-compiled_news .hero-fig .wrap { max-width: 860px; }
.single-compiled_news .hero-fig .frame { max-width: 760px; margin-right: auto; }
.single-compiled_news .hero .wrap { max-width: 860px; }
.single-compiled_news .hero-resumo .wrap { max-width: 860px; }
.single-compiled_news .hero-resumo .cp-resumo { max-width: 760px; margin-right: auto; }

/* two-column article body */
.article { padding-block: clamp(34px, 5vw, 56px); }
.article .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(36px, 5vw, 72px); align-items: start; max-width: 1180px; }
.article.no-rail .wrap { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.col-main { max-width: 760px; }

/* sources rail */
.rail { position: sticky; top: 70px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; padding-right: 4px; }
.rail::-webkit-scrollbar { width: 7px; }
.rail::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 0; }
.rail h4 {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin: 0 0 4px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--paper); z-index: 1;
}
.rail h4 .n { color: var(--accent); }
.srccard {
  display: grid; grid-template-columns: 26px 1fr; gap: 11px; padding: 14px 8px 14px 2px;
  border-bottom: 1px solid var(--edge-soft); align-items: start; transition: background .2s; border-radius: 4px;
}
.srccard:hover { background: var(--paper-2); }
.srccard.flash { background: var(--accent-wash); }
.srccard .badge {
  width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  font-family: var(--sans); font-weight: 700; font-size: 12px; color: var(--paper);
  background: var(--ink); flex: none;
}
.srccard .scn { font-family: var(--sans); }
.srccard .scn .num { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.srccard .scn .num::after { content: "|"; color: var(--ink); font-weight: 400; margin: 0 6px; }
.srccard .scn .pub { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; margin-top: 1px; }
.srccard .scn .ttl { font-family: var(--serif); font-size: 13.5px; color: var(--ink-soft); line-height: 1.32; margin-top: 4px; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.srccard .scn .dom { font-size: 11.5px; color: var(--ink-faint); margin-top: 5px; display: inline-flex; align-items: center; gap: 5px; }
.rail .railnote { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--edge); }

/* fontes em caixas no fim de cada bloco / abaixo dos parágrafos (até 5 por linha) */
.cp-srcs { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.cp-srcs .h { flex-basis: 100%; font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 3px; }
.cp-src { flex: 0 1 calc((100% - 30px) / 4); min-width: 138px; display: grid; grid-template-columns: 26px 1fr; gap: 9px; align-items: start; border: 1px solid var(--edge); background: var(--paper-2); padding: 10px 11px; border-radius: 7px; transition: background .15s, border-color .15s; }
.cp-src:hover { border-color: var(--accent); background: var(--paper); }
.cp-src .badge { width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 11px; flex: none; }
.cp-src .scn { min-width: 0; }
.cp-src .pub { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.cp-src .ttl { font-family: var(--sans); font-size: 11.5px; color: var(--ink-soft); line-height: 1.32; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 620px) { .cp-src { flex-basis: calc((100% - 10px) / 2); } }

/* ---- Fontes: pill compacto (estilo Perplexity) que revela os cartões ----
   Inserido pelo theme.js em .cm-srcs (Comentário) e .cp-srcs (Compilado) —
   mesmas classes que os plugins já gravam no post, nada de novo no contrato.
   Um sentido só: clique tira .is-collapsed, título e cartões aparecem e o
   pill some (não precisa recolher de volta). Progressive enhancement: a
   classe .is-collapsed só existe quando o JS roda; sem JS, .h e os cartões
   continuam visíveis como sempre. Fica aqui (não em comment.css) porque este
   arquivo carrega nas DUAS templates — comment.css só na do Comentário. */
.cm-srcs.is-collapsed > .h, .cm-srcs.is-collapsed > .cm-src,
.cp-srcs.is-collapsed > .h, .cp-srcs.is-collapsed > .cp-src {
  display: none;
}
.cm-srcs:not(.is-collapsed) > .nc-srcs-pill,
.cp-srcs:not(.is-collapsed) > .nc-srcs-pill {
  display: none;
}
.nc-srcs-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid var(--edge); border-radius: 100px;
  padding: 6px 15px 6px 6px; margin: 2px 0; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.nc-srcs-pill:hover, .nc-srcs-pill:focus-visible {
  background: var(--paper); border-color: var(--accent);
  transform: translateY(-1px); box-shadow: 0 3px 10px oklch(0.275 0.012 58 / 0.12);
}
.nc-srcs-avatars { display: flex; align-items: center; }
.nc-srcs-avatar {
  position: relative; width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--ink); color: var(--paper); border: 2px solid var(--paper-2);
  font-family: var(--sans); font-size: 8.5px; font-weight: 800;
}
.nc-srcs-avatar + .nc-srcs-avatar { margin-left: -8px; }
.nc-srcs-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nc-srcs-count { white-space: nowrap; }

/* related */
.related { padding-block: clamp(36px,5vw,56px); }
.related .sec-head { display: flex; align-items: baseline; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 26px; }
.related .sec-head h2 { font-family: var(--serif); font-size: 28px; }
.related .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px,3vw,36px); }

@media (max-width: 960px) {
  .article .wrap { grid-template-columns: 1fr; }
  .rail { position: static; order: 2; margin-top: 8px; max-height: none; overflow: visible; }
  .related .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .related .grid3 { grid-template-columns: 1fr; }
}

/* WordPress core alignment & caption helpers inside body */
.body img { height: auto; }
.body .alignleft { float: left; margin: 0.4em 1.4em 1em 0; max-width: 50%; }
.body .alignright { float: right; margin: 0.4em 0 1em 1.4em; max-width: 50%; }
.body .aligncenter { display: block; margin-inline: auto; }
.body figure { margin: 1.6em 0; }
.body figure img { width: 100%; }
.body .wp-caption-text, .body figcaption { font-family: var(--sans); font-size: 12.5px; color: var(--ink-faint); padding-top: 8px; line-height: 1.5; }
.body .wp-block-embed { margin: 1.6em 0; }

/* Pagination */
.page-nav { display: flex; justify-content: center; padding-block: clamp(28px,4vw,44px); }
.page-nav .page-numbers {
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 13px; border: 1px solid var(--edge); margin-left: -1px; transition: all .15s;
}
.page-nav a.page-numbers:hover { color: var(--accent); border-color: var(--accent); position: relative; z-index: 1; }
.page-nav .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* 404 / page intro */
.page-hero { padding-block: clamp(40px,6vw,80px); }
.page-hero .wrap { max-width: 720px; }
.page-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px,5vw,54px); line-height: 1.05; letter-spacing: -0.02em; }
.page-hero p { color: var(--ink-soft); margin-top: 16px; }

/* Search form */
.searchform { display: flex; gap: 8px; max-width: 420px; }
.searchform input[type="search"] {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--edge); padding: 11px 15px;
}
.searchform button { background: var(--ink); color: var(--paper); font-family: var(--sans); font-weight: 700; font-size: 13px; padding: 0 18px; transition: background .15s; }
.searchform button:hover { background: var(--accent); }

/* Newsletter embed wrapper (footer) */
.news-embed { margin-top: 14px; }
.news-embed iframe { width: 100%; border: 0; }


/* ============================================================
   Busca suspensa no masthead + utilitários
   ============================================================ */
.nc-search-drop { max-height: 0; overflow: hidden; transition: max-height .25s ease; background: var(--dark-2); }
.nc-search-drop.open { max-height: 120px; }
.nc-search-drop .wrap { padding-block: 14px; }
.nc-search-drop .searchform { max-width: 520px; }
.nc-search-drop input[type="search"] { background: oklch(1 0 0 / 0.06); border-color: oklch(1 0 0 / 0.16); color: var(--on-dark); }
.nc-search-drop input[type="search"]::placeholder { color: var(--on-dark-faint); }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}

/* Lista de comentários desativada — sem estilos necessários */


/* ============================================================
   Índice (TOC) — modelo Institucional single-page
   ============================================================ */
.toc h4 { margin-bottom: 6px; }
.toc .tocitem {
  display: block; font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--ink-soft); line-height: 1.3; padding: 10px 0 10px 14px;
  border-left: 2px solid var(--edge); transition: color .15s, border-color .15s;
}
.toc .tocitem:hover { color: var(--accent); border-color: var(--accent); }
.toc .tocitem.active { color: var(--ink); border-color: var(--accent); }
/* offset das âncoras para não ficarem sob o cabeçalho/faixa */
.body h2[id] { scroll-margin-top: 96px; }


/* ============================================================
   AUTORES — página de listagem (linhas) + ícones sociais
   ============================================================ */
.authors-hero { padding-block: clamp(34px, 5vw, 64px) 0; }
.authors-hero .wrap { max-width: 880px; }
.authors-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.022em; margin-top: 16px;
}
.authors-hero .dek {
  font-family: var(--serif); font-size: clamp(19px, 2.3vw, 24px); line-height: 1.4;
  color: var(--ink-soft); margin-top: 16px; max-width: 48ch;
}
.authors-hero .rule-short { margin: 26px 0 0; }

.authors-list { max-width: 960px; padding-block: clamp(20px, 3vw, 34px) clamp(48px, 7vw, 90px); }
.author-row {
  display: grid; grid-template-columns: 104px 1fr; gap: clamp(20px, 3.2vw, 36px);
  padding-block: clamp(26px, 3.2vw, 36px); align-items: start;
}
.author-row + .author-row { border-top: 1px solid var(--edge); }

.author-photo {
  width: 104px; height: 104px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center; background: var(--dark); color: var(--on-dark);
  border: 1px solid var(--edge); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-photo.is-initial span {
  font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1;
}
.author-row:hover .author-photo { transform: scale(1.03); box-shadow: 0 8px 28px oklch(0.225 0.004 60 / 0.18); }

.author-body { min-width: 0; padding-top: 4px; }
.author-head { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.author-head h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(23px, 2.7vw, 30px);
  letter-spacing: -0.015em; line-height: 1.1;
}
.author-head h2 a { transition: color .15s; }
.author-head h2 a:hover { color: var(--accent); }

.author-bio {
  font-family: var(--serif); color: var(--ink-soft);
  font-size: 1.06em; line-height: 1.56; margin: 12px 0 0; max-width: 64ch; text-wrap: pretty;
}

.author-link {
  font-family: var(--sans); font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--accent); display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; white-space: nowrap;
}
.author-link .arw { transition: transform .18s; }
.author-link:hover .arw { transform: translateX(3px); }

/* social icon row (only filled networks render) */
.author-social { display: inline-flex; align-items: center; gap: 8px; }
.author-social a {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--edge); border-radius: 50%; color: var(--ink-soft); background: var(--paper);
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.author-social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); transform: translateY(-1px); }
.author-social svg { width: 16px; height: 16px; display: block; }

/* ---- Página de Contato ---- */
.contato-block {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: clamp(34px,5vw,56px); border-top: 1px solid var(--edge);
  margin-top: clamp(28px,4vw,40px); padding-block: clamp(24px,3.2vw,32px);
}
.contato-block .lbl { display: block; font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.contato-block .contato-email a {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.012em;
  border-bottom: 1.5px solid var(--accent); transition: color .15s;
}
.contato-block .contato-email a:hover { color: var(--accent); }

/* ---- Arquivo de Comentários (/comentarios/) — noindex, layout mínimo ---- */
.comentarios-list { padding-block: clamp(24px,3vw,36px) clamp(48px,7vw,80px); }
.comentarios-list .cm-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.comentarios-list .cm-index li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--edge); }
.comentarios-list .cm-index a { font-family: var(--serif); font-size: clamp(1.05em,2.4vw,1.35em); font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.comentarios-list .cm-index a:hover { color: var(--accent); }
.comentarios-list .cm-index time { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); white-space: nowrap; flex: none; }
.comentarios-list .cm-empty { font-family: var(--serif); color: var(--ink-faint); }

@media (max-width: 560px) {
  .author-row { grid-template-columns: 68px 1fr; gap: 16px; }
  .author-photo { width: 68px; height: 68px; }
  .author-photo.is-initial span { font-size: 30px; }
}

/* ============================================================
   Brand icon (Notícias Compiladas) — replaces the NE/RY mark
   ============================================================ */
.brand-ico { display: grid; place-items: center; color: var(--accent); flex: none; }
.brand-ico svg { width: 32px; height: 30px; display: block; }
.site-foot .brand-ico svg { width: 38px; height: 36px; }
@media (max-width: 560px) { .brand-ico svg { width: 28px; height: 26px; } }

/* ============================================================
   Article footer — "Ler opinião" + nota de links
   Fica entre o fim do texto e as fontes (no celular, a coluna
   de fontes desce, então a nota cai naturalmente entre os dois).
   ============================================================ */
.article-foot { margin-top: clamp(18px, 2.4vw, 26px); }
.opinion-cta {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper); background: var(--ink);
  padding: 15px 24px; transition: background .18s, transform .18s;
}
.opinion-cta:hover { background: var(--accent); transform: translateY(-1px); color: var(--paper); }
.opinion-cta .ar { font-size: 1.1em; transition: transform .18s; }
.opinion-cta:hover .ar { transform: translateX(3px); }
.article-disclaimer {
  font-family: var(--sans); font-size: 12.5px; line-height: 1.6;
  color: var(--ink-faint); margin: clamp(10px, 1.4vw, 16px) 0 0; max-width: 64ch;
}
.opinion-cta + .article-disclaimer { margin-top: clamp(22px, 3vw, 30px); }

/* Resumo executivo do Compilado (campo _nc_cp_resumo — condicional) */
.cp-resumo {
  border-left: 4px solid var(--accent);
  padding: clamp(22px,3vw,30px) clamp(22px,3vw,32px); margin: 0 0 clamp(30px,4vw,44px);
}
.cp-resumo .lbl {
  font-family: var(--sans); font-size: 11.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.cp-resumo .lbl::before { content: ""; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); flex: none; }
.cp-resumo p { font-family: var(--serif); font-size: 1.1em; line-height: 1.6; color: var(--ink); margin: 0; }

/* Citação em destaque do Compilado (bloco opcional "quote" de paragraphs[]).
   Mesma linguagem visual do .cp-resumo (fio de acento à esquerda, cantos
   retos); especificidade .body .cp-quote para vencer o .body blockquote
   genérico (Substack-style) sem depender da ordem no arquivo. */
.body .cp-quote {
  margin: clamp(28px,3.6vw,40px) 0; padding: 0 0 0 20px;
  border-left: 3px solid var(--accent); border-radius: 0; font-style: normal;
}
.body .cp-quote .q {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: clamp(21px,2.4vw,25px); line-height: 1.38; color: var(--ink);
}
.body .cp-quote .cite {
  display: block; margin-top: 13px; font-family: var(--sans); font-size: 13px;
  font-style: normal; line-height: 1.5; color: var(--ink-faint);
}
.body .cp-quote .cite .au { font-weight: 700; color: var(--ink-soft); }
.body .cp-quote .cite .or { font-weight: 500; }
.body .cp-quote .cite a { color: var(--accent); text-decoration: none; }
.body .cp-quote .cite a:hover { text-decoration: underline; }

/* Frase ao lado de um .opinion-cta — padrão compartilhado (usado pela barra de
   topo abaixo; era duplicado em .inline-cta/.cm-contato quando esses CTAs
   ainda eram inline). */
.cta-lead { display: block; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* Barra de topo fixa com scroll-reveal — "Ler comentário" no Compilado, contato
   (WhatsApp/LinkedIn) no Comentário. Escondida por padrão (translateY) e no topo
   absoluto da página; desliza pra dentro ao rolar pra baixo passando a altura do
   hero, recolhe ao rolar pra cima (ver theme.js). Reaproveita .opinion-cta sem
   nenhuma alteração; layout sóbrio como o resto do site — cantos retos, sem
   sombra pesada. Impressa em header.php (nc_top_cta_bar()), nas duas templates
   que a usam; some sozinha (função só imprime o wrapper quando há CTA). */
.nc-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--edge);
  transform: translateY(-100%);
  transition: transform .28s ease;
}
.nc-topbar.is-visible { transform: translateY(0); }
.nc-topbar .wrap { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); padding-block: 14px; }
.nc-topbar .cta-lead { flex: 1 1 0%; min-width: 0; }
.nc-topbar .opinion-cta { flex: none; }
@media (max-width: 640px) {
  .nc-topbar .wrap { padding-block: 10px; gap: 10px; }
  .nc-topbar .cta-lead { display: none; }
}

/* Bloco de anúncio in-article — margem própria, contida (não some-empilha com o rodapé) */
.col-main .adsbygoogle { margin: clamp(16px, 2.4vw, 24px) 0; }
/* Google marca o slot como "unfilled" quando não há anúncio a servir (ex.: site em
   análise, bloqueador de anúncios) — sem isso, o espaço reservado fica em branco. */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; margin: 0 !important; }

/* Rótulo "Publicidade" acima de cada anúncio (prática recomendada do AdSense),
   alinhado à esquerda, discreto. Fonte forçada (!important) para não herdar o
   serif da prosa do corpo em nenhum contexto (compilado, comentário, post). */
.nc-inline-ad .nc-ad-label {
  display: block !important;
  font-family: var(--sans, 'Hanken Grotesk', system-ui, sans-serif) !important;
  font-size: 10px !important; font-weight: 800 !important;
  letter-spacing: 0.16em !important; text-transform: uppercase !important;
  color: var(--ink-faint) !important; text-align: left !important;
  line-height: 1.2 !important; margin: 0 0 6px !important;
}
/* O bloco (rótulo + anúncio) fica VISÍVEL por padrão e só some quando o AdSense
   confirma que NÃO preencheu o slot (data-ad-status="unfilled") — mantém o espaço
   reservado do anúncio durante o carregamento, escondendo apenas quando não há
   anúncio a servir. */
.nc-inline-ad { display: block; }
.nc-inline-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* Linha de botões no rodapé da matéria (opinião + WhatsApp) */
.article-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Botão "Falar no WhatsApp" — mesma estrutura do botão de opinião, verde de marca */
.whatsapp-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper); background: oklch(0.575 0.135 150);
  padding: 15px 24px; transition: background .18s, transform .18s;
}
.whatsapp-cta:hover { background: oklch(0.645 0.165 150); transform: translateY(-1px); color: var(--paper); }
.whatsapp-cta .wa-ic { flex: none; }

/* Newsletter — mensagem de confirmação inline (rodapé escuro) */
.news-status { font-family: var(--sans); font-size: 12.5px; line-height: 1.5; margin: 10px 0 0; min-height: 1px; }
.news-status.loading { color: var(--on-dark-faint); }
.news-status.ok  { color: var(--lime); }
.news-status.err { color: oklch(0.78 0.13 35); }
