/* Layout: coluna única de leitura (~68ch) com cabeçalho fixo discreto; cards das calculadoras em grade que vira uma coluna no celular. */
/* Paleta da identidade ProntCalc: Azul Jurídico #0B1F3B, Azul Principal #3B82F6, Cinza Claro #E5E7EB, Grafite #111827 */
/* Fontes hospedadas no próprio site (arquivos estáticos, licença OFL em assets/fontes).
   Estáticas e não variáveis: no PDF o Chrome as embute como TrueType, com texto nítido e selecionável. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fontes/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fontes/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fontes/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fontes/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("fontes/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fontes/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fontes/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
:root {
  --navy: #0b1f3b;          /* Azul Jurídico */
  --brand: #3b82f6;         /* Azul Principal — títulos e marca */
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #111827;           /* Grafite */
  --muted: #4b5563;
  --line: #e5e7eb;          /* Cinza Claro */
  --accent: #2563eb;        /* Azul Principal escurecido para texto pequeno em fundo claro */
  --accent-ink: #ffffff;
  --accent-soft: #e6efff;
  --flag: #92400e;
  --flag-soft: #fdf1dc;
  --hero-bg: #0b1f3b;
  --hero-ink: #f9fafb;
  --hero-muted: #b8c4d6;
  --hero-line: #1f3a63;
  --hero-surface: #102a4f;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 12px;
  --wrap: 72rem;
  --read: 42rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081629; --surface: #0f2443; --ink: #e5e7eb; --muted: #a3b1c6;
    --line: #1f3a63; --accent: #60a5fa; --accent-ink: #081629; --accent-soft: #15315a;
    --flag: #f5c27a; --flag-soft: #3a2b14;
    --hero-bg: #0b1f3b; --hero-surface: #102a4f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081629; --surface: #0f2443; --ink: #e5e7eb; --muted: #a3b1c6;
  --line: #1f3a63; --accent: #60a5fa; --accent-ink: #081629; --accent-soft: #15315a;
  --flag: #f5c27a; --flag-soft: #3a2b14;
  --hero-bg: #0b1f3b; --hero-surface: #102a4f; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.read { max-width: var(--read); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-lg { display: flex; flex-direction: column; gap: 2.5rem; }

/* Cabeçalho */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand-icon { width: 2rem; height: 2rem; flex: none; }
.brand-mark { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); }
.brand-mark span { color: var(--brand); }
.brand-sub { font-size: 0.8rem; color: var(--muted); display: none; }
@media (min-width: 720px) { .brand-sub { display: inline; } }
.nav-toggle {
  background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
  font: inherit; font-size: 0.9rem; padding: 0.4rem 0.75rem; cursor: pointer;
}
.site-nav { display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.site-nav a { display: block; padding: 0.55rem 0; color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
@media (max-width: 719px) {
  .site-nav.open { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem; }
}
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { flex-direction: row; gap: 1.5rem; }
  .site-nav a { padding: 0.25rem 0; font-size: 0.95rem; }
}

main { padding-block: 2.5rem 4rem; }

/* Abertura em faixa azul-marinho, como na identidade */
.hero-band { background: var(--hero-bg); color: var(--hero-ink); margin-top: -2.5rem; padding-block: 3rem 3.25rem; position: relative; overflow: hidden; }
.hero-band::after { content: ""; position: absolute; right: -10%; top: 0; bottom: 0; width: 45%; background: linear-gradient(115deg, transparent 0 40%, color-mix(in srgb, var(--brand) 22%, transparent) 40% 52%, transparent 52% 64%, color-mix(in srgb, var(--brand) 12%, transparent) 64% 74%, transparent 74%); pointer-events: none; }
.hero-band .wrap { position: relative; z-index: 1; }
.hero-band .eyebrow { color: var(--hero-muted); }
.hero-band .lead { color: var(--hero-muted); }
.hero-band h1 em { font-style: normal; color: var(--brand); }
.hero-band .btn-primary { background: var(--brand); border-color: var(--brand); color: #ffffff; }
.hero-band .btn-ghost { color: var(--hero-ink); border-color: var(--hero-line); }
.hero-band .ledger { background: var(--hero-surface); border-color: var(--hero-line); color: var(--hero-ink); }
.hero-band .ledger li { border-top-color: var(--hero-line); }
.hero-band .ledger .n { color: var(--brand); }
.hero-band .ledger .f, .hero-band .ledger-title, .hero-band .ledger-note { color: var(--hero-muted); }
.hero { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr 1fr; gap: 3rem; } }
.eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.15rem; border-radius: 8px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1px solid var(--accent); cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent); }

