:root{--accent:#1769c2;--soft:#e7f3ff;--line:#e1e1e6;--muted:#666674;--rail:#f7f7f8;--focus:#0d99ff}
.shell{grid-template-columns:310px minmax(0,1fr)}
.rail{padding:28px 24px;background:var(--rail)}
.rail h2{font-size:24px;line-height:1.2}
.rail label[for=project]{display:block;color:var(--muted);font-size:12px;font-weight:650;margin:12px 0 7px}
#project{width:100%;border:1px solid #d5d5dc;border-radius:10px;background:#fff;color:#24242b;padding:12px;margin-bottom:12px}
#navigation a[aria-current=page]{background:var(--soft);color:#07599f}
#navigation a:hover{background:#ededf0}
.primary:hover:not(:disabled){background:#07599f;border-color:#07599f}
.callout{background:#eff8ff} article a{color:#07599f}
main{max-width:940px;padding-top:42px} article h1{letter-spacing:-.035em}
@media(max-width:760px){.shell{display:block}main{padding:25px 22px}}

.nav-group{font-size:12px;color:#666674;margin:20px 10px 4px;font-weight:700}

/* A quiet editor-like frame, with Figma-inspired blue and violet accents. */
.rail{border-right:1px solid #e5e5e9}
.brand svg{color:#7354d8}
.module-label{color:#7354d8;font-weight:650}
.rail h2{margin-top:8px;margin-bottom:14px;letter-spacing:-.03em}
.rail-intro{margin-bottom:20px}
.progress-label{font-weight:600}
progress{height:7px}
#navigation{gap:2px}
#navigation a{border-radius:8px;padding:10px}
.step-number{border-color:#c4c5cd}
.reading-top{border-bottom:1px solid var(--line);padding-bottom:18px}
.central-activity{background:#f6f9ff;border:1px solid #dceafb;border-radius:14px;padding:24px;margin-top:40px}
.central-activity[hidden]{display:none}
.mobile-header{box-shadow:0 1px 6px #0000000a}
@media(max-width:760px){.rail.is-open{max-height:calc(100vh - 55px);overflow-y:auto}.central-activity{padding:18px}}
@media print{.central-activity{display:none}}
/* Esquemas didáticos: são exemplos, não miniaturas funcionais. */
.page-map{container-type:inline-size;margin:28px 0;--pm-line:#d5d5dc;--pm-sk:#dcdce3}
.pm-bar{display:flex;align-items:center;gap:5px;padding:9px 12px;background:#ededf0;border:1px solid var(--pm-line);border-bottom:0;border-radius:12px 12px 0 0}
.pm-bar i{width:8px;height:8px;border-radius:50%;background:#c4c5cd}.pm-bar b{flex:1;height:14px;margin-left:8px;border-radius:7px;background:#fff}
article .pm-list{list-style:none;margin:0;padding:0}article .pm-row{margin:0;break-inside:avoid}
.pm-note{padding:10px 14px;background:#f1effa;border:solid var(--pm-line);border-width:1px 1px 0;line-height:1.35}
.pm-note strong{color:#23242a;font-size:15px}.pm-en{display:inline-block;padding:1px 7px;margin-left:2px;background:#7354d8;color:#fff;border-radius:5px;font-size:12px;font-weight:650}.pm-q{display:block;margin-top:3px;color:#565967;font-size:14px}
.pm-block{display:block;padding:18px 16px;background:#fff;border:solid var(--pm-line);border-width:1px 1px 0}
.pm-row:last-child .pm-block{border-bottom-width:1px;border-radius:0 0 12px 12px}
.sk{display:block;height:7px;margin:0 0 7px;border-radius:4px;background:var(--pm-sk)}.sk-title{height:12px;margin-bottom:9px;background:#b9bac4}.sk-center{margin-inline:auto}
/* A política de segurança do site bloqueia style inline: as larguras ficam aqui. */
.sk-w36{width:36%}.sk-w38{width:38%}.sk-w40{width:40%}.sk-w48{width:48%}.sk-w50{width:50%}.sk-w55{width:55%}.sk-w56{width:56%}.sk-w60{width:60%}.sk-w62{width:62%}.sk-w68{width:68%}.sk-w70{width:70%}.sk-w80{width:80%}.sk-w85{width:85%}.sk-w90{width:90%}.sk-w92{width:92%}.sk-w100{width:100%}
.sk-square{flex:none;width:18px;height:18px;border-radius:5px;background:#b9bac4}.sk-avatar{flex:none;width:30px;height:30px;border-radius:50%;background:#b9bac4}
.sk-img{position:relative;display:block;min-height:44px;overflow:hidden;border-radius:6px;background:var(--pm-sk)}
.sk-img::before{content:"";position:absolute;top:18%;left:14%;width:16%;aspect-ratio:1;border-radius:50%;background:#f4f4f7}
.sk-img::after{content:"";position:absolute;inset:40% 0 0;background:#c4c5cd;clip-path:polygon(0 100%,32% 18%,52% 62%,70% 34%,100% 100%)}
.pm-lines{display:block;flex:1;min-width:0}
.pm-cta{display:block;width:max-content;margin-top:12px;padding:6px 14px;background:#1769c2;border-radius:6px;color:#fff;font-size:11px;font-weight:700;line-height:1.2}.pm-cta::after{content:"CTA"}
.pm-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:12px}
.pm-logo{display:flex;align-items:center;gap:7px;width:28%}.pm-logo .sk,.pm-links .sk{margin:0}.pm-links{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:42%}
.pm-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:16px;align-items:center;padding-block:24px;background:#f7f7f8}.pm-hero .sk-img{height:100%;min-height:92px}
.pm-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.pm-card{display:block;padding:8px;border:1px solid #e7e7ec;border-radius:7px;background:#fff}.pm-card .sk-img{margin-bottom:8px}.pm-card .sk:last-child{margin-bottom:0}
.pm-testimonials{background:#f7f7f8}.pm-testimonials .pm-cards{grid-template-columns:repeat(2,1fr);margin:0}.pm-quote{display:flex;align-items:center;gap:8px}.pm-quote .sk:last-child{margin-bottom:0}
.pm-faq-row{position:relative;display:block;padding:9px 18px 9px 0;border-top:1px solid #e7e7ec}.pm-faq-row .sk{margin:0}.pm-faq-row::after{content:"+";position:absolute;right:2px;top:50%;transform:translateY(-50%);color:#8a8b96;font-size:14px;line-height:1}
.pm-band{padding-block:24px;background:#e7f3ff;text-align:center;--pm-sk:#b6d3ef}.pm-band .sk-title{background:#8db9e4}.pm-band .pm-cta{margin-inline:auto}
.pm-footer{background:#2a2b33;--pm-sk:#565865}.pm-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.pm-col .sk:last-child{margin-bottom:0}
@container (min-width:600px){
 .pm-bar{width:58%}
 .pm-row{display:grid;grid-template-columns:58% 42%}
 .pm-block{grid-column:1;grid-row:1}
 .pm-note{position:relative;grid-column:2;grid-row:1;align-self:center;padding:8px 0 8px 30px;background:none;border:0}
 .pm-note::before{content:"";position:absolute;left:0;top:50%;width:22px;border-top:1px solid #7354d8}
}
.fa-pair{display:grid;gap:18px;margin:16px 0 26px}
.fa-grid{display:grid;gap:8px;padding:12px;background:#f5f1eb;border:1px solid #e3d9cc;border-radius:12px;color:#35271e}
.fa-box{display:flex;flex-direction:column;gap:3px;min-width:0;padding:11px;overflow:hidden;background:#fff;border:1px solid #e3d9cc;border-radius:8px;font-size:12px;line-height:1.35}.fa-box b{font-size:13px;line-height:1.25}
.fa-box .hf-foto{flex:1;min-height:72px;margin:-11px -11px 8px}
.fa-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.fa-bento{grid-template-columns:1.4fr 1fr;grid-template-rows:1fr 1fr}.fa-bento .fa-box:first-child{grid-row:1 / 3;justify-content:flex-end}.fa-bento .fa-box:first-child b{font-size:16px}
@media(min-width:1000px){.fa-pair{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.fa-pair>div{display:flex;flex-direction:column}.fa-pair .fa-grid{flex:1}}
@media(max-width:500px){.fa-grid{padding:8px;gap:6px}.fa-box{padding:8px;font-size:11px}.fa-box b{font-size:12px}.fa-box .hf-foto{margin:-8px -8px 6px}.fa-cards .fa-box b{hyphens:none}}
article .table-fit table{min-width:0;width:100%}
@media(max-width:500px){article .table-fit th,article .table-fit td{padding-inline:7px;font-size:14px}}
@media print{.page-map *{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.hero-compare{container-type:inline-size;margin:24px 0}
.hero-case{margin-bottom:32px;break-inside:avoid}article .hero-case h3{margin-top:0}
.hero-pair{display:grid;gap:16px;margin-top:14px}
.hf-label{display:block;margin-bottom:6px;color:#666674;font-size:12px;font-weight:650}
.hf-bar{display:flex;gap:5px;padding:8px 10px;background:#ededf0;border:1px solid #d5d5dc;border-bottom:0;border-radius:10px 10px 0 0}.hf-bar i{width:7px;height:7px;border-radius:50%;background:#c4c5cd}
.hf-screen{display:block;overflow:hidden;background:#f5f1eb;color:#35271e}
.hf-desktop .hf-screen{min-height:250px;border:1px solid #d5d5dc;border-radius:0 0 10px 10px}
.hf-phone{width:190px;justify-self:center}.hf-phone .hf-screen{display:flex;flex-direction:column;height:340px;border:5px solid #24242b;border-radius:22px}
.hf-copy{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:22px}.hf-copy small{font-size:11px;font-weight:700}
.hf-title{font-size:24px;font-weight:700;line-height:1.15}.hf-text{font-size:13px;line-height:1.45}
.hf-btn{margin-top:4px;padding:8px 12px;background:#68462e;border-radius:6px;color:#fff;font-size:12px;font-weight:700}
.hf-phone .hf-copy{padding:14px}.hf-phone .hf-title{font-size:18px}.hf-phone .hf-text{font-size:12px}
.hf-foto{display:block;flex:1;min-height:110px;background:#dbc8ad url("media/imagens/anatomia-padaria.png") center / cover no-repeat}
.hf-split .hf-desktop .hf-screen{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}.hf-split .hf-copy{justify-content:center}.hf-split .hf-phone .hf-foto{order:-1;flex:none;height:120px}
.hf-overlay .hf-screen{display:flex;align-items:center;color:#fff}.hf-overlay .hf-btn{background:#fff6e9;color:#35271e}
.hf-overlay .hf-desktop .hf-screen{background:linear-gradient(90deg,rgba(31,20,11,.88),rgba(31,20,11,.45)),url("media/imagens/anatomia-padaria.png") center / cover no-repeat}.hf-overlay .hf-desktop .hf-copy{max-width:60%}
.hf-overlay .hf-phone .hf-screen{justify-content:center;background:linear-gradient(rgba(31,20,11,.72),rgba(31,20,11,.72)),url("media/imagens/anatomia-padaria.png") center / cover no-repeat}
.hf-centered .hf-copy{align-items:center;text-align:center}.hf-centered .hf-foto{margin:0 22px 22px;border-radius:8px}.hf-centered .hf-phone .hf-foto{margin:0 14px 14px}.hf-centered .hf-desktop .hf-screen{display:flex;flex-direction:column}.hf-centered .hf-desktop .hf-foto{min-height:96px}
@container (min-width:640px){.hero-pair{grid-template-columns:minmax(0,1fr) 190px;align-items:start}}
@container (max-width:639px){.hf-copy{padding:14px}.hf-title{font-size:18px}.hf-text{font-size:12px}.hf-desktop .hf-screen{min-height:190px}}


/* Hierarquia de botões da apostila.
   Principal (azul cheio): só avançar, um por tópico.
   Ação (contorno azul): a tarefa do tópico, como copiar, baixar e carregar vídeo.
   Neutro: conferir resposta, backup, voltar. Perigo: apagar. */
#lesson button[data-copy],#lesson button[data-download]:not([data-download=backup]),#lesson button[data-load-video],a.chapter-link{color:#07599f;background:#fff;border:1px solid #7fb0e3;font-weight:600}
#lesson button[data-copy]:hover,#lesson button[data-download]:not([data-download=backup]):hover,#lesson button[data-load-video]:hover,a.chapter-link:hover{background:var(--soft);border-color:#07599f}
#lesson .code-caption button[data-copy]{color:inherit;border-color:var(--line);font-weight:400}
#lesson .code-caption button[data-copy]:hover{background:#f7f7f9;border-color:#a6a6af}
.notebook-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.danger-zone{margin-top:24px}
.danger-zone h3{margin-top:0}
.danger-zone button{border-color:#d9a7b0;font-weight:600}
.danger-zone button:hover:not(:disabled){background:#fbebee;border-color:#942033}

/* Fim do tópico */
.lesson-actions{margin-top:36px;padding-top:22px}
.complete-check{display:inline-flex;align-items:center;gap:10px;font-size:15px;cursor:pointer}
.complete-check input{width:18px;height:18px;margin:0;accent-color:var(--accent);flex-shrink:0}
.pager{margin-top:18px;align-items:center}
.pager #next{margin-left:auto;font-size:15px;text-align:left}
.pager #previous[hidden]{display:none}
footer button{background:none;border:0;padding:0;color:inherit;font-size:inherit;text-decoration:underline;text-underline-offset:4px}
footer button:hover:not(:disabled){background:none;color:#27282c}
.save-note[hidden]{display:none}

/* Sumário */
.all-chapters{display:block;margin-top:26px;font-size:13px;font-weight:650;color:#07599f}
.rail h2:empty{display:none}
#open-notebook{width:100%;flex-shrink:0;text-align:left;font-size:14px;font-weight:600;margin-bottom:8px}
#open-notebook[aria-current=page]{background:var(--soft);color:#07599f;border-color:#7fb0e3}
.rail-bottom{padding-top:18px}
.mobile-header a{color:inherit;text-decoration:none}

/* Página inicial: todos os capítulos */
body.is-home .rail,body.is-home .mobile-header,body.is-home .reading-top,body.is-home .lesson-actions,body.is-home .pager,body.is-home .save-note,body.is-home .print-tool{display:none}
body.is-home .shell{display:block}
body.is-home main{margin:0 auto;padding-top:56px}
article a.primary{display:inline-block;color:#fff;padding:12px 18px;border:1px solid var(--accent);border-radius:8px;text-decoration:none;font-weight:600}
article a.primary:hover{color:#fff;background:#07599f;border-color:#07599f}
article .chapter-list{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
article .chapter-card{display:flex;flex-direction:column;margin:0;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff}
.chapter-card .chapter-number{margin:0;font-size:13px;font-weight:650;color:#7354d8}
.chapter-card h3{margin:4px 0 6px;font-size:19px}
.chapter-card p{font-size:14px;line-height:1.55}
.chapter-card>p:not(.chapter-number){margin:0 0 14px;color:var(--muted)}
.chapter-progress{margin-top:auto;font-size:12px;color:var(--muted)}
.chapter-progress progress{display:block;margin:0 0 6px}
article a.chapter-link{display:block;margin-top:14px;padding:10px 14px;border-radius:8px;text-align:center;text-decoration:none}
.home-backup{margin-top:40px;padding-top:6px;border-top:1px solid var(--line)}
.home-backup h2{font-size:17px}

@media(max-width:760px){
 .brand,.rail-intro,#chapter-title,.rail-bottom{display:none}
 .rail{padding:14px 16px}
 .all-chapters{margin:0 0 8px}
 #project{margin:4px 0 10px}
 progress{margin:8px 0 12px}
 .nav-group{margin-top:12px}
 .pager{flex-direction:column-reverse;align-items:stretch;gap:10px}
 .pager #next,.pager #previous{width:100%;max-width:none;margin:0;font-size:14px;padding:12px}
 .pager #next{text-align:center}
 body.is-home main{padding-top:28px}
 body.is-home .home-start{display:block;text-align:center}
}
@media print{footer{display:none}}
/* O sumário rola até o tópico atual, então os documentos ficam presos no topo para continuarem à vista. */
#open-notebook{position:sticky;top:0;z-index:2}
/* O foco vai para o conteúdo a cada troca de tópico; o contorno em volta da página inteira só atrapalharia. */
main:focus{outline:none}
/* Sem respiro no topo do sumário, para nenhum tópico aparecer acima do botão preso. */
.rail{padding-top:0}
.brand{margin-top:28px}
@media(max-width:760px){.rail{padding-top:0}.all-chapters{margin-top:14px}}
.lesson-code .code-wrap{white-space:pre-wrap}

/* Estudo da chamada para ação: o fim de uma página, com a chamada antes do rodapé. */
.ct-screen{display:flex;flex-direction:column;background:#fff}
.hf-desktop .ct-screen{min-height:0}
.ct-prev{display:flex;flex-direction:column;gap:6px;padding:12px 14px}
.ct-prev i{display:block;height:7px;border-radius:4px;background:#dcdce3}
.ct-prev i:nth-child(1){width:42%}.ct-prev i:nth-child(2){width:78%}.ct-prev i:nth-child(3){width:64%}
.ct-block{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:16px 14px;color:#35271e}
.ct-block small{font-size:11px;font-weight:700}
.ct-title{font-size:17px;font-weight:700;line-height:1.2}
.ct-text{font-size:12px;line-height:1.45}
.ct-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:4px}
.ct-btn{padding:8px 12px;background:#68462e;border-radius:6px;color:#fff;font-size:12px;font-weight:700}
.ct-link{font-size:12px;text-decoration:underline;text-underline-offset:3px}
.ct-foot{display:block;margin-top:auto;height:28px;background:#2b211b}
.ct-foto{display:block;background:#dbc8ad url("media/imagens/anatomia-padaria.png") center / cover no-repeat;border-radius:6px}
.hf-phone .ct-title{font-size:15px}
.hf-phone .ct-actions{flex-direction:column;align-items:stretch;width:100%}
.hf-phone .ct-btn{text-align:center}
.hf-phone .ct-link{text-align:center}
.ct-band .ct-block{align-items:center;text-align:center;background:#68462e;color:#fff;padding:20px 14px}
.ct-band .ct-btn{background:#fff6e9;color:#35271e}
.ct-band .ct-actions{justify-content:center}
.ct-split .ct-block{background:#f5f1eb;border-top:1px solid #e3d8c8}
.ct-split .hf-desktop .ct-block{display:grid;grid-template-columns:1fr auto;column-gap:16px;align-items:center}
.ct-split .hf-desktop .ct-block>:not(.ct-actions){grid-column:1}
.ct-split .hf-desktop .ct-actions{grid-column:2;grid-row:1 / span 3;flex-direction:column;align-items:stretch;margin:0;text-align:center}
.ct-card .ct-block{margin:0 14px 12px;background:#f5f1eb;border:1px solid #e3d8c8;border-radius:10px;padding:12px}
.ct-card .hf-desktop .ct-block{display:grid;grid-template-columns:32% 1fr;column-gap:12px;row-gap:4px;align-content:center}
.ct-card .hf-desktop .ct-block>:not(.ct-foto){grid-column:2}
.ct-card .hf-desktop .ct-foto{grid-column:1;grid-row:1 / span 4;min-height:100px}
.ct-card .hf-phone .ct-foto{width:100%;height:70px;margin-bottom:4px}
.ct-card .ct-actions{justify-self:start}
.hf-phone .ct-screen{height:auto;min-height:340px}
