/* ============================================================
   Woetter Light 2.0 — site.css unificado (woetter/café/prompt)
   ============================================================ */
:root {
  --max: 1080px;
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #16202b;
  --muted: #5b6572;
  --line: #e5e3de;
  --accent: #1e3a5f;
  --gold: #c9a24b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 32, 43, .08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-fontlevel="0"] { font-size: 87.5%; }
html[data-fontlevel="1"] { font-size: 93.75%; }
html[data-fontlevel="2"] { font-size: 100%; }
html[data-fontlevel="3"] { font-size: 106.25%; }
html[data-fontlevel="4"] { font-size: 112.5%; }
html[data-fontlevel="5"] { font-size: 118.75%; }
html[data-fontlevel="6"] { font-size: 125%; }
html[data-contrast="high"] { --ink: #000; --muted: #222; --line: #666; --bg: #fff; --surface: #fff; }
html[data-invert="1"] {
  --bg: #101316; --surface: #1a1f24; --ink: #f3f6f8; --muted: #b7c0c8; --line: #39434c;
  --accent: #6ec7be !important; --gold: #e1bd62 !important;
  --shadow: 0 12px 34px rgba(0, 0, 0, .32);
  background: var(--bg); color-scheme: dark;
}
html[data-invert="1"][data-contrast="high"] { --ink: #fff; --muted: #e4e8eb; --line: #8d979f; --bg: #000; --surface: #0b0d0f; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* qualquer webfont futura nao bloqueia a renderizacao do texto */
* { font-display: swap; }

img { max-width: 100%; height: auto; }
a { color: var(--accent); }

.skip-link {
  background: var(--accent); border-radius: 0 0 8px 0; color: #fff;
  left: 0; padding: .6rem 1rem; position: absolute; top: -60px;
  transition: top .2s; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 0; }

.site-shell { display: flex; flex-direction: column; min-height: 100vh; }
.site-shell > main, .site-shell > .wrap { flex: 1; }

.wrap, .topbar-inner, .footer-inner {
  margin: 0 auto; max-width: var(--max); width: 100%;
  padding-left: clamp(1rem, 3vw, 2rem); padding-right: clamp(1rem, 3vw, 2rem);
}

/* ---------- topbar: uma linha, sempre ---------- */
.topbar {
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg), transparent 10%);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.topbar-inner {
  align-items: center; display: flex; gap: .45rem;
  min-height: 56px; flex-wrap: nowrap;
}
.brand {
  align-items: center; color: var(--ink); display: inline-flex;
  flex-shrink: 0; font-size: .98rem; font-weight: 800; gap: .5rem;
  text-decoration: none; white-space: nowrap;
}
.brand img, .brand svg {
  display: block; flex: 0 0 auto; height: 36px; object-fit: contain;
}
.brand img { max-width: 84px; width: auto; }
.brand svg { width: 36px; }
html[data-invert="1"] .brand img { filter: brightness(0) invert(1); }
.nav { align-items: center; display: flex; flex-shrink: 1; gap: .05rem; min-width: 0; overflow: hidden; }
.nav a {
  border-radius: 8px; color: var(--muted); font-size: .84rem;
  padding: .34rem .55rem; text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { background: color-mix(in srgb, var(--accent), transparent 92%); color: var(--accent); }

.search-inline { flex: 1; margin-left: auto; max-width: 190px; min-width: 70px; position: relative; }
.search-inline input {
  background: transparent; border: 1px solid var(--line); border-radius: 18px;
  color: inherit; font: inherit; font-size: .8rem; padding: .26rem .7rem .26rem 1.75rem; width: 100%;
}
.search-inline input:focus { border-color: var(--accent); outline: none; }
.search-inline svg { color: var(--muted); left: .55rem; pointer-events: none; position: absolute; top: 50%; transform: translateY(-50%); }

.lang-switch { flex-shrink: 0; }
.lang-toggle {
  border: 1px solid var(--line); border-radius: 6px; color: var(--muted);
  display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .05em;
  padding: .26rem .55rem; text-decoration: none; white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.a11y { align-items: center; display: flex; flex-shrink: 0; gap: .06rem; }
.a11y button {
  background: transparent; border: 1px solid transparent; border-radius: 7px;
  color: var(--muted); cursor: pointer; font: inherit; font-size: .76rem;
  line-height: 1; padding: .3rem .42rem;
}
.a11y button:hover { border-color: var(--line); color: var(--ink); }
.a11y button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

@media (max-width: 720px) {
  .nav { display: none; }
  .search-inline { max-width: 130px; }
}
@media (max-width: 480px) {
  .brand img, .brand svg { height: 30px; }
  .brand img { max-width: 68px; width: auto; }
  .brand svg { width: 30px; }
  .brand span { display: none; }
  .a11y [data-fontstep="0"] { display: none; }
}

/* ---------- hero com marca d'água ---------- */
.hero {
  overflow: hidden; padding: clamp(2.2rem, 6vw, 4rem) 0 clamp(1.8rem, 4vw, 3rem);
  position: relative;
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero .eyebrow {
  color: var(--accent); display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .22em; margin: 0 0 .8rem; text-transform: uppercase;
}
.hero .eyebrow::before { background: var(--accent); content: ""; display: inline-block; height: 3px; width: 26px; border-radius: 2px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.06; margin: 0 0 .9rem;
}
.hero p { color: var(--muted); font-size: clamp(.95rem, 1.6vw, 1.08rem); margin: 0; max-width: 56ch; }
.watermark {
  color: var(--accent); opacity: .07; pointer-events: none;
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: clamp(220px, 30vw, 420px); z-index: 0;
}
.watermark svg { display: block; height: auto; width: 100%; }

/* hero navy (prompt) */
.hero-navy { background: var(--accent); border-radius: 0 0 26px 26px; color: #f5f4f0; }
.hero-navy .eyebrow { color: var(--gold); }
.hero-navy .eyebrow::before { background: var(--gold); }
.hero-navy h1 { color: #fff; }
.hero-navy p { color: #9fb3ca; }
.hero-navy .watermark { color: var(--gold); opacity: .12; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.4rem; position: relative; z-index: 1; }
.hero-stat b { color: var(--gold); display: block; font-size: .96rem; white-space: nowrap; }
.hero-stat span { color: #9fb3ca; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
/* ---------- grid de conteúdo + cards ---------- */
.content-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr 290px; padding-bottom: 3rem; }
@media (max-width: 860px) { .content-grid { grid-template-columns: 1fr; } }

.post-list { display: flex; flex-direction: column; gap: 1.1rem; }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 0; grid-template-columns: 220px 1fr; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-media { background: color-mix(in srgb, var(--accent), transparent 92%); display: block; min-height: 150px; }
.post-card-media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.post-card-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem; }
.post-card .eyebrow { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.post-card h2, .post-card h3 { font-size: 1.08rem; line-height: 1.3; margin: 0; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); font-size: .88rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { color: var(--muted); font-size: .74rem; letter-spacing: .04em; margin-top: auto; padding-top: .4rem; }
@media (max-width: 560px) { .post-card { grid-template-columns: 1fr; } .post-card-media { aspect-ratio: 16/9; min-height: 0; } }

/* destaque (primeiro post) */
.featured-card { grid-template-columns: 1fr; }
.featured-card .post-card-media { aspect-ratio: 21/9; }
.featured-card h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }

.sidebar { display: flex; flex-direction: column; gap: 1.1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.panel h3 { font-size: .95rem; margin: 0 0 .5rem; }
.panel p { color: var(--muted); font-size: .84rem; margin: 0 0 .7rem; }

.ad-slot { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .68rem; letter-spacing: .28em; margin: 0; padding: .8rem 0; text-align: center; text-transform: uppercase; }

/* ---------- artigo ---------- */
.article { padding: clamp(1.4rem, 4vw, 2.6rem) 0 3rem; }
.post-h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.9rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.1; margin: .4rem auto 1.1rem; max-width: var(--max);
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.article article { margin: 0 auto; max-width: 72ch; padding: 0 clamp(1rem, 3vw, 2rem); }
.article-meta { color: var(--muted); font-size: .78rem; letter-spacing: .14em; margin: 0 auto .4rem; max-width: var(--max); padding: 0 clamp(1rem, 3vw, 2rem); text-transform: uppercase; }
.article-meta a { color: var(--accent); font-weight: 700; text-decoration: none; }
.article-cover img { border-radius: var(--radius); width: 100%; }
.article-body { font-size: 1.04rem; line-height: 1.8; }
.article-body h2 { border-left: 4px solid var(--accent); font-size: 1.42rem; margin: 2.1rem 0 .8rem; padding-left: .7rem; }
.article-body h3 { font-size: 1.14rem; margin: 1.7rem 0 .6rem; }
.article-body p { margin: 0 0 1.1rem; }
.article-body img { border-radius: 12px; cursor: zoom-in; }
.article-body blockquote { border-left: 4px solid var(--gold); color: var(--muted); font-style: italic; margin: 1.4rem 0; padding: .2rem 0 .2rem 1rem; }
.article-body pre {
  background: #14202e; border-radius: 8px; box-sizing: border-box; color: #d7e2ee;
  font-size: .86rem; line-height: 1.6; margin: 0; max-width: 100%; overflow-x: hidden;
  overflow-wrap: break-word; padding: 2.9rem 1.1rem 1rem; white-space: pre-wrap; width: 100%;
  word-break: break-word;
}
.article-body pre code { overflow-wrap: inherit; white-space: inherit; word-break: inherit; }
.code-copy-wrap { margin: 1.4rem 0; max-width: 100%; position: relative; }
.code-copy-btn {
  align-items: center; background: #29394a; border: 1px solid #52677d; border-radius: 6px;
  color: #fff; cursor: pointer; display: inline-flex; font: inherit; font-size: .72rem;
  font-weight: 700; justify-content: center; min-height: 2rem; min-width: 4.4rem;
  padding: .3rem .65rem; position: absolute; right: .65rem; top: .6rem; z-index: 2;
}
.code-copy-btn:hover { background: #3a4d61; }
.code-copy-btn.copied { background: #24753d; border-color: #3e9a59; }

.translation-note {
  background: color-mix(in srgb, var(--accent), transparent 93%);
  border: 1px solid color-mix(in srgb, var(--accent), transparent 72%);
  border-radius: 10px; font-size: .88rem; margin: 0 0 1.2rem; padding: .55rem .9rem;
}
.translation-note a { font-weight: 700; text-decoration: none; }

.tag-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.6rem 0 0; }
.tag-chips a { background: color-mix(in srgb, var(--accent), transparent 93%); border-radius: 999px; color: var(--accent); font-size: .76rem; font-weight: 700; padding: .25rem .75rem; text-decoration: none; }

.share-row { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; }
.share-row a, .share-row button {
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink); cursor: pointer; font: inherit; font-size: .8rem; padding: .38rem .75rem; text-decoration: none;
}
.share-row a:hover, .share-row button:hover { border-color: var(--accent); color: var(--accent); }

.author-box {
  align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; gap: 1rem; margin: 2rem 0 0; padding: 1.1rem 1.2rem;
}
.author-box img { border-radius: 50%; height: 64px; object-fit: cover; width: 64px; }
.author-box h3 { font-size: .98rem; margin: 0 0 .2rem; }
.author-box p { color: var(--muted); font-size: .84rem; margin: 0; }
.author-social { display: flex; gap: .45rem; margin-top: .45rem; }
.author-social a { color: var(--muted); display: inline-flex; }
.author-social a:hover { color: var(--accent); }

.substack-embed { margin: 2rem 0 0; text-align: center; }
.substack-embed iframe { border-radius: 12px; max-width: 100%; }

.newsletter { margin: 2rem 0 0; }
.newsletter input { border: 1px solid var(--line); border-radius: 9px; font: inherit; padding: .5rem .8rem; width: 100%; }
.newsletter button { background: var(--accent); border: none; border-radius: 9px; color: #fff; cursor: pointer; font: inherit; font-weight: 700; margin-top: .5rem; padding: .5rem 1rem; }

.related { border-top: 1px solid var(--line); margin: 2.4rem auto 0; max-width: var(--max); padding: 1.6rem clamp(1rem, 3vw, 2rem) 0; }
.related h2 { font-size: .74rem; font-weight: 800; letter-spacing: .22em; margin: 0 0 1rem; text-transform: uppercase; }
.related-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid a { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); display: block; font-size: .9rem; font-weight: 600; line-height: 1.35; padding: .85rem 1rem; text-decoration: none; }
.related-grid a:hover { border-color: var(--accent); }
.related-grid .eyebrow { color: var(--accent); display: block; font-size: .64rem; font-weight: 800; letter-spacing: .16em; margin-bottom: .3rem; text-transform: uppercase; }

.prevnext { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 1.6rem auto 0; max-width: var(--max); padding: 0 clamp(1rem, 3vw, 2rem); }
.prevnext a { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: .88rem; font-weight: 600; padding: .8rem 1rem; text-decoration: none; }
.prevnext a:hover { border-color: var(--accent); }
.prevnext .dir { color: var(--accent); display: block; font-size: .66rem; font-weight: 800; letter-spacing: .16em; margin-bottom: .25rem; text-transform: uppercase; }
.prevnext .next { text-align: right; }

/* antes/depois */
.before-after { margin: 2rem 0; }
.ba-title { font-weight: 700; margin-bottom: .8rem; text-align: center; }
.ba-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.ba-side { position: relative; }
.ba-side img { aspect-ratio: 4/3; border-radius: 12px; display: block; object-fit: cover; width: 100%; }
.ba-label { border-radius: 6px; font-size: .7rem; font-weight: 800; left: .6rem; letter-spacing: .1em; padding: .2rem .55rem; position: absolute; text-transform: uppercase; top: .6rem; }
.ba-label-before { background: rgba(0,0,0,.62); color: #fff; }
.ba-label-after { background: var(--accent); color: #fff; }
.ba-caption { color: var(--muted); font-size: .85rem; margin-top: .5rem; text-align: center; }
@media (max-width: 480px) { .ba-grid { grid-template-columns: 1fr; } }

/* carrossel */
.wcarousel { border-radius: var(--radius); margin: 1.8rem 0; overflow: hidden; position: relative; }
.wcarousel-track { display: flex; transition: transform .35s ease; }
.wcarousel-slide { flex: 0 0 100%; }
.wcarousel-slide img { cursor: zoom-in; display: block; width: 100%; }
.wcarousel-btn { background: rgba(20,32,46,.55); border: none; border-radius: 50%; color: #fff; cursor: pointer; font-size: 1.3rem; height: 38px; line-height: 1; position: absolute; top: 50%; transform: translateY(-50%); width: 38px; z-index: 2; }
.wcarousel-prev { left: .6rem; } .wcarousel-next { right: .6rem; }
.wcarousel-dots { bottom: .6rem; display: flex; gap: .35rem; justify-content: center; left: 0; position: absolute; right: 0; z-index: 2; }
.wcarousel-dot { background: rgba(255,255,255,.5); border: none; border-radius: 50%; cursor: pointer; height: 8px; padding: 0; width: 8px; }
.wcarousel-dot.active { background: #fff; }
.wcarousel-counter { background: rgba(20,32,46,.55); border-radius: 999px; color: #fff; font-size: .7rem; padding: .15rem .55rem; position: absolute; right: .6rem; top: .6rem; z-index: 2; }

/* lightbox + cinema */
.lb-overlay { align-items: center; animation: lbIn .16s ease; background: rgba(10,16,24,.9); cursor: zoom-out; display: flex; inset: 0; justify-content: center; position: fixed; z-index: 90; }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.lb-overlay img { border-radius: 10px; box-shadow: 0 26px 70px rgba(0,0,0,.7); max-height: 88vh; max-width: 92vw; object-fit: contain; }
.lb-cinema { flex-direction: column; gap: .9rem; }
.lb-controls { align-items: center; display: flex; gap: .6rem; }
.lb-controls button { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; cursor: pointer; font: inherit; font-size: .95rem; height: 40px; line-height: 1; width: 40px; }
.lb-controls button:hover { background: rgba(255,255,255,.26); }
.lb-counter { color: #cbd6e2; font-size: .8rem; letter-spacing: .08em; }
.lb-suggest { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); bottom: 1.2rem; max-width: 340px; padding: 1rem 1.1rem; position: fixed; right: 1.2rem; z-index: 95; }
.lb-suggest h4 { font-size: .72rem; letter-spacing: .18em; margin: 0 0 .55rem; text-transform: uppercase; }
.lb-suggest a { color: var(--ink); display: block; font-size: .86rem; font-weight: 600; margin-bottom: .4rem; text-decoration: none; }
.lb-suggest a:hover { color: var(--accent); }
.lb-suggest .close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; position: absolute; right: .5rem; top: .4rem; }

/* prompt blocks */
.prompt-block { background: #14202e; border-radius: 12px; margin: 1.4rem 0; overflow: hidden; }
.prompt-block pre { background: none; color: #d7e2ee; font-size: .84rem; margin: 0; padding: 1rem 1.1rem; white-space: pre-wrap; }
.prompt-block .code-copy-wrap { margin: 0; }
.prompt-block .code-copy-wrap pre { padding-top: 2.9rem; }
.prompt-actions { border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: .4rem; padding: .55rem .8rem; }
.prompt-actions button { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #e8eef5; cursor: pointer; font: inherit; font-size: .74rem; padding: .3rem .65rem; }
.prompt-actions button:hover { background: rgba(255,255,255,.2); }

@media print { .code-copy-btn { display: none; } }

/* footer */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; margin-top: auto; padding: 1.6rem 0 2rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }

/* consent */
.consent { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; bottom: 1rem; box-shadow: var(--shadow); left: 50%; max-height: calc(100vh - 2rem); max-width: 620px; overflow-y: auto; padding: 1rem 1.2rem; position: fixed; transform: translateX(-50%); width: calc(100% - 2rem); z-index: 80; }
.consent p { font-size: .84rem; line-height: 1.55; margin: 0 0 .7rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-actions button { border-radius: 9px; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; padding: .45rem .9rem; }
.consent-accept { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.consent-essential, .consent-manage { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.consent-options { border-top: 1px solid var(--line); margin: .8rem 0; padding-top: .7rem; }
.consent-options label { align-items: center; display: flex; font-size: .86rem; gap: .5rem; margin: .55rem 0; }
.consent-options input { accent-color: var(--accent); height: 18px; width: 18px; }
.consent-options .consent-essential-note, .consent-options .consent-gpc { color: var(--muted); font-size: .76rem; }
.consent-save { background: var(--accent); border: 1px solid var(--accent); border-radius: 7px; color: #fff; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; padding: .42rem .8rem; }
.privacy-settings { background: var(--surface); border: 1px solid var(--line); border-radius: 7px 7px 0 0; bottom: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .7rem; left: .8rem; padding: .35rem .65rem; position: fixed; z-index: 38; }

/* institutional and legal pages */
.legal-page .post-h1 { margin-bottom: 1rem; }
.legal-page article { padding-bottom: 3rem; }
.legal-page .article-body { font-size: .98rem; }
.legal-page .article-body h2 { scroll-margin-top: 5rem; }
.legal-meta { color: var(--muted); font-size: .85rem; }
.legal-lead { font-size: 1.12rem; }
.legal-note { border-left: 4px solid var(--gold); margin: 1.4rem 0; padding: .45rem 0 .45rem 1rem; }
.legal-table-wrap { margin: 1rem 0 1.4rem; overflow-x: auto; }
.legal-table { border-collapse: collapse; font-size: .84rem; min-width: 600px; width: 100%; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: .65rem .7rem; text-align: left; vertical-align: top; }
.legal-table th { background: var(--surface); }
.contact-email { font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-list li { margin-bottom: .55rem; }


/* search page */
.search-page { margin: 0 auto; max-width: 680px; padding: 2.4rem clamp(1rem, 3vw, 2rem) 3rem; }
.search-page input { border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; padding: .7rem 1rem; width: 100%; }
.search-results a { border-bottom: 1px solid var(--line); color: var(--ink); display: block; padding: .8rem .2rem; text-decoration: none; }
.search-results a:hover { color: var(--accent); }
.search-results .eyebrow { color: var(--accent); display: block; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

@media print { .topbar, .a11y, .consent, .privacy-settings, .footer, .share-row, .newsletter { display: none !important; } }


/* breadcrumb */
.breadcrumb-wrap { margin: 0 auto; max-width: var(--max); padding: 0 clamp(1rem, 3vw, 2rem); }
.breadcrumb { color: var(--muted); font-size: .8rem; padding: .3rem 0; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: var(--line); margin: 0 .2rem; }

/* índice do artigo (TOC) */
.toc { background: color-mix(in srgb, var(--accent), transparent 95%); border: 1px solid var(--line); border-radius: 12px; margin: 1.4rem 0; padding: .3rem 1rem; }
.toc summary { cursor: pointer; font-size: .78rem; font-weight: 800; letter-spacing: .1em; padding: .6rem 0; text-transform: uppercase; }
.toc ul { list-style: none; margin: 0 0 .6rem; padding: 0; }
.toc li { margin: .15rem 0; }
.toc li a { color: var(--ink); text-decoration: none; font-size: .9rem; border-left: 2px solid var(--line); padding-left: .7rem; display: block; }
.toc li a:hover { border-color: var(--accent); color: var(--accent); }
.toc .toc-sub a { padding-left: 1.4rem; font-size: .84rem; color: var(--muted); }

/* barra de progresso de leitura */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; transition: width .1s linear; }

/* voltar ao topo */
.back-to-top { align-items: center; background: var(--accent); border: none; border-radius: 50%; bottom: 1.4rem; color: #fff; cursor: pointer; display: flex; font-size: 1.2rem; height: 44px; justify-content: center; opacity: 0; pointer-events: none; position: fixed; right: 1.4rem; transition: opacity .2s, transform .2s; width: 44px; z-index: 50; transform: translateY(10px); box-shadow: var(--shadow); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media print { .reading-progress, .back-to-top { display: none !important; } }

/* blocos de anúncio */
.ad-unit { margin: 2rem 0; min-height: 90px; text-align: center; overflow: hidden; }
.ad-unit ins { margin: 0 auto; }
.ad-unit::before { content: "Publicidade"; display: block; color: var(--muted); font-size: .62rem; letter-spacing: .2em; margin-bottom: .3rem; text-transform: uppercase; }
