/* Calmer Ears — visual público. Neutro (preto e branco) por enquanto: todas as cores são variáveis em :root,
   para trocar por uma paleta da marca depois sem mexer no resto do arquivo. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); ascent-override: 90.4%; descent-override: 22.5%; line-gap-override: 0%; size-adjust: 107.1%; }
:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-muted: #f0f0f0;
  --text: #0a0a0a;
  --text-2: #262626;
  --muted: #5c5c5c;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --brand: #111111;          /* cor de destaque (botões, marca); trocar pela cor da marca no futuro */
  --brand-contrast: #ffffff;
  --link: #111111;
  --table-head: #f2f2f2;
  --table-head-text: #111111;
  --table-head-line: #8a8a8a;
  --box-bg: #f7f7f7;
  --box-line: #e0e0e0;
  --alert-line: #111111;
  --font: Inter, "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs: 18px;
  --wrap: 1140px;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --sh-sm: 0 1px 2px rgba(0,0,0,.05);
  --sh: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --sh-lg: 0 12px 28px -10px rgba(0,0,0,.18);
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
main { min-height: 50vh; }
.preview-bar { background: var(--bg-muted); border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; padding: 8px; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.brand-mark { color: var(--brand); flex: none; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav > a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.main-nav > a:hover { background: var(--bg-muted); }
.main-nav > a.on { background: var(--bg-muted); color: var(--text); }
.search { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; margin-left: 8px; background: var(--bg); }
.search:focus-within { border-color: var(--text); }
.search input { border: 0; outline: none; padding: 7px 10px; font: 14px var(--font); width: 130px; background: transparent; color: var(--text); }
.search button { border: 0; background: transparent; padding: 7px 10px; cursor: pointer; color: var(--text); display: inline-flex; }
.menu-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-sm); width: 42px; height: 38px; cursor: pointer; position: relative; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { position: absolute; left: 11px; width: 18px; height: 2px; background: var(--text); content: ""; }
.menu-toggle .bars { top: 17px; }
.menu-toggle .bars::before { top: -6px; left: 0; }
.menu-toggle .bars::after { top: 6px; left: 0; }

/* ---------- Comuns ---------- */
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.kicker a { color: inherit; text-decoration: none; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.section-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; }
.section-title small { font-size: 15px; color: var(--muted); font-weight: 500; }
.btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--r-sm); background: var(--brand); color: var(--brand-contrast); font-weight: 600; text-decoration: none; border: 1px solid var(--brand); }
.btn:hover { opacity: .9; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }

/* ---------- Home (lista de notícias simples) ---------- */
.news { padding-top: 36px; padding-bottom: 40px; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--text); }
.news-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-item.lead { grid-column: 1 / -1; padding: 26px 0; }
.news-item.lead .news-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.03em; }
.news-item.lead .news-excerpt { font-size: 18px; max-width: 780px; }
.news-title { font-size: 20px; line-height: 1.28; letter-spacing: -.015em; margin: 0 0 8px; }
.news-title a { color: var(--text); text-decoration: none; }
.news-title a:hover { text-decoration: underline; }
.news-excerpt { font-size: 15px; color: var(--text-2); margin: 0 0 10px; line-height: 1.55; }
.card-kicker a { color: inherit; text-decoration: none; }
@media (max-width: 700px) { .news-list { grid-template-columns: 1fr; } }

/* ---------- (estilos antigos de destaque, sem uso na home atual) ---------- */
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero-inner { padding-top: 56px; padding-bottom: 48px; max-width: 820px; margin-left: max(20px, calc((100% - var(--wrap)) / 2 + 20px)); }
.hero-title { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 16px; }
.hero-text { font-size: 19px; line-height: 1.55; color: var(--text-2); margin: 0 0 22px; max-width: 680px; }
.hero-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.topics { padding-top: 44px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.topic { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--text); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.topic:hover { border-color: var(--line-strong); box-shadow: var(--sh-lg); }
.topic strong { font-size: 16px; }
.topic span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.topic small { font-size: 12px; color: var(--muted); margin-top: auto; font-weight: 600; }
.latest { padding-top: 44px; padding-bottom: 20px; }
.trust { padding-top: 20px; padding-bottom: 56px; }
.trust-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; background: var(--bg-soft); }
.trust-box h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.01em; }
.trust-box ul { margin: 0 0 12px; padding-left: 1.2em; color: var(--text-2); }
.trust-box li { margin-bottom: 6px; }
.trust-box p { margin: 0; font-size: 14px; }

/* ---------- Cartões ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--bg); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--sh-lg); }
.card-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; }
.card-title { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 8px; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-excerpt { font-size: 15px; color: var(--text-2); margin: 0 0 12px; line-height: 1.5; }
.card-meta { font-size: 13px; color: var(--muted); margin: auto 0 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 30px 0 10px; font-size: 14px; color: var(--muted); }
.pager a { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); text-decoration: none; color: var(--text); font-weight: 600; }

/* ---------- Listas (categoria, busca, 404) ---------- */
.list-head { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.list-head .wrap { padding-top: 34px; padding-bottom: 30px; }
.list-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 10px; }
.list-title small { font-size: 16px; color: var(--muted); font-weight: 500; }
.list-intro { font-size: 18px; color: var(--text-2); max-width: 720px; margin: 0; }
.list-body { padding-top: 30px; padding-bottom: 56px; }
.big-search { margin: 20px 0 0; max-width: 480px; }
.big-search input { width: 100%; font-size: 16px; padding: 10px 12px; }
.big-search button { background: var(--brand); color: var(--brand-contrast); padding: 10px 16px; font-weight: 600; }

