:root { --ink:#2a2150; --ink-soft:#4a4172; --sky:#8fd3ff; --sky-light:#d9f1ff; --cream:#fff4de; --paper:#fffaf0; --orange:#ff9a2e; --orange-deep:#d9741a; --green:#37c871; --green-deep:#22985a; --teal:#2ec4c9; --yellow:#ffd23f; --font:"Fredoka","Baloo 2","Arial Rounded MT Bold","Trebuchet MS",Verdana,sans-serif; }
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:92px; }
body { margin:0; font-family:var(--font); font-size:18px; line-height:1.65; color:var(--ink); background:linear-gradient(180deg,var(--sky) 0,var(--sky-light) 360px,#fff4de 900px,#fff4de 100%); background-attachment:scroll; -webkit-font-smoothing:antialiased; }
a { color:inherit; }
:focus-visible { outline:4px solid var(--orange); outline-offset:3px; border-radius:8px; }
img { display:block; max-width:100%; }
h1,h2,h3,p,ul,ol { margin:0; }

/* barra de progresso (a mesma do site) */
.route { position:fixed; z-index:50; top:12px; left:50%; transform:translateX(-50%); width:min(860px,100% - 24px); height:56px; display:flex; align-items:center; gap:14px; padding:0 8px 0 10px; background:var(--ink); border:4px solid var(--ink); border-radius:999px; box-shadow:0 6px 0 rgba(42,33,80,.25); color:var(--cream); }
.route-brand { display:flex; align-items:center; gap:10px; font-weight:600; font-size:18px; text-decoration:none; white-space:nowrap; }
.route-brand img { width:36px; height:36px; border-radius:10px; }
.track { position:relative; flex:1; height:14px; margin-left:40px; border-radius:999px; background:#3d3470; border:2px solid #5a4f93; }
.track-fill { position:absolute; inset:0 auto 0 0; width:calc(var(--p,0) * 100%); background:var(--orange); border-radius:999px; }
.scooter { position:absolute; left:calc(var(--p,0) * 100%); bottom:6px; width:30px; height:auto; margin-left:-18px; }
.flag { position:absolute; right:-8px; bottom:6px; width:22px; height:30px; }
.btn { display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 18px; font:600 17px/1 var(--font); text-decoration:none; color:#fff; background:var(--orange); border:4px solid var(--ink); border-radius:18px; box-shadow:0 5px 0 var(--orange-deep),0 8px 0 rgba(42,33,80,.3); text-shadow:0 2px 0 var(--ink),0 0 6px var(--ink); transition:transform .12s ease; white-space:nowrap; }
.btn:hover { transform:translateY(-2px); }
.route .btn { box-shadow:0 3px 0 var(--orange-deep); }

/* documento */
.page { width:min(1120px,100% - 32px); margin:0 auto; padding:120px 0 72px; display:grid; grid-template-columns:250px minmax(0,1fr); gap:40px; align-items:start; }
.page > * { min-width:0; }
.toc { position:sticky; top:92px; padding:20px 20px 22px; background:var(--paper); border:4px solid var(--ink); border-radius:22px; box-shadow:0 7px 0 rgba(42,33,80,.25); font-size:16px; line-height:1.35; }
.toc summary { cursor:pointer; font-weight:600; font-size:18px; list-style:none; padding:2px 0; }
.toc summary::-webkit-details-marker { display:none; }
.toc summary::after { content:'+'; float:right; font-size:22px; line-height:1; }
.toc[open] summary::after { content:'–'; }
.toc[open] summary { margin-bottom:10px; }
.toc ol { margin:0; padding:0; list-style:none; display:grid; gap:2px; }
.toc a { display:block; padding:6px 10px; border-radius:10px; text-decoration:none; color:var(--ink-soft); }
.toc a:hover, .toc a.on { background:var(--yellow); color:var(--ink); }
.toc .other { margin-top:16px; padding-top:14px; border-top:3px dashed #d9c8a6; }
.doc { background:var(--paper); border:4px solid var(--ink); border-radius:26px; box-shadow:0 10px 0 rgba(42,33,80,.25); padding:clamp(24px,5vw,56px); }
.doc h1 { font-size:clamp(34px,5vw,54px); line-height:1.05; letter-spacing:-.01em; }
.doc .meta { margin-top:14px; color:var(--ink-soft); font-size:16px; }
.doc h2 { margin-top:44px; padding-top:6px; font-size:clamp(24px,3vw,30px); line-height:1.2; }
.doc h3 { margin-top:24px; font-size:20px; }
.doc p, .doc li { max-width:68ch; }
.doc p { margin-top:14px; }
.doc ul, .doc ol { margin-top:12px; padding-left:24px; display:grid; gap:8px; }
.doc a, .doc li, .doc p { overflow-wrap:anywhere; }
.doc a { text-decoration-thickness:2px; text-underline-offset:3px; text-decoration-color:var(--orange); }
.resumo { margin-top:28px; padding:20px 24px; background:#e8fbf0; border:4px solid var(--ink); border-radius:20px; box-shadow:0 5px 0 rgba(42,33,80,.2); }
.resumo h2 { margin:0 0 6px; font-size:22px; padding:0; }
.resumo ul { margin-top:8px; }
.todo { background:var(--yellow); border-radius:6px; padding:0 6px; font-weight:600; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.tablewrap { margin-top:16px; overflow-x:auto; border:3px solid var(--ink); border-radius:16px; }
table { width:100%; border-collapse:collapse; font-size:16px; line-height:1.45; min-width:560px; }
th, td { text-align:left; vertical-align:top; padding:12px 14px; border-bottom:2px solid #e6d6b4; }
th { background:#f6e4bf; font-weight:600; }
tr:last-child td { border-bottom:0; }
.back { margin-top:48px; display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.foot { padding:30px 20px 44px; text-align:center; font-size:15px; color:var(--ink-soft); }
.foot a { text-decoration-thickness:1px; text-underline-offset:3px; }

@media (max-width:900px) {
  .page { grid-template-columns:1fr; padding-top:104px; gap:24px; }
  .toc { position:static; }
  .route-brand span { display:none; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .btn { transition:none; } }
@media print {
  .route, .toc, .back .btn { display:none; }
  body { background:#fff; font-size:12pt; }
  .page { display:block; padding:0; }
  .doc { border:0; box-shadow:none; padding:0; }
}
