:root{
  --chapter-sidebar: 342px;
  --chapter-aside: 340px;
}

body.chapter-page{
  background:#fff;
}

.chapter-page .topbar{
  background:#061b35;
  position:sticky;
  top:0;
}

.chapter-page .topbar-nav a.active{
  color:#fff;
  border-bottom:3px solid rgba(255,255,255,.85);
  padding-bottom:17px;
}

.chapter-layout{
  display:grid;
  grid-template-columns:var(--chapter-sidebar) minmax(0,1fr) var(--chapter-aside);
  min-height:calc(100vh - 76px);
  padding-top:0;
}

.chapter-sidebar{
  border-right:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#fbfaf7);
  padding:32px 28px 48px;
}

.sidebar-title h1{
  margin:0 0 8px;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--navy);
  font-size:22px;
  line-height:1.16;
  letter-spacing:-.02em;
}

.sidebar-title p{
  margin:0;
  color:var(--ink);
  font-size:16px;
}

.version-select{
  margin:26px 0 38px;
  height:44px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--navy);
  background:#fff;
  font-size:14px;
  cursor:default;
}

.sidebar-kicker{
  margin:0 0 14px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#1b2638;
  font-size:13px;
  font-weight:850;
}

.chapter-nav{
  display:grid;
  gap:3px;
}

.chapter-nav button{
  width:100%;
  border:0;
  background:transparent;
  display:grid;
  grid-template-columns:34px 1fr 18px;
  gap:12px;
  align-items:center;
  min-height:48px;
  padding:0 12px;
  border-radius:8px;
  color:#1a2b44;
  text-align:left;
  font-size:14px;
  cursor:pointer;
}

.chapter-nav button strong{
  font-weight:850;
}

.chapter-nav button span{
  font-weight:950;
  color:#0b2344;
}

.chapter-nav button small{
  opacity:.45;
  font-size:18px;
}

.chapter-nav button.active{
  background:linear-gradient(135deg,var(--navy),#092b53);
  color:#fff;
  box-shadow:0 10px 24px rgba(6,27,53,.18);
}

.chapter-nav button.active span,
.chapter-nav button.active small{
  color:#fff;
  opacity:1;
}

.side-card{
  margin-top:30px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  box-shadow:0 12px 28px rgba(6,27,53,.04);
}

.side-card h3{
  margin:0 0 18px;
  font-size:13px;
  color:var(--ink);
  text-transform:uppercase;
  letter-spacing:.04em;
}

.side-card p{
  margin:0 0 16px;
  color:#32445c;
  font-size:14px;
  line-height:1.5;
}

.related-card a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 0;
  color:#0b3d75;
  font-size:12.5px;
  font-weight:850;
}

.outline-button{
  display:inline-flex;
  min-height:42px;
  padding:0 26px;
  border:1px solid #0b3d75;
  border-radius:7px;
  align-items:center;
  justify-content:center;
  font-weight:850;
  color:#0b3d75;
}

.link-button{
  display:block;
  margin-top:16px;
  color:#0b3d75;
  font-weight:850;
  font-size:13px;
}

.chapter-main{
  padding:26px 46px 64px;
  max-width:100%;
}

.breadcrumbs{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:28px;
  color:#001f4f;
  font-size:13px;
}

.breadcrumbs a{
  font-weight:850;
  color:#003c83;
}

.breadcrumbs strong{
  font-weight:500;
  color:#1f2d42;
}

.chapter-hero{
  display:grid;
  grid-template-columns:104px 1fr;
  gap:28px;
  align-items:center;
  margin-bottom:34px;
}

.chapter-emblem{
  width:104px;
  height:104px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:radial-gradient(circle at 28% 25%,rgba(255,255,255,.22),transparent 35%), var(--navy);
  color:#fff;
  font-size:52px;
  box-shadow:0 20px 48px rgba(6,27,53,.18);
}

.chapter-roman{
  margin:0 0 6px;
  color:#063c82;
  text-transform:uppercase;
  font-size:18px;
  letter-spacing:.04em;
  font-weight:950;
}

.chapter-hero h2{
  margin:0;
  color:var(--navy);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:54px;
  line-height:.98;
  letter-spacing:-.045em;
}

.chapter-hero p:last-child{
  max-width:820px;
  margin:16px 0 0;
  color:#2d3b4f;
  font-size:18px;
  line-height:1.55;
}