/* ---------- Artigo ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: var(--brand); }
.article-hero { border-bottom: 1px solid var(--line); }
.article-hero-inner { padding-top: 30px; padding-bottom: 24px; }
.article-title { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.07; letter-spacing: -.035em; font-weight: 800; margin: 0 0 14px; max-width: 900px; }
.subtitle { font-size: 20px; line-height: 1.5; color: var(--text-2); margin: 0 0 16px; max-width: 800px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.byline a { color: var(--text); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar button { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--font); background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 12px; cursor: pointer; box-shadow: var(--sh-sm); }
.toolbar button:hover { background: var(--bg-muted); }
.toolbar button[aria-pressed="true"] { background: var(--brand); color: var(--brand-contrast); border-color: var(--brand); }
.toolbar .tool-group { display: inline-flex; }
.toolbar .tool-group button:first-child { border-radius: 999px 0 0 999px; border-right: 0; }
.toolbar .tool-group button:last-child { border-radius: 0 999px 999px 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 56px; padding-top: 32px; padding-bottom: 40px; align-items: start; }
.article-grid.no-side { grid-template-columns: minmax(0, 760px); justify-content: start; }
.content { font-size: var(--fs); line-height: 1.72; color: var(--text-2); }
.content h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; color: var(--text); margin: 1.7em 0 .55em; scroll-margin-top: 84px; }
.content h3 { font-size: 21px; line-height: 1.3; color: var(--text); margin: 1.4em 0 .45em; }
.content p { margin: 0 0 1.05em; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.content li { margin-bottom: .45em; }
.content blockquote { border-left: 3px solid var(--text); margin: 1.3em 0; padding: .4em 1.1em; background: var(--box-bg); }
.content img { height: auto; display: block; border-radius: var(--r); }
.table-wrap { overflow-x: auto; margin: 1.3em 0; border: 1px solid var(--box-line); border-radius: var(--r); }
.content table { border-collapse: collapse; width: 100%; font-size: .86em; line-height: 1.5; }
.content th, .content td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--box-line); }
.content th { background: var(--table-head); color: var(--table-head-text); border-bottom: 2px solid var(--table-head-line); font-weight: 700; }
.content tr:last-child td { border-bottom: 0; }
.info-box { margin: 1.5em 0; padding: 16px 18px; border: 1px solid var(--box-line); border-left: 4px solid var(--alert-line); border-radius: var(--r); background: var(--box-bg); font-size: .95em; line-height: 1.6; }
.cta-box, .offer-box { margin: 1.8em 0; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg-soft); }
.cta-title { font-weight: 700; font-size: 1.05em; margin: 0 0 6px !important; color: var(--text); }
.cta-actions { margin: 12px 0 0 !important; }
.btn-cta { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: var(--r-sm); background: var(--brand); color: var(--brand-contrast) !important; font-weight: 700; text-decoration: none; }
.offer-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px !important; }
.offer-list { margin: 0 !important; }
.offer-note { font-size: 13px; color: var(--muted); margin: 10px 0 0 !important; }
.toc-mobile { display: none; margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; background: var(--bg-soft); }
.toc-mobile summary { font-weight: 700; cursor: pointer; }
.toc-mobile ol { margin: 10px 0 0; padding-left: 1.2em; font-size: 15px; }
.toc-mobile li { margin-bottom: 6px; }
.faq, .sources { margin-top: 34px; }
.faq h2, .sources h2, .feedback h2, .share h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 14px; scroll-margin-top: 84px; }
.faq-item { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.faq-item h3 { font-size: 17px; margin: 0 0 6px; }
.faq-item p { margin: 0 0 10px; color: var(--text-2); line-height: 1.65; }
.sources ol { padding-left: 1.3em; font-size: 15px; color: var(--text-2); }
.sources li { margin-bottom: 6px; word-break: break-word; }
.disclaimer { margin: 30px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.feedback, .share { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.feedback h2, .share h2 { font-size: 19px; }
.fb-buttons, .share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-buttons button, .sb { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--font); padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--text); text-decoration: none; cursor: pointer; box-shadow: var(--sh-sm); }
.fb-buttons button:hover, .sb:hover { background: var(--bg-muted); }
.fb-thanks { margin: 0; color: var(--text-2); }
.author { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.author-mark { color: var(--brand); flex: none; }
.author p { margin: 0; font-size: 15px; color: var(--text-2); }
.author-name { font-weight: 700; margin-bottom: 4px !important; }
.author-name a { color: var(--text); }
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.side-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; background: var(--bg); }
.side-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 260px); overflow-y: auto; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc a:hover { color: var(--text); border-left-color: var(--line-strong); }
.toc a.on { color: var(--text); font-weight: 600; border-left-color: var(--brand); }
.side-info p { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.side-info p:last-child { margin: 0; }
.related { padding-top: 10px; padding-bottom: 56px; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 380px; margin: 12px 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col a { color: var(--text-2); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 18px; cursor: pointer; box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .main-nav > a { padding: 8px 7px; font-size: 13.5px; }
  .search input { width: 100px; }
}
@media (max-width: 980px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: var(--sh-lg); }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px 6px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .search { margin: 12px 0 0; }
  .search input { width: 100%; flex: 1; font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero-inner { padding-top: 36px; padding-bottom: 32px; }
  .hero-text, .subtitle { font-size: 17px; }
  .content h2 { font-size: 24px; }
  .toolbar button span { display: none; }
  .toolbar [data-act="listen"] span, .toolbar [data-act="share"] span { display: inline; }
}
@media print {
  .site-header, .site-footer, .toolbar, .sidebar, .feedback, .share, .related, .to-top, .progress, .toc-mobile, .cta-box, .offer-box { display: none !important; }
  .article-grid { display: block; }
  .content { font-size: 12pt; }
  a { color: inherit; }
}
