/* ============================================================
   RBS Advogados — páginas internas (áreas e artigos)
   Mesmo sistema visual da home: Playfair Display + Inter,
   creme #F5F3EF, grafite #1C1F2E, dourado #C4963A.
   ============================================================ */
:root {
  --bg: #F5F3EF;
  --bg-warm: #EFEBE3;
  --ink: #1C1F2E;
  --body: rgba(28,31,46,0.82);
  --muted: rgba(28,31,46,0.60);
  --line: rgba(28,31,46,0.14);
  --gold: #C4963A;
  --gold-text: #8A6420;           /* dourado escuro: contraste AA sobre creme */
  --dark: #0d1b2a;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --measure: 720px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }

/* Cabeçalho */
.top { border-top: 4px solid var(--gold); background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.top-logo img { height: 72px; width: auto; }
.top-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; letter-spacing: .02em; }
.top-nav a { color: var(--ink); text-decoration: none; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--gold-text); }
.top-nav .pill { border: 1px solid var(--ink); padding: 4px 14px; border-radius: 999px; }

/* Estrutura */
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.crumbs { font-size: 13px; color: var(--muted); padding-top: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; margin: 32px 0 12px; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
h1 em, h2 em { color: var(--gold-text); font-style: italic; }
.lede { font-size: 19px; color: var(--body); margin: 0 0 24px; }

.byline { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0 36px; font-size: 14px; color: var(--muted); }
.byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.byline strong { color: var(--ink); font-weight: 600; display: block; }

/* Resposta direta (topo do artigo) */
.answer { background: #fff; border-left: 3px solid var(--gold); padding: 20px 24px; margin: 0 0 40px; border-radius: 0 6px 6px 0; }
.answer-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; margin-bottom: 6px; }
.answer p { margin: 0; }

/* Corpo do texto */
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.25; margin: 48px 0 14px; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--body); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 2px 0 14px 48px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.note { background: var(--bg-warm); padding: 18px 22px; border-radius: 6px; font-size: 15px; margin: 28px 0; }
.note p { margin: 0; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 480px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--bg-warm); }

.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; }
.sources h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 10px; }
.sources ol { padding-left: 20px; margin: 0; }
.sources li { margin: 4px 0; }

.disclaimer { font-size: 14px; color: var(--muted); font-style: italic; margin-top: 28px; }

/* Próximo passo */
.next { background: var(--dark); color: #fff; border-radius: 8px; padding: 32px 28px; margin: 48px 0; }
.next h2 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 10px; color: #fff; }
.next p { color: rgba(255,255,255,.80); margin: 0 0 20px; }
.next .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #fff; color: var(--ink); }
.btn-line { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-line:hover { border-color: #fff; color: #fff; }

/* Relacionados / biblioteca */
.related { margin: 48px 0; }
.related h2 { font-family: var(--display); font-size: 24px; margin: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: border-color .2s; }
.card:hover { border-color: var(--gold); color: var(--ink); }
.card .kind { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.card h3 { font-family: var(--display); font-size: 21px; line-height: 1.3; margin: 0; font-weight: 600; }
.card p { margin: 0; font-size: 15px; color: var(--body); }
.card .meta { font-size: 13px; color: var(--muted); margin-top: auto; }

/* Rodapé */
.foot { background: var(--dark); color: rgba(255,255,255,.72); margin-top: 72px; font-size: 14px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.foot img { height: 64px; width: auto; margin-bottom: 12px; }
.foot h3 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 4px 0; }
.foot a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 24px; text-align: center; font-size: 13px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-nav { gap: 14px; font-size: 13px; }
  .prose h2 { font-size: 24px; }
  .next { padding: 26px 20px; }
}