.chapter-tabs{
  display:flex;
  gap:10px;
  border-bottom:1px solid var(--line);
  margin-bottom:28px;
}

.chapter-tabs button{
  min-height:52px;
  padding:0 20px;
  border:0;
  background:transparent;
  color:#25344a;
  font-size:14px;
  cursor:pointer;
  border-bottom:3px solid transparent;
}

.chapter-tabs button.active{
  color:#0b3d75;
  border-bottom-color:#0b3d75;
  font-weight:950;
}

.featured-panel{
  min-height:160px;
  border-radius:10px;
  padding:32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  overflow:hidden;
  background:linear-gradient(135deg,#edf4fb,#f7fafc);
  margin-bottom:34px;
  position:relative;
}

.featured-panel h3,
.text-section h3,
.articles-section h3{
  margin:0 0 14px;
  color:var(--navy);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:25px;
}

.featured-panel p,
.text-section p{
  margin:0;
  max-width:680px;
  color:#1d2f47;
  line-height:1.65;
  font-size:15px;
}

.watermark{
  position:absolute;
  right:30px;
  bottom:-24px;
  color:rgba(6,27,53,.045);
  font-size:150px;
  line-height:1;
}

.text-section{
  padding:8px 0 26px;
}

.ideas-strip ul{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:0;
  padding:0;
  list-style:none;
}

.ideas-strip li{
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  padding:16px;
  color:#23364d;
  line-height:1.45;
  font-size:14px;
}

.ideas-strip li::before{
  content:"✓";
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  margin-right:8px;
  border-radius:50%;
  background:#0b3d75;
  color:#fff;
  font-size:11px;
  font-weight:900;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin:12px 0 18px;
}

.section-head span{
  color:#69778a;
  font-size:18px;
}

.articles-list{
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.article-row{
  width:100%;
  border:0;
  border-bottom:1px solid var(--line);
  background:#fff;
  min-height:62px;
  display:grid;
  grid-template-columns:120px minmax(160px,.45fr) 1fr 30px;
  align-items:center;
  gap:18px;
  padding:0 22px;
  text-align:left;
  cursor:pointer;
  color:var(--ink);
}

.article-row:last-child{
  border-bottom:0;
}

.article-row:hover{
  background:#f8fbff;
}

.article-row .article-label{
  color:#0b3d75;
  font-weight:850;
}

.article-row strong{
  font-size:14px;
}

.article-row p{
  margin:0;
  color:#32445c;
  font-size:13px;
  line-height:1.45;
}

.article-row .chev{
  font-size:28px;
  color:#5f6f86;
}

.chapter-bottom-nav{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-top:22px;
}

.chapter-bottom-nav button{
  min-width:190px;
  min-height:46px;
  border-radius:8px;
  border:1px solid var(--line);
  background:#fff;
  color:#1f2d42;
  font-weight:850;
  cursor:pointer;
}

.chapter-bottom-nav button:last-child{
  background:var(--navy);
  color:#fff;
}

.chapter-aside{
  border-left:1px solid var(--line);
  padding:32px 32px 48px 24px;
  background:#fff;
}

.aside-card{
  border:1px solid var(--line);
  border-radius:10px;
  padding:20px;
  margin-bottom:14px;
  box-shadow:0 12px 28px rgba(6,27,53,.035);
}

.aside-card h3{
  margin:0 0 16px;
  color:#1b2638;
  text-transform:uppercase;
  font-size:13px;
  letter-spacing:.04em;
}

.page-index a{
  display:block;
  color:#2a3b52;
  font-size:13.5px;
  margin:12px 0;
}

.key-card{
  background:linear-gradient(135deg,#fff,#fff8ee);
}

.key-card ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:13px;
}

.key-card li{
  display:grid;
  grid-template-columns:22px 1fr;
  gap:10px;
  color:#23364d;
  font-size:13.5px;
  line-height:1.45;
}

.key-card li::before{
  content:"✓";
  width:18px;
  height:18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#0b3d75;
  color:#fff;
  font-size:10px;
  margin-top:1px;
}

.why-card{
  background:linear-gradient(135deg,#f6fffb,#fff);
}

.why-card p{
  color:#23364d;
  font-size:14px;
  line-height:1.55;
}

.why-card a,
.faq-mini-card a{
  color:#0b3d75;
  font-size:13px;
  font-weight:950;
}

.faq-mini-card{
  background:linear-gradient(135deg,#fff,#fff8ee);
}

.faq-mini-card button{
  width:100%;
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  min-height:40px;
  text-align:left;
  color:#1f2d42;
  font-size:13px;
  cursor:pointer;
}

.article-drawer{
  position:fixed;
  inset:0;
  z-index:200;
  pointer-events:none;
}

.article-drawer.open{
  pointer-events:auto;
}

.drawer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(3,14,29,.42);
  opacity:0;
  transition:.2s ease;
}

.article-drawer.open .drawer-backdrop{
  opacity:1;
}

.drawer-panel{
  position:absolute;
  top:0;
  right:0;
  width:min(620px,92vw);
  height:100%;
  overflow:auto;
  background:#fff;
  padding:42px 44px;
  transform:translateX(100%);
  transition:.24s ease;
  box-shadow:-28px 0 60px rgba(3,14,29,.22);
}

.article-drawer.open .drawer-panel{
  transform:translateX(0);
}

.drawer-close{
  position:absolute;
  top:18px;
  right:18px;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-size:24px;
}

.drawer-kicker{
  margin:0 0 8px;
  color:#0b3d75;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:950;
}

.drawer-panel h2{
  margin:0 0 22px;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--navy);
  font-size:36px;
  letter-spacing:-.035em;
}

.drawer-body{
  color:#22364e;
  line-height:1.72;
  font-size:15px;
}

.drawer-body p{
  margin:0 0 15px;
}

.drawer-body .drawer-article{
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:18px;
}

.drawer-body .drawer-article.active{
  background:linear-gradient(90deg,rgba(11,61,117,.08),transparent);
  margin-left:-14px;
  padding-left:14px;
  border-radius:8px;
}

.drawer-body h3{
  margin:0 0 10px;
  color:var(--navy);
  font-size:18px;
}

.drawer-pdf{
  display:inline-flex;
  min-height:42px;
  padding:0 18px;
  margin-top:26px;
  border-radius:8px;
  background:var(--navy);
  color:#fff;
  align-items:center;
  font-weight:850;
}

.chapter-footer{
  background:#031224;
  color:#fff;
  min-height:94px;
  display:grid;
  grid-template-columns:260px 1fr auto;
  gap:34px;
  align-items:center;
  padding:24px 54px;
}

.chapter-footer-brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-transform:uppercase;
  font-weight:950;
}

.chapter-footer-brand img{
  width:56px;
  height:56px;
  object-fit:contain;
}

.chapter-footer p{
  margin:0;
  color:rgba(255,255,255,.74);
  max-width:620px;
  line-height:1.5;
}

.chapter-footer nav{
  display:flex;
  gap:26px;
}

.chapter-footer a{
  color:#fff;
  opacity:.85;
}

@media(max-width:1280px){
  .chapter-layout{
    grid-template-columns:300px minmax(0,1fr);
  }
  .chapter-aside{
    display:none;
  }
}

@media(max-width:900px){
  .chapter-layout{
    grid-template-columns:1fr;
  }
  .chapter-sidebar{
    position:relative;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .chapter-nav{
    grid-template-columns:repeat(2,1fr);
  }
  .chapter-main{
    padding:28px 24px 54px;
  }
  .chapter-hero{
    grid-template-columns:1fr;
  }
  .ideas-strip ul{
    grid-template-columns:1fr;
  }
  .article-row{
    grid-template-columns:1fr 1fr 30px;
  }
  .article-row p{
    grid-column:1 / -1;
    padding-bottom:14px;
  }
  .chapter-footer{
    grid-template-columns:1fr;
  }
}

@media(max-width:640px){
  .chapter-nav{
    grid-template-columns:1fr;
  }
  .chapter-tabs{
    overflow:auto;
  }
  .chapter-hero h2{
    font-size:40px;
  }
}

/* INTRO + MAP */

.intro-grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:34px;
  align-items:stretch;
}

.intro-left,
.map-module{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:34px;
  box-shadow:0 18px 46px rgba(6,27,53,.075);
}

.section-kicker{
  margin:0 0 12px;
  color:var(--gold);
  font-size:12px;
  font-weight:950;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.intro-left h2,
.map-module h2{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--navy);
  font-size:42px;
  line-height:1.04;
  letter-spacing:-.04em;
}

.section-lead,
.map-intro{
  max-width:680px;
  color:var(--muted);
  font-size:17px;
  line-height:1.62;
  margin:18px 0 28px;
}

.intro-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.soft-card{
  min-height:235px;
  background:#f9fbfd;
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px;
  box-shadow:none;
}

.round-icon{
  width:46px;
  height:46px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--navy);
  margin-bottom:18px;
}

