/* Grandpa's Tech — padrão compartilhado v1.3 */
:root{--gt-active-color:#dbeafe;--gt-text:#243247}
body{min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1;width:100%}
/* Navegação e rodapé acompanham a cor do botão/aba selecionada */
nav.tabs,nav.subtabs,nav#modules,nav#modes,.breadcrumb{background:var(--gt-active-color);border-radius:16px;padding:12px;transition:background-color .2s ease}
nav.tabs button,nav.subtabs button{border:1px solid rgba(25,40,60,.1)}
.gt-footer{background:var(--gt-active-color);color:var(--gt-text);padding:28px 18px 24px;margin-top:28px;border-top:1px solid rgba(32,48,65,.12);max-width:none;width:100%;font-family:system-ui,-apple-system,Segoe UI,sans-serif}
.gt-footer-inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:22px;align-items:start}
.gt-footer h3{font-size:1.05rem;margin:0 0 12px;color:#1e293b}.gt-footer p{margin:8px 0;line-height:1.5}.gt-footer a{color:#184e77;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.gt-footer-brand{display:flex;align-items:center;gap:12px}.gt-footer-brand img{width:60px;height:60px;object-fit:contain}.gt-footer-brand strong{font-size:1.1rem}
.gt-footer-qr{display:flex;align-items:center;gap:12px}.gt-footer-qr img{width:95px;height:95px;object-fit:contain;background:#fff;border:5px solid #fff;border-radius:8px}
.gt-footer-bottom{max-width:1100px;margin:20px auto 0;padding-top:12px;border-top:1px solid rgba(40,60,80,.15);font-size:.85rem}
@media(max-width:740px){.gt-footer-inner{grid-template-columns:1fr 1fr}.gt-footer-inner>div:first-child{grid-column:1/-1}}
@media(max-width:480px){.gt-footer-inner{grid-template-columns:1fr}}

/* v1.3: faixa superior e rodapé seguem a área/aba selecionada */
body > header, body > .header, body > .topbar, body > nav.topbar, body > nav.navbar,
header.site-header, header.topbar, .site-header, .app-header, .gt-header {
  background:var(--gt-active-color) !important;
  transition:background-color .2s ease;
}
body > header {border-bottom-color:rgba(35,57,78,.16) !important}
body > header .brand,body > header a,body > header strong{color:#243247}
body > footer.gt-footer{background:var(--gt-active-color) !important}
/* Cores pastéis mais presentes, mantendo contraste com o texto */
.subjects .card, .card-grid .card, .apps-grid .card {background:#bfd9fb;border-color:#a5c7f3}
.subjects .card:nth-child(6n+2),.card-grid .card:nth-child(6n+2),.apps-grid .card:nth-child(6n+2){background:#b9e9d0;border-color:#93dcb5}
.subjects .card:nth-child(6n+3),.card-grid .card:nth-child(6n+3),.apps-grid .card:nth-child(6n+3){background:#dfc8f7;border-color:#d2b3f0}
.subjects .card:nth-child(6n+4),.card-grid .card:nth-child(6n+4),.apps-grid .card:nth-child(6n+4){background:#ffdab0;border-color:#f7c78c}
.subjects .card:nth-child(6n+5),.card-grid .card:nth-child(6n+5),.apps-grid .card:nth-child(6n+5){background:#f7c7e0;border-color:#efabd0}
.subjects .card:nth-child(6n+6),.card-grid .card:nth-child(6n+6),.apps-grid .card:nth-child(6n+6){background:#f7e6a2;border-color:#ead58a}

/* v2.2: cor fixa da área — cabeçalho, navegação e rodapé */
body>header,body>nav.topbar,nav.tabs,nav.subtabs,nav#modules,nav#modes,body>footer.gt-footer{background:var(--gt-active-color)!important}