/* Memória de cálculo ilustrativa */
.ledger {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; font-family: var(--font-data); font-size: 0.86rem; min-width: 0;
}
.ledger-title { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 0.75rem; }
.ledger ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ledger li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.5rem; padding-block: 0.55rem; border-top: 1px dashed var(--line); }
.ledger li:first-child { border-top: 0; }
.ledger .n { color: var(--accent); font-weight: 600; }
.ledger .t { font-family: var(--font-body); font-size: 0.92rem; }
.ledger .f { display: block; color: var(--muted); margin-top: 0.15rem; overflow-wrap: anywhere; }
.ledger-note { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }

/* Calculadoras */
.section-head { display: flex; flex-direction: column; gap: 0.4rem; }
.calc-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .calc-grid { grid-template-columns: repeat(3, 1fr); } }
.calc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0;
}
.calc-card p { color: var(--muted); font-size: 0.97rem; }
.calc-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.tag-soon { background: var(--flag-soft); color: var(--flag); }

/* Princípios */
.principles { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles div { display: flex; flex-direction: column; gap: 0.4rem; border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.principles p { color: var(--muted); font-size: 0.97rem; }

/* Páginas de texto */
.prose { display: flex; flex-direction: column; gap: 1rem; max-width: var(--read); }
.prose h2 { margin-top: 1.25rem; }
.prose ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.prose .updated { font-size: 0.88rem; color: var(--muted); }
.notice {
  background: var(--flag-soft); color: var(--ink); border-radius: var(--radius);
  padding: 0.9rem 1rem; font-size: 0.95rem;
}

/* Formulário */
.form { display: flex; flex-direction: column; gap: 1rem; max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.75rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 0.95rem; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { display: grid; gap: 1.5rem; padding-block: 2rem 2.5rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 2fr 1fr; } }
.site-footer p { font-size: 0.88rem; color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.92rem; }
.footer-links a { color: var(--ink); }

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

/* ---------- Cards clicáveis da inicial */
@media (min-width: 760px) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }
a.calc-card { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.calc-card:hover { border-color: var(--accent); }
a.calc-card:hover h3 { color: var(--accent); }
.tag-ok { background: var(--accent-soft); color: var(--accent); }
.calc-link { font-weight: 700; color: var(--accent); font-size: .95rem; }

/* ---------- Páginas de calculadora */
.crumbs { font-size: .88rem; color: var(--muted); display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.calc-intro { display: flex; flex-direction: column; gap: .6rem; max-width: 46rem; }
.calc-layout { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .calc-layout { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 1.75rem; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; min-width: 0; }
@media (min-width: 960px) { .panel-form { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5rem); } }
.panel-form .form { max-width: none; }
.panel-form h2 { font-size: 1.1rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field .hint, .hint { font-size: .85rem; color: var(--muted); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .93rem; }
.check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }
.disp { font-size: .82rem; color: var(--muted); }
.btn-block { width: 100%; }

.result { display: flex; flex-direction: column; gap: 1rem; min-width: 0; scroll-margin-top: 5rem; }
.exemplo-tag { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--flag-soft); color: var(--flag); }
.result-head { display: flex; flex-direction: column; gap: .2rem; }
.result-big { font-size: clamp(2rem, 1.5rem + 2.4vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.result-sub { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpis div { background: var(--bg); border-radius: 10px; padding: .7rem .8rem; min-width: 0; }
.kpis dt { font-size: .76rem; color: var(--muted); font-weight: 600; }
.kpis dd { margin: .15rem 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.result-actions .btn { padding: .55rem .9rem; font-size: .9rem; }
.memoria-t { font-size: 1rem; margin-top: .25rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; max-height: 28rem; overflow-y: auto; }
.memoria { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.memoria th, .memoria td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.memoria thead th { position: sticky; top: 0; background: var(--surface); font-size: .78rem; color: var(--muted); font-weight: 700; }
.memoria .num { text-align: right; }
.memoria .neg { color: var(--flag); }
.memoria tbody tr:last-child td { border-bottom: 0; font-weight: 700; }
.muted { color: var(--muted); font-weight: 400; }
.alert { border-radius: 10px; padding: .85rem 1rem; font-size: .95rem; }
.alert-error { background: var(--flag-soft); color: var(--ink); border-left: 4px solid var(--flag); }
.alert-warn { background: var(--flag-soft); color: var(--ink); }

/* Texto explicativo e perguntas */
.explica { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; }
.explica h2 { margin-top: .5rem; }
.explica ol, .explica ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.formula { font-family: var(--font-data); font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; overflow-x: auto; }
.faq { display: flex; flex-direction: column; gap: .5rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: .5rem; color: var(--muted); }

@media print {
  .site-header, .site-footer, .panel-form, .result-actions, .explica, .crumbs, .exemplo-tag { display: none !important; }
  .calc-layout { display: block; }
  .table-wrap { max-height: none; overflow: visible; border: 0; }
  body { background: #fff; color: #000; }
}

/* ---------- Dívida e reajuste de aluguel */
@media (min-width: 1000px) { .calc-grid { grid-template-columns: repeat(3, 1fr); } }
.form h2 + .field, .form h2 { margin-top: 0; }
.panel-form .form h2:not(:first-child) { margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.parcelas-box { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem; background: var(--bg); }
.parcelas-box summary { font-weight: 700; cursor: pointer; font-size: .95rem; }
.parcelas-box .hint { margin: .4rem 0 .5rem; }
.parcelas { display: flex; flex-direction: column; gap: .35rem; max-height: 17rem; overflow-y: auto; }
.parcela { display: grid; grid-template-columns: 1fr 8.5rem; gap: .5rem; align-items: center; }
.parcela .check { font-variant-numeric: tabular-nums; align-items: center; }
.parcela .check input { margin-top: 0; }
.parcela input[inputmode] { font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .55rem; width: 100%; text-align: right; font-variant-numeric: tabular-nums; }
.memoria tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; background: var(--bg); white-space: nowrap; }
.memoria tfoot tr.soma td { border-bottom: 1px solid var(--line); }
.memoria:has(tfoot) tbody tr:last-child td { font-weight: 400; }
.artigo-tabela .memoria tbody tr:last-child td { font-weight: 400; }
.indices { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; font-size: .88rem; }
.indices summary { font-weight: 700; cursor: pointer; }
.indices p { margin-top: .5rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Aviso importante no fim das calculadoras */
.aviso-final { max-width: 46rem; display: flex; flex-direction: column; gap: .4rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.aviso-final h2 { font-size: 1rem; }
.aviso-final p { font-size: .9rem; color: var(--muted); }
@media print { .aviso-final { display: block !important; } }
.row-2 > * { min-width: 0; }
.field input, .field select { min-width: 0; max-width: 100%; }
input[type="date"], input[type="month"] { -webkit-appearance: none; appearance: none; min-height: 2.75rem; }
.memoria td.periodo { white-space: normal; min-width: 5.5rem; }
@media (max-width: 520px) { .memoria th, .memoria td { padding: .45rem .5rem; font-size: .84rem; } }
.memoria td .sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.memoria td:has(.sub) { white-space: normal; }
.memoria-verbas td:first-child { white-space: normal; }
.memoria-verbas td.num { width: 1%; }

/* ---------- Identificação do cálculo */
.ident { display: flex; flex-direction: column; gap: .35rem; max-width: 46rem; }
.ident > label { font-weight: 700; font-size: .95rem; }
.ident > input { font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .85rem; width: 100%; }
.ident > input:focus { border-color: var(--accent); }
.ident-mais { margin-top: .25rem; }
.ident-mais summary { cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--accent); }
.ident-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; margin-top: .75rem; }
@media (min-width: 760px) { .ident-grid { grid-template-columns: 1fr 1fr; } .ident-grid .field:first-child { grid-column: 1 / -1; } }
.ident-mais .hint { margin-top: .5rem; }

/* ---------- Demonstrativo */
.demo-head { display: flex; flex-direction: column; gap: .2rem; padding-bottom: .9rem; border-bottom: 2px solid var(--ink); }
.demo-brand { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--muted); }
.demo-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.demo-tipo { color: var(--muted); font-size: .92rem; }
.demo-partes { display: grid; gap: .25rem .9rem; grid-template-columns: max-content 1fr; margin: .5rem 0 0; font-size: .9rem; }
.demo-partes div { display: contents; }
.demo-partes dt { color: var(--muted); font-weight: 600; }
.demo-partes dd { margin: 0; overflow-wrap: anywhere; }
.params h3, .notas h3 { font-size: 1rem; margin-bottom: .5rem; }
.params dl { margin: 0; display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.params dl div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .75rem; padding: .5rem .8rem; border-top: 1px solid var(--line); font-size: .9rem; }
.params dl div:first-child { border-top: 0; }
.params dt { color: var(--muted); font-weight: 600; }
.params dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .params dl div { grid-template-columns: 1fr; gap: .1rem; } }
.kpis { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.notas ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; color: var(--muted); }
.demo-foot { border-top: 1px solid var(--line); padding-top: .75rem; display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: var(--muted); }
.memoria-larga td .sub { text-align: right; }

/* ---------- Impressão: só o demonstrativo, em A4 */
@page { size: A4; margin: 17mm 12mm 16mm; }
@media print {
  html, body { background: #fff !important; color: #000 !important; font-size: 10pt; }
  :root { --ink: #000; --muted: #333; --line: #bbb; --bg: #f2f2f2; --surface: #fff; --flag: #8a4b00; --flag-soft: #fff4e0; --accent: #000; }
  .site-header, .site-footer, .crumbs, .calc-intro, .panel-form, .explica, .aviso-final, .no-print, .exemplo-tag { display: none !important; }
  main { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .stack-lg { gap: 0; }
  .calc-layout { display: block; }
  .panel.result { border: 0; padding: 0; border-radius: 0; gap: .6rem; }
  .result-big { font-size: 20pt; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpis div { padding: .35rem .5rem; border: 1px solid var(--line); background: #fff; }
  .table-wrap { max-height: none !important; overflow: visible !important; border: 1px solid var(--line); }
  .memoria { font-size: 8.5pt; }
  .memoria th, .memoria td { padding: .25rem .4rem; }
  .memoria thead { display: table-header-group; }
  .memoria tr, .params dl div, .kpis div { break-inside: avoid; }
  .memoria thead th { position: static; }
  .indices { border: 0; padding: 0; }
  .indices summary { list-style: none; }
  h3 { break-after: avoid; }
}

/* ---------- Débitos judiciais: formulário largo em blocos */
.calc-layout--stack { grid-template-columns: 1fr !important; }
.calc-layout--stack .panel-form { position: static; max-height: none; }
.form-debito { gap: 0; }
.form-debito .bloco { display: flex; flex-direction: column; gap: .75rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.form-debito .bloco:first-child { border-top: 0; padding-top: 0; }
.form-debito .bloco h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 1.05rem; }
.form-debito > .btn-block { margin-top: .5rem; }
@media (min-width: 760px) { .form-debito > .btn-block { width: auto; align-self: flex-start; padding-inline: 2.5rem; } }
.grid-3, .grid-4 { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.grid-3 > *, .grid-4 > * { min-width: 0; }
.grid-3 > :first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-3 > :first-child { grid-column: auto; } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.lancamentos { display: flex; flex-direction: column; gap: .5rem; }
.lanc { display: grid; gap: .5rem; grid-template-columns: 1fr 1fr; align-items: end; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.lanc > * { min-width: 0; }
.lanc .field label { font-size: .8rem; }
.lanc .lanc-desc { grid-column: 1 / -1; }
.lanc-del { font: inherit; font-size: .85rem; color: var(--flag); background: none; border: 0; padding: .4rem 0; cursor: pointer; justify-self: start; text-decoration: underline; }
@media (min-width: 860px) {
  .lanc { grid-template-columns: 9.5rem 8rem 11.5rem 1fr 9.5rem auto; padding: .5rem .75rem; }
  .lanc .lanc-desc { grid-column: auto; }
  .lanc .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lancamentos::before { content: "Data · Valor (R$) · Tipo · Descrição · Juros desde (opcional)"; font-size: .78rem; color: var(--muted); font-weight: 600; padding-inline: .75rem; }
}
.lanc-acoes { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.gerador { border: 1px dashed var(--line); border-radius: 10px; padding: .75rem .9rem; }
.gerador summary { cursor: pointer; font-weight: 700; font-size: .95rem; }
.gerador[open] { display: flex; flex-direction: column; gap: .75rem; }
.memoria.resumo td:first-child { white-space: normal; }
.memoria.resumo tr.soma td { background: var(--bg); font-weight: 700; }
.panel-form { max-height: calc(100vh - 6rem); overflow-y: auto; }
@media (max-width: 959px) { .panel-form { max-height: none; overflow: visible; } }
@media print {
  .memoria tfoot { display: table-row-group; }
  .memoria-larga { font-size: 7.5pt; }
  .memoria-larga td .sub { font-size: 6.8pt; }
}
.abrir { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .25rem; }
.btn-sm { padding: .45rem .85rem; font-size: .88rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.abrir label:focus-within, #abrir-arquivo:focus + * { outline: 3px solid var(--accent); }

/* ---------- Catálogo por área e busca */
.busca { display: flex; flex-direction: column; gap: .75rem; }
.busca input[type="search"] {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem .85rem 2.75rem; width: 100%; max-width: 40rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: .9rem center; background-size: 1.15rem;
}
.busca input[type="search"]:focus { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-size: .88rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.busca-vazia { color: var(--muted); }
.area { display: flex; flex-direction: column; gap: .9rem; scroll-margin-top: 5rem; }
.area + .area { margin-top: 1.25rem; }
.area-head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.area-head h3 { font-size: 1.2rem; }
.area-count { font-size: .85rem; color: var(--muted); }
.calc-card--breve { background: transparent; border-style: dashed; }
.calc-card--breve h3 { color: var(--muted); }

/* ---------- Páginas de índices */
.kpis-indice { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.kpis-indice div { background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.kpis-indice dd { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.indice-calc { display: flex; flex-direction: column; gap: .75rem; }
.indice-calc h2 { font-size: 1.1rem; }
.form-inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; max-width: none; }
.form-inline .field { min-width: 0; flex: 1 1 10rem; max-width: 14rem; }
.indice-res { font-size: 1.05rem; }
.tabela-indice { max-height: 36rem; }
.tabela-indice .memoria th[scope="row"] { font-weight: 700; position: sticky; left: 0; background: var(--surface); }
.tabela-indice .memoria td.tot { font-weight: 700; background: var(--bg); }
.tabela-indice .memoria tbody tr:last-child td { font-weight: 400; }
.tabela-indice .memoria tbody tr:last-child td.tot { font-weight: 700; }
.memoria tr.muted-row td { color: var(--muted); }
.memoria tr.destaque td { color: var(--flag); }
.prazo-tab tbody tr:last-child td { font-weight: 700; color: var(--ink); }
.prazo-tab td:last-child { white-space: normal; }

#colar { width: 100%; font: inherit; font-size: .9rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: inherit; resize: vertical; }

/* Glossário */
.gl { text-decoration: underline dotted var(--brand, #3B82F6); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; border-radius: 3px; }
.gl:hover, .gl:focus-visible { background: rgba(59,130,246,.12); outline: none; }
.gl-pop { position: fixed; z-index: 1000; background: #0B1F3B; color: #fff; font-size: .85rem; line-height: 1.45; padding: .65rem .8rem; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.gl-pop strong { display: block; margin-bottom: .15rem; }
.gl-pop a { color: #93C5FD; font-size: .8rem; }
.glossario-lista { display: grid; gap: .25rem; margin: 0; }
.glossario-lista > div { padding: .75rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; }
.glossario-lista > div:target { background: rgba(59,130,246,.08); }
.glossario-lista dt { font-weight: 700; }
.glossario-lista dd { margin: .2rem 0 0; }
@media print { .gl { text-decoration: none; background: none; } .gl-pop { display: none !important; } }

/* lançamentos no celular: datas e seletores sem cortar */
@media (max-width: 560px) {
  .lanc input[type="date"], .lanc select { font-size: .88rem; padding-left: .45rem; padding-right: .35rem; }
  .lanc { gap: .45rem; padding: .6rem; }
}
@media (max-width: 560px) { .lanc .field:nth-child(3) { grid-column: 1 / -1; } }

/* ---------- Artigos */
/* Layout: no computador, texto (~44rem) + coluna lateral fixa com sumário e atalho da calculadora;
   no celular, uma coluna com o sumário recolhido e um botão fixo da calculadora. */
.artigo-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 1024px) {
  .artigo-layout { grid-template-columns: minmax(0, 44rem) 17rem; grid-template-areas: "head lateral" "corpo lateral";
    column-gap: 3.5rem; row-gap: 2rem; justify-content: center; }
  .artigo-head { grid-area: head; } .artigo-corpo { grid-area: corpo; }
  .artigo-lateral { grid-area: lateral; }
  .lateral-fixa { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 1rem; }
}
.artigo { max-width: none; gap: 1.25rem; }
.artigo p, .artigo li { font-size: 1.0625rem; line-height: 1.75; }
@media (min-width: 1024px) { .artigo p, .artigo li { font-size: 1.125rem; } }
.artigo h1 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.6rem); line-height: 1.15; }
.artigo h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.65rem); line-height: 1.25; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); scroll-margin-top: 5.5rem; }
.artigo section:first-child h2 { border-top: 0; padding-top: 0; margin-top: .5rem; }
.artigo h3 { font-size: 1.08rem; }
.artigo section { display: flex; flex-direction: column; gap: 1.1rem; }
.artigo strong { font-weight: 700; }
.artigo ul { padding-left: 1.25rem; gap: .5rem; }
.artigo a { text-underline-offset: 3px; }
.artigo-meta { font-size: .9rem !important; color: var(--muted); }
.artigo .eyebrow { font-size: .78rem; line-height: 1.4; }
.artigo .crumbs { font-size: .88rem; }
.artigo-meta a { color: var(--muted); }

/* Resposta rápida */
.resposta { background: var(--accent-soft); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; border-left: 4px solid var(--brand); }
.resposta-tit { font-size: .76rem !important; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--accent); }

/* Sumário e coluna lateral */
.sumario { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sumario summary { list-style: none; cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.sumario summary::-webkit-details-marker { display: none; }
.sumario summary::after { content: ""; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-right: .2rem; }
.sumario[open] summary::after { transform: rotate(-135deg); }
.sumario ol { list-style: none; margin: 0; padding: 0 .6rem .8rem; display: flex; flex-direction: column; gap: .1rem; counter-reset: sum; }
.sumario li { counter-increment: sum; }
.sumario a { display: flex; gap: .55rem; padding: .45rem .5rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.sumario a::before { content: counter(sum); font-family: var(--font-data); font-size: .8rem; color: var(--accent); min-width: 1.1rem; padding-top: .1rem; }
.sumario a:hover { background: var(--bg); color: var(--ink); }
.sumario a[aria-current="true"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
@media (min-width: 1024px) {
  .sumario summary { cursor: default; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding-bottom: .4rem; min-height: 0; }
  .sumario summary::after { display: none; }
  .sumario a { font-size: .9rem; }
}
.lateral-cta { display: none; }
@media (min-width: 1024px) {
  .lateral-cta { display: flex; flex-direction: column; gap: .75rem; background: var(--hero-bg); color: var(--hero-muted); border-radius: var(--radius); padding: 1.1rem; font-size: .92rem; line-height: 1.5; }
  .lateral-cta .btn-primary { background: #3b82f6; color: #fff; text-align: center; }
}

/* Números-chave do exemplo */
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .75rem; }
.numero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.numero-rot { font-size: .8rem; color: var(--muted); font-weight: 600; }
.numero-val { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.numero-obs { font-size: .82rem; color: var(--muted); }
.numero-forte { background: var(--hero-bg); border-color: var(--hero-bg); }
.numero-forte .numero-rot, .numero-forte .numero-obs { color: var(--hero-muted); }
.numero-forte .numero-val { color: #fff; }

/* Caixas de atenção e de informação */
.nota { border-radius: var(--radius); padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; }
.nota p { margin: 0; }
.nota .nota-tit { font-size: .76rem !important; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.nota-alerta { background: var(--flag-soft); border-left: 4px solid var(--flag); }
.nota-alerta .nota-tit { color: var(--flag); }
.nota-info { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.nota-info .nota-tit { color: var(--accent); }

/* Passo a passo numerado */
.artigo-corpo section ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; counter-reset: passo; }
.artigo-corpo section ol > li { counter-increment: passo; position: relative; padding-left: 2.75rem; min-height: 2rem; }
.artigo-corpo section ol > li::before { content: counter(passo); position: absolute; left: 0; top: .1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .9rem; display: grid; place-items: center; }

/* Citação */
.artigo blockquote { margin: 0; padding: 1rem 1.2rem; border-left: 4px solid var(--brand); background: var(--surface); border-radius: 0 10px 10px 0; font-style: italic; font-size: 1.05rem; line-height: 1.7; }

/* Tabelas: no computador, tabela; no celular, cada linha vira um cartão */
.artigo-tabela { max-height: none; }
.artigo-tabela td, .artigo-tabela th { white-space: normal; vertical-align: top; font-size: .95rem; }
.artigo-tabela td.num, .artigo-tabela th.num { white-space: nowrap; }
.artigo-tabela caption { caption-side: bottom; text-align: left; font-size: .82rem; color: var(--muted); padding: .55rem .75rem; }
@media screen and (max-width: 640px) {
  .artigo-tabela { border: 0; overflow: visible; }
  .tabela-cartoes, .tabela-cartoes tbody, .tabela-cartoes tfoot, .tabela-cartoes tr, .tabela-cartoes td { display: block; width: 100%; }
  .tabela-cartoes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabela-cartoes tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .65rem .9rem; margin-bottom: .6rem; }
  .tabela-cartoes tfoot tr { background: var(--accent-soft); border-color: transparent; }
  .tabela-cartoes td { border: 0 !important; padding: .3rem 0 !important; display: flex; justify-content: space-between; gap: 1rem; text-align: right !important; background: transparent !important; font-size: .95rem; }
  .tabela-cartoes td::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; flex: none; max-width: 45%; }
  .tabela-cartoes td:first-child { display: block; text-align: left !important; font-weight: 700; font-size: 1rem; padding-bottom: .45rem !important; border-bottom: 1px solid var(--line) !important; margin-bottom: .2rem; }
  .tabela-cartoes td:first-child::before { display: none; }
  .tabela-cartoes td[data-vazio] { display: none; }
  .tabela-cartoes tbody tr:last-child td { font-weight: inherit; }
  .tabela-cartoes td:first-child { font-weight: 700 !important; }
  .tabela-cartoes { display: flex; flex-direction: column; }
  .tabela-cartoes caption { display: block; order: 9; padding: .1rem 0 0; }
}

/* Chamada para a calculadora */
.artigo-cta { background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; margin-top: 1rem; }
.artigo-cta p { color: var(--hero-muted); }
.artigo-cta strong { color: var(--hero-ink); }
.artigo-cta .btn-primary { background: #3b82f6; color: #fff; }

/* Perguntas frequentes e fontes */
.faq-lista { display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; }
.faq-item h3 { font-size: 1.02rem; line-height: 1.4; }
.faq-item p { font-size: 1rem !important; line-height: 1.65 !important; color: var(--muted); margin: 0; }
.fontes { list-style: none; padding: 0 !important; gap: .35rem !important; }
.fontes li { font-size: .92rem !important; line-height: 1.5 !important; padding-left: 1.1rem; position: relative; }
.fontes li::before { content: "↗"; position: absolute; left: 0; color: var(--accent); font-size: .8rem; }
.fontes a { overflow-wrap: anywhere; }
.artigo-nota { font-size: .88rem !important; color: var(--muted); }
.artigo-card .eyebrow { color: var(--accent); }

/* Barra de progresso, botão fixo da calculadora (celular) e voltar ao topo */
.progresso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; pointer-events: none; }
.progresso span { display: block; height: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); }
.barra-calc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 31, 59, .08); }
.barra-calc .btn { width: 100%; text-align: center; background: #3b82f6; color: #fff; }
.barra-calc[hidden], .topo[hidden] { display: none; }
.topo { position: fixed; right: 1rem; bottom: 5.25rem; z-index: 16; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(11, 31, 59, .12); }
@media (min-width: 1024px) { .topo { bottom: 1.5rem; right: 1.5rem; } }
@media print { .progresso, .barra-calc, .topo, .artigo-lateral { display: none !important; } }

.leia-tambem { max-width: var(--read); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-block: 2rem; display: flex; flex-direction: column; gap: .6rem; }
.leia-tambem h2 { font-size: 1.05rem; }
.leia-tambem ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
@media (max-width: 560px) {
  .numeros { grid-template-columns: 1fr; gap: .6rem; }
  .numero { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: .75rem; padding: .8rem 1rem; }
  .numero-rot { flex: 1 1 100%; }
  .numero-val { font-size: 1.35rem; }
}

/* ---------- Demonstrativo: marca no topo e impressão sem cortes */
.demo-topo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .7rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line); }
.demo-marca { display: flex; align-items: center; gap: .5rem; }
.demo-marca img { width: 30px; height: 30px; flex: none; }
.demo-nome { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.demo-nome span { color: #3b82f6; }
.demo-emissao { font-size: .78rem; color: var(--muted); text-align: right; line-height: 1.45; }
@media (max-width: 520px) { .demo-topo { flex-direction: column; align-items: flex-start; } .demo-emissao { text-align: left; } }
@media print {
  .demo-marca img { width: 24px; height: 24px; }
  .demo-nome { font-size: 13pt; }
  .demo-nome span { color: #1d4ed8; }
  .demo-emissao { font-size: 7.5pt; color: #444; }
  /* tabelas: largura da página, sem caixa arredondada que quebra entre páginas */
  .table-wrap { border: 0 !important; border-radius: 0 !important; overflow: visible !important; }
  .memoria { width: 100% !important; border-collapse: collapse; border: 1px solid #bbb; table-layout: auto; }
  .memoria th, .memoria td { white-space: normal !important; overflow-wrap: anywhere; padding: .2rem .3rem !important; vertical-align: top; }
  .memoria td.num, .memoria th.num { white-space: nowrap !important; }
  .memoria td .sub { white-space: normal; }
  .memoria thead th { background: #f2f2f2 !important; border-bottom: 1px solid #999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .memoria tbody tr { break-inside: avoid; page-break-inside: avoid; }
  .memoria tfoot td { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .params dl { border-radius: 0; }
  .kpis div { border-radius: 4px; }
  .demo-head, .result-head { break-inside: avoid; }
  .leia-tambem, .progresso, .barra-calc, .topo { display: none !important; }
}

/* ---------- Artigos: compartilhar e imprimir */
.compartilhar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.compartilhar-rot { font-size: .82rem; font-weight: 700; color: var(--muted); margin-right: .25rem; }
.comp-btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .86rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .42rem .8rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
.comp-btn:hover { border-color: var(--accent); color: var(--accent); }
.comp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.comp-btn svg { flex: none; }
.comp-btn[hidden] { display: none; }
.compartilhar-fim { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.compartilhar-fim .compartilhar-rot { width: 100%; font-size: .95rem; color: var(--ink); margin: 0 0 .15rem; }
@media (max-width: 520px) { .compartilhar-topo .comp-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compartilhar-topo .comp-btn { padding: .5rem; } }
.imprimir-topo { display: none; }
@media print {
  .compartilhar, .artigo-cta, .artigo-lateral, .leia-tambem, .artigo-layout ~ section, .aviso-final { display: none !important; }
  .artigo-layout { display: block !important; }
  .artigo p, .artigo li { font-size: 10.5pt !important; line-height: 1.5 !important; }
  .artigo h1 { font-size: 19pt; }
  .artigo h2 { font-size: 13pt; margin-top: 1rem; padding-top: .6rem; break-after: avoid; }
  .artigo section, .artigo { gap: .55rem; }
  .imprimir-topo { display: flex !important; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #000; padding-bottom: .35rem; margin-bottom: .4rem; order: -1; }
  .imprimir-marca { font-weight: 800; font-size: 13pt; } .imprimir-marca span { color: #1d4ed8; }
  .imprimir-url { font-size: 8pt; color: #444; }
  .resposta, .nota, .numero, .faq-item { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .artigo-tabela { break-inside: auto; }
  .fontes a::after { content: " — " attr(href); font-size: 8pt; color: #444; overflow-wrap: anywhere; }
  .artigo a { color: #000; }
}
.comp-aviso { position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30;
  width: max-content; max-width: min(26rem, calc(100vw - 2rem)); background: var(--ink); color: var(--surface); font-size: .92rem; font-weight: 600; line-height: 1.45;
  padding: .7rem 1rem; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); text-align: center; }
.comp-aviso[hidden] { display: none; }
@media (min-width: 1024px) { .comp-aviso { bottom: 2rem; } }
@media print { .comp-aviso { display: none !important; } }
/* Impressão dos artigos: tabelas sempre em formato de tabela (também no celular), sem caixas cortadas entre páginas */
@media print {
  .artigo-tabela { border: 0 !important; border-radius: 0 !important; overflow: visible !important; max-height: none !important; }
  .artigo-tabela table { width: 100% !important; border-collapse: collapse; border: 1px solid #999; font-size: 9pt; }
  .artigo-tabela th, .artigo-tabela td { border: 1px solid #bbb !important; padding: .25rem .4rem !important; font-size: 9pt !important; line-height: 1.35; overflow-wrap: normal !important; word-break: normal !important; hyphens: manual; }
  .artigo-tabela thead { display: table-header-group; }
  .artigo-tabela thead th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .artigo-tabela tr { break-inside: avoid; page-break-inside: avoid; }
  .artigo-tabela caption { font-size: 8pt; padding: .3rem 0; }
  .numero { break-inside: avoid; page-break-inside: avoid; }
  .nota, .resposta, .faq-item, .artigo blockquote { display: block !important; break-inside: avoid; page-break-inside: avoid; border-radius: 4px; }
  .nota p + p, .resposta p + p { margin-top: .3rem; }
  .numeros { break-inside: avoid; page-break-inside: avoid; }
  .artigo h2, .artigo h3 { break-after: avoid; page-break-after: avoid; }
  .artigo p, .artigo li { orphans: 3; widows: 3; }
}
/* Impressão dos artigos no Safari (iPhone/Mac): o Safari não divide bem contêineres flex e grid entre páginas
   e acaba cortando linhas ao meio. Na impressão, todo o artigo vira fluxo de blocos comum. */
@media print {
  body:has(.artigo-layout) main, body:has(.artigo-layout) .wrap, body:has(.artigo-layout) .stack-lg,
  .artigo-layout, .artigo-head, .artigo-corpo, .artigo, .artigo section, .artigo .resposta, .faq-lista, .faq-item,
  .artigo ul, .artigo ol, .artigo-corpo section ol, .fontes { display: block !important; }
  .artigo-head > * + *, .artigo-corpo > * + *, .artigo section > * + * { margin-top: .55rem; }
  .artigo-corpo > section { margin-top: .9rem; }
  .artigo ul, .artigo ol { padding-left: 1.2rem; }
  .artigo li + li { margin-top: .3rem; }
  .artigo-corpo section ol { padding-left: 0; }
  .artigo-corpo section ol > li { display: block; }
  .faq-item + .faq-item { margin-top: .45rem; }
  .faq-item h3 + p { margin-top: .2rem; }
  .imprimir-topo { display: flex !important; }
  /* números em destaque: três caixas lado a lado, claras */
  .numeros { display: block !important; font-size: 0; }
  .numero { display: inline-block !important; vertical-align: top; width: 32%; margin-right: 2%; padding: .35rem .5rem; border-radius: 4px; font-size: 10pt; box-sizing: border-box; }
  .numero:last-child { margin-right: 0; }
  .numero > span { display: block; }
  .numero-val { font-size: 12pt; }
  .numero-forte { background: #f2f2f2 !important; border: 1px solid #000 !important; }
  .numero-forte .numero-val { color: #000 !important; } .numero-forte .numero-rot, .numero-forte .numero-obs { color: #333 !important; }
  .nota, .resposta { padding: .5rem .75rem; }
}
