:root{
  --orange:#DF6734;
  --gold:#C58B2B;
  --red:#C74D5B;
  --purple:#755D93;
  --blue:#4C61A2;
  --green:#34796E;
  --chumbo:#2B2C2F;
  --bg:#F4EFE5;
  --bg-alt:#FBF8F1;
  --bg-deep:#E8E0D2;
  --text:#202123;
  --muted:#65615B;
  --dim:#969088;
  --line:rgba(43,44,47,.12);
  --line-h:rgba(43,44,47,.2);
  --orange-tint:rgba(223,103,52,.12);
  --gold-tint:rgba(197,139,43,.14);
  --red-tint:rgba(199,77,91,.10);
  --purple-tint:rgba(117,93,147,.11);
  --blue-tint:rgba(76,97,162,.10);
  --green-tint:rgba(52,121,110,.10);
}

body{background:var(--bg)}
.eb-sec{background:var(--bg)}
.eb-sec.alt{background:var(--bg-alt)}
.eb-hero{background:#202123}
.eb-hero .blob.b1{background:radial-gradient(circle,#DF6734,transparent 70%)}
.eb-hero .blob.b2{background:radial-gradient(circle,#4C61A2,transparent 70%)}
.hero-cover img{background:#F4EFE5}
.stat-card,.q-item,.step,.qty-card,.ba-col,.pos-block{background:var(--bg-alt)}
.eb-tbl{background:var(--bg-alt)}
.eb-tbl tr:nth-child(even) td{background:#F0EADD}
.eb-tbl th{background:#2B2C2F}

.bf-part{
  min-height:78vh;
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
  background:#2B2C2F;
  color:#fff;
  padding:80px 26px;
}
.bf-part::before,.bf-part::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.bf-part::before{
  width:520px;
  height:520px;
  right:-170px;
  top:-210px;
  background:radial-gradient(circle,var(--part-color),transparent 68%);
  opacity:.78;
}
.bf-part::after{
  width:260px;
  height:260px;
  left:-80px;
  bottom:-110px;
  border:38px solid color-mix(in srgb,var(--part-color) 52%,transparent);
  opacity:.65;
}
.bf-part-in{width:100%;max-width:960px;margin:0 auto;position:relative}
.bf-part .part-index{font-family:'Space Mono';font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--part-color);margin-bottom:20px}
.bf-part h2{font-family:'Outfit';font-size:clamp(42px,7vw,76px);line-height:.98;max-width:760px;letter-spacing:-.025em}
.bf-part p{font-size:18px;line-height:1.55;color:rgba(255,255,255,.72);max-width:700px;margin-top:24px}
.bf-part .part-map{display:flex;flex-wrap:wrap;gap:9px;margin-top:34px}
.bf-part .part-map span{font-family:'Space Mono';font-size:10px;letter-spacing:.08em;text-transform:uppercase;border:1px solid rgba(255,255,255,.24);border-radius:99px;padding:7px 12px;color:rgba(255,255,255,.8)}

.source-note{border-top:1px solid var(--line);padding-top:12px;margin:24px 0 0;font-size:12px;line-height:1.55;color:var(--dim)}
.source-note b{font-family:'Outfit';color:var(--muted)}
.source-list{display:grid;gap:12px;margin:26px 0}
.source-item{background:var(--bg-alt);border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:0 10px 10px 0;padding:16px 18px;break-inside:avoid}
.source-item h4{font-family:'Outfit';font-size:15px;margin-bottom:4px}
.source-item p{font-size:12.5px;color:var(--muted);line-height:1.55}
.source-item a{overflow-wrap:anywhere;color:var(--blue)}

.metric-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:26px 0}
.metric-card{background:var(--bg-alt);border:1px solid var(--line);border-top:5px solid var(--metric-color,var(--orange));border-radius:12px;padding:20px;break-inside:avoid}
.metric-card h4{font-family:'Outfit';font-size:18px;margin-bottom:6px}
.metric-card p{font-size:13.5px;color:var(--muted);line-height:1.5}
.metric-card code{font-family:'Space Mono';font-size:10.5px;color:var(--text);background:var(--bg-deep);padding:2px 5px;border-radius:4px}

.law-card{margin:26px 0;padding:24px;border-radius:14px;background:#2B2C2F;color:#fff;break-inside:avoid}
.law-card .law-kicker{font-family:'Space Mono';font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:10px}
.law-card h3{font-family:'Outfit';font-size:22px;margin-bottom:10px}
.law-card p{font-size:14px;color:rgba(255,255,255,.76);line-height:1.6}
.law-card p + p{margin-top:10px}

.evidence-row{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:start;margin:22px 0;padding:18px;background:var(--bg-alt);border:1px solid var(--line);border-radius:12px;break-inside:avoid}
.evidence-row .ev-label{font-family:'Space Mono';font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue)}
.evidence-row p{font-size:14px;color:var(--muted)}

.audit-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:26px 0}
.audit-card{background:var(--bg-alt);border:1px solid var(--line);border-radius:12px;padding:20px;break-inside:avoid}
.audit-card h4{font-family:'Outfit';font-size:17px;margin-bottom:10px;color:var(--audit-color,var(--orange))}
.audit-card ul{padding-left:18px;color:var(--muted);font-size:13.5px;display:grid;gap:7px}

.collection-note{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:30px 0}
.collection-book{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--bg-alt)}
.collection-book .book-num{font-family:'Space Mono';font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--orange)}
.collection-book h3{font-family:'Outfit';font-size:20px;margin:7px 0}
.collection-book p{font-size:13.5px;color:var(--muted)}

@media (max-width:760px){
  .metric-grid,.audit-grid,.collection-note{grid-template-columns:1fr}
  .evidence-row{grid-template-columns:1fr}
  .bf-part{min-height:60vh}
}

@media print{
  html,body{background:var(--bg)!important}
  .interlude{display:none!important}
  .bf-part{
    height:257mm;
    min-height:0;
    padding:24mm 18mm;
    break-before:page;
    break-after:page;
    break-inside:avoid;
  }
  .bf-part h2{font-size:35pt}
  .bf-part p{font-size:11pt}
  .bf-part::before{width:150mm;height:150mm;right:-55mm;top:-60mm}
  .bf-part::after{width:70mm;height:70mm;left:-28mm;bottom:-30mm}
  .bf-part .part-map span{font-size:7pt;padding:2mm 3mm}
  .metric-grid,.audit-grid,.collection-note{grid-template-columns:repeat(2,1fr);break-inside:auto}
  .metric-card,.audit-card,.collection-book,.source-item,.law-card,.evidence-row{break-inside:avoid}
  .metric-card,.audit-card,.collection-book{padding:4mm}
  .source-item{padding:4mm 5mm}
  .law-card{padding:6mm}
  .source-note{font-size:7.5pt}
}

/* Rebuild editorial. Aproxima o ebook da linguagem dos dois livros. */
.eb-hero{
  background:#111214;
  color:#fff;
  border-top:5px solid var(--orange);
}
.eb-hero .blob{display:none}
.eb-hero .kicker{color:var(--orange);font-weight:700}
.eb-hero h1{font-family:'Newsreader',Georgia,serif;font-weight:600;letter-spacing:-.045em;line-height:.92}
.eb-hero h1 em{font-style:italic;color:var(--orange)}
.eb-hero .sub{font-family:'Newsreader',Georgia,serif;font-style:italic;color:rgba(255,255,255,.78);line-height:1.35}
.eb-hero .hero-meta{color:rgba(255,255,255,.52)}
.hero-cover img{border-radius:0;box-shadow:none}

.book-title-page,.book-toc{background:#F4EFE5;color:var(--text)}
.book-title-page{position:relative;padding:84px max(26px,8vw);min-height:82vh;display:flex;flex-direction:column;justify-content:space-between}
.book-series,.toc-kicker{font-family:'Space Mono';font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--orange)}
.book-title-main h1{font-family:'Newsreader',Georgia,serif;font-size:clamp(58px,9vw,104px);font-weight:600;line-height:.85;letter-spacing:-.055em;max-width:760px;margin:28px 0 24px}
.book-title-main h1 em{font-style:italic;color:var(--orange)}
.book-subtitle{font-family:'Newsreader',Georgia,serif;font-size:24px;font-style:italic;line-height:1.35;max-width:600px;color:#4C4842}
.book-author{margin-top:34px;font-family:'Inter';font-size:12px;font-weight:700;letter-spacing:.28em;text-transform:uppercase}
.book-title-note{font-family:'Inter';font-size:12px;line-height:1.75;color:var(--muted)}

.book-toc{padding:80px max(26px,8vw)}
.book-toc h2{font-family:'Newsreader',Georgia,serif;font-size:48px;line-height:1;margin:12px 0 8px}
.toc-intro{font-family:'Newsreader',Georgia,serif;font-style:italic;font-size:19px;color:var(--muted);margin-bottom:38px}
.toc-groups{display:grid;grid-template-columns:1fr 1fr;gap:30px 44px}
.toc-group{border-top:1px solid #8E877F;padding-top:12px}
.toc-group-head{display:flex;gap:12px;align-items:baseline;margin-bottom:8px}
.toc-group-head span{font-family:'Space Mono';font-size:9px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--orange)}
.toc-group-head b{font-family:'Outfit';font-size:17px}
.toc-group p{font-family:'Newsreader',Georgia,serif;font-size:16px;line-height:1.45;padding:4px 0;border-bottom:1px solid rgba(43,44,47,.09)}
.toc-group p i{display:inline-block;width:30px;font-family:'Space Mono';font-size:9px;font-style:normal;color:var(--dim)}

.eb-sec .lead{font-family:'Newsreader',Georgia,serif;font-size:19px;line-height:1.7;color:#35332F;max-width:70ch}
.eb-sec h2{font-family:'Newsreader',Georgia,serif;font-weight:600;letter-spacing:-.025em;line-height:1.04}
.eb-sec h3.h3{font-family:'Newsreader',Georgia,serif;font-weight:600;letter-spacing:-.015em}
.eb-sec h2 .hl-orange,.eb-sec h2 .hl-gold,.eb-sec h2 .hl-red,.eb-sec h2 .hl-purple,.eb-sec h2 .hl-blue{font-style:italic}

.stat-card{background:transparent;border:0;border-top:2px solid var(--orange);border-radius:0;padding:16px 4px 4px}
.stat-card.gold{border-top-color:var(--gold)}.stat-card.red{border-top-color:var(--red)}.stat-card.purple{border-top-color:var(--purple)}.stat-card.blue{border-top-color:var(--blue)}
.stat-card .desc{font-family:'Newsreader',Georgia,serif;font-size:15px;line-height:1.45}
.q-item{background:transparent;border:0;border-bottom:1px solid var(--line-h);border-radius:0;padding:15px 2px}
.q-item p{font-family:'Newsreader',Georgia,serif;font-weight:500;font-size:18px}
.q-item .q-mark{font-family:'Newsreader',Georgia,serif;font-style:italic}

.metric-card,.audit-card,.collection-book,.step,.source-item,.evidence-row{
  background:transparent;
  border-radius:0;
  box-shadow:none;
}
.metric-card{border:0;border-top:3px solid var(--metric-color,var(--orange));padding:16px 2px}
.metric-card p,.audit-card li,.collection-book p,.step p,.source-item p,.evidence-row p{font-family:'Newsreader',Georgia,serif;font-size:15px;line-height:1.55}
.audit-card{border:0;border-top:2px solid var(--audit-color,var(--orange));padding:16px 3px}
.collection-book{border:0;border-top:2px solid var(--orange);padding:18px 2px}
.source-item{border:0;border-bottom:1px solid var(--line-h);padding:14px 2px}
.evidence-row{border:0;border-bottom:1px solid var(--line-h);padding:14px 2px}
.step{border:0;border-top:1px solid var(--line-h);padding:18px 2px}
.step .s-num{border-radius:50%;background:var(--orange)}

.law-card{background:#EFE3D5;color:var(--text);border:1px solid #D8C1AC;border-radius:0;padding:26px}
.law-card .law-kicker{color:var(--orange)}
.law-card h3{font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:26px}
.law-card p{font-family:'Newsreader',Georgia,serif;color:#34302C;font-size:16px;line-height:1.6}
.callout{background:transparent;border-radius:0;border-left:3px solid var(--orange);font-family:'Newsreader',Georgia,serif;font-size:16px;line-height:1.55;padding:12px 18px}
.callout.red,.callout.blue{background:transparent}
.callout b{font-family:'Outfit'}
.pull-quote{font-family:'Newsreader',Georgia,serif;font-size:28px;font-weight:500}

.eb-tbl{background:transparent;border:0;border-top:1px solid #777069;border-bottom:1px solid #777069;border-radius:0}
.eb-tbl th{background:transparent;color:var(--text);font-family:'Space Mono';font-size:10px;letter-spacing:.08em;text-transform:uppercase;border-bottom:1px solid #777069}
.eb-tbl td{font-family:'Newsreader',Georgia,serif;font-size:14.5px;background:transparent!important}
.eb-tbl tr:not(:last-child) td{border-bottom:1px solid rgba(43,44,47,.10)}

.bf-part h2{font-family:'Newsreader',Georgia,serif;font-weight:500;font-size:clamp(52px,8vw,88px);line-height:.92;letter-spacing:-.045em}
.bf-part p{font-family:'Newsreader',Georgia,serif;font-size:21px;line-height:1.55}
.bf-part .part-map span{border:0;border-bottom:1px solid rgba(255,255,255,.28);border-radius:0;padding:7px 0;margin-right:14px}

@media print{
  body{font-family:'Newsreader',Georgia,serif;font-size:11pt;line-height:1.62;background:#F4EFE5!important}
  .eb-hero{padding:24mm 20mm;height:297mm;display:block;background:#111214!important;color:#fff!important;overflow:hidden}
  .eb-hero-in.with-cover{display:block;height:100%;max-width:none;position:relative}
  .eb-hero .hero-text{position:relative;z-index:2;max-width:160mm}
  .eb-hero .kicker{font-size:7.5pt;margin-bottom:10mm;max-width:130mm}
  .eb-hero h1{font-size:53pt;line-height:.84;max-width:145mm;margin-bottom:7mm}
  .eb-hero .sub{font-size:17pt;line-height:1.25;max-width:125mm;color:rgba(255,255,255,.78)!important}
  .eb-hero .hero-meta{font-family:'Inter';font-size:7.5pt;max-width:105mm;margin-top:8mm;color:rgba(255,255,255,.52)!important}
  .eb-hero .hero-cover{display:block;position:absolute;width:145mm;height:162mm;right:-18mm;bottom:-18mm;max-width:none;margin:0;z-index:1;overflow:hidden}
  .eb-hero .hero-cover img{width:100%;height:100%;object-fit:cover;object-position:center bottom;background:transparent}

  .book-title-page,.book-toc{height:313mm;min-height:0;break-after:page;break-inside:avoid;padding:24mm 20mm;background:#F4EFE5!important}
  .book-title-main h1{font-size:46pt;margin:14mm 0 7mm;max-width:150mm}
  .book-subtitle{font-size:15pt;max-width:130mm}
  .book-title-note{font-size:8pt;line-height:1.65}
  .book-toc{padding-top:30mm}
  .book-toc h2{font-size:28pt;margin:4mm 0 2mm}
  .toc-intro{font-size:11pt;margin-bottom:8mm}
  .toc-groups{grid-template-columns:1fr 1fr;gap:7mm 12mm}
  .toc-group{padding-top:3mm}
  .toc-group-head b{font-size:11pt}
  .toc-group p{font-size:9pt;line-height:1.35;padding:1.8mm 0}

  .bf-part{height:313mm;min-height:0;padding:34mm 20mm;break-before:page;break-after:page;background:#2B2C2F!important}
  .bf-part h2{font-size:40pt;max-width:155mm}
  .bf-part p{font-size:13pt;max-width:145mm}
  .bf-part .part-map span{font-size:7pt}

  .chap-cover{position:relative;padding:12mm 18mm 3mm;border-top:3px solid var(--orange);background:#F0E3D6!important}
  .chap-cover .chap-num{position:absolute;right:18mm;top:8mm;font-family:'Newsreader',Georgia,serif;font-size:54pt;opacity:.11}
  .chap-cover .chap-line{margin-top:0;max-width:145mm}
  .chap-cover .chap-bar{display:none}
  .chap-cover .chap-label{font-size:7.5pt;color:#4C4842}
  .chap-cover + .eb-sec{padding-top:5mm}

  .eb-sec{padding:7mm 18mm;background:#F4EFE5!important}
  .eb-sec.alt{background:#F7F1E7!important}
  .eb-sec h2{font-size:24pt;line-height:1.02;margin-bottom:5mm}
  .eb-sec h3.h3{font-size:16pt;margin:8mm 0 3mm}
  .eb-sec .lead{font-size:11.2pt;line-height:1.6;margin-bottom:5mm;max-width:none;orphans:3;widows:3}

  .stat-grid{grid-template-columns:repeat(4,1fr);gap:5mm;margin:6mm 0}
  .stat-card{padding:4mm 1mm 1mm}
  .stat-card .num{font-size:20pt}
  .stat-card .desc{font-size:8.7pt;line-height:1.38}
  .stat-card .src{font-size:6.2pt}
  .q-item{padding:3mm 0}
  .q-item p{font-size:10.5pt}

  .metric-grid,.audit-grid,.collection-note{gap:6mm 9mm}
  .metric-card,.audit-card,.collection-book{padding:4mm 1mm}
  .metric-card p,.audit-card li,.collection-book p,.step p,.source-item p,.evidence-row p{font-size:9.2pt;line-height:1.48}
  .law-card{padding:6mm;border-radius:0}
  .law-card h3{font-size:16pt}
  .law-card p{font-size:9.7pt}
  .callout{font-size:9.5pt;padding:3mm 5mm;margin:5mm 0}
  .pull-quote{font-size:16pt}
  .step{padding:4mm 1mm}
  .step .s-num{background:var(--orange)}

  .eb-tbl{font-size:8.5pt}
  .eb-tbl th{font-size:6.7pt;padding:2.5mm 2mm}
  .eb-tbl td{font-size:8.2pt;line-height:1.35;padding:2.5mm 2mm}
  .source-item{padding:3mm 1mm}
  .source-item h4{font-family:'Outfit';font-size:9pt}
  .source-note{font-family:'Inter';font-size:7.2pt}

  .eb-sec#salll{background:#F4EFE5!important;break-before:auto}
  .eb-foot{background:#F4EFE5!important;border-top:1px solid #B6ADA4;color:#5E5852!important}
}