.round-icon img{
  width:24px;
  height:24px;
  object-fit:contain;
}

.round-icon.teal{
  background:var(--teal);
}

.round-icon.sky{
  background:#0f4c81;
}

.soft-card h3{
  margin:0 0 10px;
  color:var(--navy);
  font-size:17px;
  line-height:1.18;
}

.soft-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.soft-card a{
  display:inline-block;
  margin-top:16px;
  color:#0b3d75;
  font-size:13px;
  font-weight:950;
}

.map-module{
  display:flex;
  flex-direction:column;
}

.world-map{
  flex:1;
  min-height:360px;
  position:relative;
  overflow:hidden;
  border-radius:18px;
  background:
    radial-gradient(circle at 25% 35%,rgba(217,154,43,.16),transparent 24%),
    radial-gradient(circle at 70% 55%,rgba(22,158,147,.14),transparent 28%),
    linear-gradient(135deg,#f4f7fb,#eaf0f7);
}

.world-map::before{
  content:"";
  position:absolute;
  inset:26px;
  opacity:.88;
  background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 430"><path fill="%23cfd9e6" d="M152 168h92l23 32 79-18 65 26 83-61 85 20 68-33 102 58-24 50 55 42-102 37-84-36-101 43-86-59-110 22-70-55-94 23z"/></svg>') center/contain no-repeat;
}

.pin{
  position:absolute;
  z-index:2;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#0b3d75;
  border:3px solid #fff;
  box-shadow:0 4px 14px rgba(6,27,53,.32);
}

.p1{left:45%;top:50%}
.p2{left:53%;top:40%}
.p3{left:60%;top:55%}
.p4{left:67%;top:38%}
.p5{left:72%;top:60%}
.p6{left:78%;top:48%}
.p7{left:34%;top:58%}
.p8{left:58%;top:30%}

.map-popup{
  position:absolute;
  right:34px;
  top:70px;
  z-index:3;
  min-width:145px;
  padding:16px 18px;
  border-radius:12px;
  background:var(--navy);
  color:#fff;
  box-shadow:0 16px 35px rgba(6,27,53,.28);
}

.map-popup strong,
.map-popup span,
.map-popup small{
  display:block;
}

.map-popup span{
  margin-top:4px;
  opacity:.82;
  font-size:12px;
}

.map-popup small{
  margin-top:10px;
  color:var(--gold2);
  font-size:12px;
  font-weight:900;
}

.outline-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  margin-top:18px;
  min-height:40px;
  padding:0 16px;
  border-radius:10px;
  border:1px solid var(--line);
  color:var(--navy);
  font-size:13px;
  font-weight:900;
}


