
:root{
  --ink:#111318;
  --muted:#636b74;
  --paper:#ffffff;
  --soft:#f4f6f8;
  --line:#e5e8eb;
  --shadow:0 20px 55px rgba(21,28,35,.11);
  --accent:#E5243B;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  padding:28px;
  background:#eef1f3;
  color:var(--ink);
  font-family:Arial, Helvetica, sans-serif;
  line-height:1.55;
}
a{color:inherit}
.page-frame{
  position:relative;
  max-width:1240px;
  margin:0 auto;
  min-height:calc(100vh - 56px);
  background:var(--paper);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
  padding:0 58px 28px;
}
.site-header{
  position:relative;
  z-index:4;
  min-height:112px;
  display:flex;
  align-items:center;
  gap:30px;
  border-bottom:1px solid rgba(0,0,0,.045);
}
.brand{
  font-weight:800;
  font-size:20px;
  line-height:1.02;
  text-decoration:none;
  letter-spacing:-.4px;
}
.header-divider{width:1px;height:44px;background:#d8dde1}
.topnav{margin-left:auto;display:flex;gap:28px;align-items:center}
.topnav a{
  text-decoration:none;
  font-size:14px;
  color:#2c3137;
  border-bottom:2px solid transparent;
  padding:6px 0;
}
.topnav a:hover{border-color:var(--accent)}
main{position:relative;z-index:2}
footer{
  margin-top:54px;
  padding:22px 0 0;
  border-top:1px solid var(--line);
  text-align:center;
  color:#606870;
  font-size:13px;
}
footer a{font-weight:800;text-decoration:none;color:#1d2329}
.trail{
  position:absolute;
  z-index:0;
  width:100%;
  left:0;
  opacity:.45;
  pointer-events:none;
}
.trail path{
  fill:none;
  stroke:#c9ced3;
  stroke-width:1.4;
  stroke-dasharray:7 10;
}
.trail-top{top:18px;height:175px}
.trail-bottom{bottom:0;height:160px}
.footprint.corner{
  position:absolute;
  z-index:1;
  width:32px;
  height:48px;
  opacity:.95;
  pointer-events:none;
}
.corner.top-left{top:22px;left:18px}
.corner.top-right{top:22px;right:18px}
.corner.bottom-left{bottom:8px;left:20px}
.corner.bottom-right{bottom:8px;right:20px}
.breadcrumbs{
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap;
  font-size:12px;
  color:#75808a;
  padding-top:22px;
}
.breadcrumbs a{text-decoration:none;color:#317fb6}
.breadcrumbs strong{color:var(--accent)}
.eyebrow{
  margin:0 0 8px;
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  letter-spacing:.13em;
}
.lead{
  max-width:760px;
  color:#4d555d;
  font-size:18px;
}
.primary-button{
  display:inline-block;
  margin-top:18px;
  padding:14px 26px;
  border-radius:999px;
  text-decoration:none;
  background:var(--accent);
  color:#fff;
  font-size:18px;
  box-shadow:0 8px 20px rgba(229,36,59,.22);
}
.primary-button:hover{filter:brightness(.96);transform:translateY(-1px)}
/* HOME */
.home-hero{
  position:relative;
  min-height:610px;
  display:grid;
  grid-template-columns:1.18fr .82fr;
  align-items:center;
  gap:38px;
  padding:54px 18px 42px 34px;
}
.author-name{font-size:22px;margin:0 0 5px}
.tiny-rule{display:block;width:34px;height:3px;background:var(--accent);margin-bottom:18px}
.home-hero h1{
  margin:0;
  max-width:680px;
  font-size:64px;
  line-height:.98;
  letter-spacing:-3.1px;
  font-weight:900;
}
.hero-subtitle{
  margin:18px 0 0;
  max-width:560px;
  font-size:22px;
  line-height:1.25;
  color:#3d434a;
}
.strategy-count{
  display:flex;
  gap:14px;
  align-items:stretch;
  margin-top:22px;
  font-size:22px;
  line-height:1.18;
}
.strategy-count span{width:4px;background:var(--accent);border-radius:5px}
.hero-art{
  position:relative;
  height:500px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-art img{
  width:min(310px,90%);
  max-height:430px;
  object-fit:contain;
  transform:rotate(7deg);
  filter:drop-shadow(0 10px 15px rgba(0,0,0,.05));
}
.hand-note{
  position:absolute;
  right:0;
  bottom:72px;
  width:150px;
  font-family:"Comic Sans MS","Segoe Print",cursive;
  font-size:20px;
  line-height:1.15;
  transform:rotate(-7deg);
}
.hand-note:after{
  content:"";
  display:block;
  width:70px;height:3px;background:var(--accent);
  margin-top:8px;
  transform:rotate(-4deg);
}
.index-panel{
  position:relative;
  margin:0 0 20px;
  padding:28px;
  border-radius:18px;
  background:linear-gradient(180deg,#f7f8f9,#f2f4f6);
  border:1px solid #edf0f2;
}
.index-header{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:18px;
}
.index-header h2{font-size:32px;margin:0}
.index-header>p{max-width:460px;color:#69727a;margin:0}
.index-primary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 18px;
}
.index-primary>a{
  display:grid;
  grid-template-columns:34px 1fr 22px;
  gap:8px;
  align-items:center;
  padding:14px 16px;
  border-radius:12px;
  background:#fff;
  text-decoration:none;
  box-shadow:0 1px 0 rgba(0,0,0,.03);
}
.index-primary>a:hover,.ods-index-link:hover{box-shadow:0 5px 18px rgba(0,0,0,.06);transform:translateY(-1px)}
.index-primary small{display:block;color:#737b84;margin-top:2px}
.index-no{font-weight:800;color:#20252b}
.ods-index-block{
  margin:20px 0;
  padding:18px;
  background:#fff;
  border-radius:14px;
  border:1px solid #e8ebee;
}
.ods-index-title{display:flex;gap:8px;align-items:flex-start;margin-bottom:14px}
.ods-index-title h3{margin:0;font-size:23px}
.ods-index-title p{margin:2px 0 0;color:#707982}
.ods-index-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 18px;
}
.ods-index-link{
  display:grid;
  grid-template-columns:34px 1fr 18px;
  align-items:center;
  gap:8px;
  min-height:54px;
  padding:8px 10px;
  border-radius:10px;
  text-decoration:none;
  background:#fafbfc;
  font-size:14px;
}
.ods-index-link .dot{
  display:grid;
  place-items:center;
  width:29px;height:29px;
  border-radius:50%;
  background:var(--c);
  color:white;
  font-weight:800;
  font-size:12px;
}
.index-primary.compact{margin-top:10px}
/* ODS */
.ods-hero{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:26px;
  align-items:start;
  padding:38px 0 30px;
}
.ods-badge{
  min-height:150px;
  padding:16px 12px 14px;
  border-radius:2px;
  background:var(--ods);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.ods-number{
  font-size:54px;
  line-height:.9;
  font-weight:300;
}
.ods-name{
  font-size:14px;
  line-height:1.05;
  font-weight:800;
  text-transform:uppercase;
}
.ods-hero h1{
  margin:0;
  font-size:48px;
  line-height:1.04;
  letter-spacing:-1.8px;
  max-width:850px;
}
.ods-hero h1 span{font-weight:900}
.ods-hero .lead{margin:14px 0 0;font-size:16px}
.content-section{
  margin:18px 0;
  padding:18px 0;
  border-top:1px solid #eceff1;
}
.icon-section{
  display:grid;
  grid-template-columns:54px 1fr;
  gap:14px;
  align-items:start;
}
.section-icon{
  width:42px;height:42px;
  border:2px solid var(--accent);
  border-radius:50%;
  color:var(--accent);
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:22px;
  margin-top:3px;
}
.section-icon.target{font-size:26px}
.content-section h2{
  margin:0 0 8px;
  font-size:25px;
  letter-spacing:-.4px;
}
.content-section p{margin:5px 0}
.problem-list{
  margin:4px 0 0;
  padding-left:22px;
}
.problem-list li{margin:5px 0}
.problem-list li::marker{color:var(--accent)}
.section-kicker{color:#68727a;margin-bottom:14px!important}
.strategies-section .full-width{min-width:0}
.table-wrap{
  overflow:hidden;
  border:1px solid #dfe3e6;
  border-radius:12px;
  margin:12px 0 2px;
  background:#fff;
}
table{border-collapse:collapse;width:100%}
.strategy-table th,.strategy-table td,.content-table th,.content-table td{
  text-align:left;
  vertical-align:top;
  padding:14px;
  border-right:1px solid #e4e7ea;
  border-bottom:1px solid #e4e7ea;
}
.strategy-table th:last-child,.strategy-table td:last-child,.content-table th:last-child,.content-table td:last-child{border-right:0}
.strategy-table tr:last-child td,.content-table tr:last-child td{border-bottom:0}
.strategy-table th,.content-table th{
  background:#eceeef;
  font-size:13px;
  text-transform:none;
}
.strategy-table td:first-child{
  width:24%;
  font-weight:800;
}
.strategy-table td:nth-child(2){width:46%}
.strategy-table td:nth-child(3){width:30%}
.strategy-table tbody tr:nth-child(even),.content-table tbody tr:nth-child(even){background:#fafafa}
.context-copy{
  margin:28px 0 20px 68px;
  max-width:930px;
}
.context-copy p{margin:11px 0}
.insight{
  margin:20px 0 8px 68px;
  padding:20px 22px;
  max-width:1000px;
  background:#f2f3f4;
  border-left:4px solid var(--accent);
  border-radius:3px 10px 10px 3px;
}
.insight.prominent{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:12px;
  border-left:0;
}
.insight .star{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:50%;
  color:var(--accent);
  border:2px solid var(--accent);
}
.insight strong{font-size:20px}
.insight p{margin:5px 0 0}
.chapter-nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-top:34px;
  padding-top:18px;
  border-top:1px solid #e0e4e7;
}
.chapter-nav a{
  text-decoration:none;
  color:#1573b3;
  font-size:14px;
}
/* GENERIC CHAPTER */
.chapter-hero{padding:44px 0 24px;max-width:900px}
.chapter-hero h1{
  margin:0;
  font-size:50px;
  line-height:1.03;
  letter-spacing:-1.7px;
}
.book-content{
  max-width:930px;
  margin-left:auto;
  margin-right:auto;
  font-size:17px;
}
.book-content h2{
  margin:40px 0 16px;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.8px;
}
.book-content h3{margin:28px 0 10px;font-size:25px}
.book-content h4{margin:24px 0 8px;font-size:20px}
.book-content p{text-align:left;margin:12px 0}
.content-list{padding-left:24px}
.content-list li{margin:6px 0}
.content-list li::marker{color:var(--accent)}
.book-content .insight{margin:24px 0}
.content-table{font-size:14px}
.content-table th{font-weight:800}
@media (max-width: 980px){
  body{padding:0;background:#fff}
  .page-frame{border-radius:0;min-height:100vh;padding:0 28px 24px;box-shadow:none}
  .site-header{gap:18px}
  .topnav{gap:15px}
  .topnav a{font-size:12px}
  .home-hero{grid-template-columns:1fr .65fr;padding-left:10px}
  .home-hero h1{font-size:53px}
  .hero-art img{width:250px}
}
@media (max-width: 760px){
  .page-frame{padding:0 20px 20px}
  .site-header{min-height:90px}
  .header-divider{display:none}
  .brand{font-size:17px}
  .topnav{display:none}
  .home-hero{display:block;padding:42px 2px 24px;min-height:auto}
  .home-hero h1{font-size:46px;letter-spacing:-2px}
  .hero-subtitle{font-size:19px}
  .strategy-count{font-size:19px}
  .hero-art{height:340px;margin-top:12px}
  .hero-art img{width:220px}
  .hand-note{right:8px;bottom:40px;font-size:17px;width:120px}
  .index-header{display:block}
  .index-header>p{margin-top:8px}
  .index-primary,.ods-index-grid{grid-template-columns:1fr}
  .index-panel{padding:18px;margin-left:-8px;margin-right:-8px}
  .ods-hero{grid-template-columns:100px 1fr;gap:16px;padding-top:28px}
  .ods-badge{min-height:112px}
  .ods-number{font-size:38px}
  .ods-name{font-size:10px}
  .ods-hero h1{font-size:34px}
  .icon-section{grid-template-columns:42px 1fr;gap:10px}
  .section-icon{width:35px;height:35px;font-size:18px}
  .context-copy,.insight{margin-left:0}
  .chapter-hero h1{font-size:39px}
  .book-content{font-size:16px}
  .book-content h2{font-size:29px}
  .chapter-nav{flex-wrap:wrap}
  .table-wrap{overflow:visible;border:0;background:transparent}
  .strategy-table thead,.content-table thead{display:none}
  .strategy-table,.strategy-table tbody,.strategy-table tr,.strategy-table td,
  .content-table,.content-table tbody,.content-table tr,.content-table td{
    display:block;width:100%!important;
  }
  .strategy-table tr,.content-table tr{
    margin:12px 0;
    border:1px solid #dfe3e6;
    border-radius:12px;
    overflow:hidden;
    background:#fff!important;
  }
  .strategy-table td,.content-table td{
    border:0;
    border-bottom:1px solid #e9ecef;
    padding:11px 12px;
  }
  .strategy-table td:last-child,.content-table td:last-child{border-bottom:0}
  .strategy-table td::before,.content-table td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:3px;
    color:#77818a;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .corner.top-left,.corner.top-right{top:15px}
}
@media print{
  body{padding:0;background:#fff}
  .page-frame{box-shadow:none;border-radius:0;max-width:none}
  .topnav,.corner,.trail,.chapter-nav{display:none}
}


/* MEDIA DO LIVRO - adicoes sem alterar a estrutura visual aprovada */
.book-figure{
  margin:28px auto 34px;
  padding:14px;
  border:1px solid #e7eaed;
  border-radius:14px;
  background:#fff;
  box-shadow:0 7px 24px rgba(18,25,32,.055);
  text-align:center;
}
.book-figure img{
  display:block;
  width:100%;
  height:auto;
  margin:0 auto;
  border-radius:7px;
}
.book-content .book-figure{max-width:900px}
.book-figure.portrait-figure{max-width:640px}
.book-figure.wide-figure{max-width:980px}
.ods-overview-figure{max-width:820px!important}
.feature-figure{padding:10px}
.canvas-model-figure{padding:10px;background:#fafbfc}
.download-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:18px auto 34px;
  max-width:900px;
  padding:18px 20px;
  border:1px solid #e0e4e7;
  border-left:4px solid var(--accent);
  border-radius:10px;
  background:#f7f8f9;
}
.download-panel strong{display:block;font-size:18px}
.download-panel span{display:block;margin-top:3px;color:#66717a;font-size:14px}
.download-button{
  flex:0 0 auto;
  display:inline-block;
  padding:11px 18px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
}
.download-button:hover{filter:brightness(.96)}
@media (max-width:760px){
  .book-figure{margin:22px -4px 28px;padding:8px;border-radius:11px}
  .download-panel{display:block;margin:16px 0 28px;padding:16px}
  .download-button{margin-top:13px}
}


/* V3: ajustes editoriais e aplicação em sala de aula */
.worksheet-intro{font-size:17px;margin:10px 0 12px}
.worksheet-prompts{margin:0 0 22px;padding-left:22px}
.worksheet-prompts li{margin:14px 0 18px;padding-left:4px}
.worksheet-prompts li::marker{color:var(--accent)}
.write-line{display:block;border-bottom:1px solid #aeb5bc;height:24px;margin-top:7px;max-width:720px}
.teacher-hero{max-width:940px}
.teacher-content{max-width:980px}
.teacher-intro{margin:4px 0 28px;padding:22px 24px;background:#f7f8f9;border-left:4px solid var(--accent);border-radius:4px 12px 12px 4px}
.teacher-intro h2{margin-top:0}
.skill-strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;align-items:center}
.skill-strip strong{margin-right:4px}
.skill-strip span{display:inline-block;padding:6px 10px;border:1px solid #dfe4e7;border-radius:999px;background:#fff;font-size:13px}
.activity-jump{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0 34px}
.activity-jump a{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:start;padding:15px;border:1px solid #e0e4e7;border-radius:12px;text-decoration:none;background:#fff}
.activity-jump a:hover{box-shadow:0 7px 20px rgba(0,0,0,.06);transform:translateY(-1px)}
.activity-jump>a>strong{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--accent);color:#fff;font-size:12px}
.activity-jump span{font-weight:800;line-height:1.2}
.activity-jump small{display:block;margin-top:5px;color:#6d7680;font-weight:400;line-height:1.25}
.activity-card{margin:34px 0 42px;padding:28px;border:1px solid #e3e7ea;border-radius:16px;background:#fff;box-shadow:0 8px 28px rgba(18,25,32,.045)}
.activity-heading{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.activity-number{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:var(--accent);color:#fff;font-weight:900}
.activity-type{margin:0!important;color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.12em}
.activity-heading h2{margin:2px 0 0;font-size:31px}
.activity-meta{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}
.activity-meta span{padding:7px 10px;background:#f3f5f6;border-radius:8px;font-size:13px;color:#4f5860}
.activity-card>h3{font-size:20px;margin:24px 0 7px}
.teacher-note{margin:16px 0;padding:14px 16px;border-radius:10px;background:#f4f7f3;border-left:3px solid var(--accent)}
.three-boxes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0 24px}
.three-boxes span{display:grid;place-items:center;min-height:78px;padding:12px;border:1px dashed #aab3b9;border-radius:10px;text-align:center;font-weight:800;background:#fafbfb}
.steps{margin:18px 0 24px}
.steps>section{display:grid;grid-template-columns:38px 1fr;gap:14px;padding:18px 0;border-top:1px solid #e8ebed}
.steps>section:last-child{border-bottom:1px solid #e8ebed}
.steps>section>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:2px solid var(--accent);color:var(--accent);font-weight:900}
.steps h3{margin:0 0 7px;font-size:19px}
.steps h3 small{font-size:12px;color:#6d7680;font-weight:500;margin-left:6px}
.steps p{margin:7px 0}
.example-box,.result-box{margin:12px 0;padding:15px 17px;border-radius:10px;background:#f6f7f8}
.example-box p{margin:5px 0}
.result-box{border-left:3px solid var(--accent);font-size:16px}
.reflection-box{margin:26px 0 0;padding:20px 22px;border-radius:12px;background:#f2f3f4}
.reflection-box h3{margin:0 0 10px;font-size:21px}
.teacher-download{margin-left:0;margin-right:0}
.author-profile{display:grid;grid-template-columns:250px 1fr;gap:30px;align-items:start;margin:10px 0 34px}
.author-profile img{display:block;width:100%;height:auto;border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.09)}
.author-profile p{margin-top:0}
.social-links{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 24px}
.social-links a{display:inline-block;padding:10px 14px;border:1px solid #dfe3e6;border-radius:999px;text-decoration:none;font-weight:700;font-size:14px;background:#fff}
.social-links a:hover{border-color:var(--accent);color:var(--accent)}
/* ODS: retain the approved layout; only reinforce each goal's own accent color. */
.ods-page .strategy-table th{border-top:3px solid var(--accent)}
.ods-page .section-icon{border-color:var(--accent);color:var(--accent)}

@media (max-width:760px){
  .activity-jump{grid-template-columns:1fr}
  .activity-card{padding:19px;margin-left:-4px;margin-right:-4px}
  .activity-heading h2{font-size:26px}
  .three-boxes{grid-template-columns:1fr}
  .author-profile{grid-template-columns:1fr}
  .author-profile img{max-width:280px}
}