/* FAQ page overrides */

.faq-page .topbar-nav a.active{
  color:#fff;
  border-bottom:3px solid rgba(255,255,255,.85);
  padding-bottom:17px;
}

.faq-page .chapter-emblem{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:900;
}

.faq-nav button{
  grid-template-columns:34px 1fr 18px;
}

.faq-list .article-row{
  grid-template-columns:minmax(260px,.55fr) 1fr 30px;
}

.faq-list .article-row .article-label{
  display:none;
}

.faq-list .article-row strong{
  color:var(--navy);
  font-size:14px;
}

.faq-list .article-row p{
  color:#34475f;
}

.faq-answer{
  padding:4px 0 4px;
}

.faq-answer h3{
  margin:0 0 12px;
  color:var(--navy);
  font-size:18px;
}

.faq-answer p{
  margin:0;
  color:#22364e;
  line-height:1.72;
}

.drawer-body .drawer-article.faq-answer{
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:18px;
}

.drawer-body .drawer-article.faq-answer.active{
  background:linear-gradient(90deg,rgba(11,61,117,.08),transparent);
  margin-left:-14px;
  padding-left:14px;
  border-radius:8px;
}

@media(max-width:900px){
  .faq-list .article-row{
    grid-template-columns:1fr 30px;
  }
  .faq-list .article-row p{
    grid-column:1 / -1;
  }
}


/* Ajuste global de footer compartido */
.chapter-footer-brand img,
.footer-brand img{
  width:42px;
  height:42px;
  max-width:42px;
  max-height:42px;
  object-fit:contain;
  flex:0 0 auto;
}
