/* HUBMAT — shell compartilhado para páginas internas */
:root{--hps-rail:72px;--hps-top:58px;--hps-navy:#071a3a;--hps-blue:#145cff;--hps-line:#d9e2eb}
html{scroll-padding-top:calc(var(--hps-top) + 14px)}
body{padding-top:var(--hps-top)}
body.hps-menu-open{overflow:hidden}

.hps-rail{position:fixed;z-index:500;inset:0 auto 0 0;width:var(--hps-rail);display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:none;background:linear-gradient(180deg,#071a3a 0%,#0a2b5f 58%,#0c3978 100%);color:#fff;box-shadow:5px 0 20px rgba(4,27,73,.14)}
.hps-rail::-webkit-scrollbar{display:none}
.hps-rail-brand{height:62px;flex:0 0 62px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid rgba(255,255,255,.13);text-decoration:none}
.hps-mark{width:39px;height:39px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;background:#071a3a url("/assets/logo-hplus-novo.webp") center/cover no-repeat;color:transparent;font-size:0;font-weight:900;line-height:1;letter-spacing:-1px;overflow:hidden}.hps-mark b{display:none}
.hps-rail-group{padding:3px 0;border-bottom:1px solid rgba(255,255,255,.12)}
.hps-rail-group.identity{margin-top:auto;border-top:1px solid rgba(255,255,255,.12)}
.hps-rail-link{position:relative;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 3px;color:#fff;text-decoration:none;text-align:center;font-size:8.3px;font-weight:900;line-height:1.03;transition:background .15s ease}
.hps-rail-link i{font-size:14px}.hps-rail-link:hover,.hps-rail-link:focus-visible,.hps-rail-link.is-active{background:rgba(255,255,255,.11)}
.hps-rail-link.is-active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:#fff}
.hps-rail-link.products i{color:#f4d45d}.hps-rail-link.free i{color:#9fdfa8}
.hps-rail-login{min-height:49px;flex:0 0 49px;background:#041126;border-top:1px solid rgba(255,255,255,.15)}

.hps-topbar{position:fixed;z-index:450;left:var(--hps-rail);right:0;top:0;height:var(--hps-top);display:flex;align-items:center;background:rgba(255,255,255,.96);border-bottom:1px solid #e1e8ef;backdrop-filter:blur(14px);box-shadow:0 5px 18px rgba(11,28,60,.045)}
.hps-topbar-inner{width:min(1180px,calc(100% - 40px));margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:18px}
.hps-wordmark{display:inline-flex;align-items:center;gap:10px;color:#071a3a;text-decoration:none}.hps-wordmark .hps-mark{width:34px;height:34px;border:1px solid #e6edf4;box-shadow:0 5px 14px rgba(20,92,255,.08);font-size:0}.hps-wordmark-copy strong{display:block;font-size:16px;line-height:1;font-weight:900}.hps-wordmark-copy small{display:block;margin-top:3px;color:#6f7f92;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.hps-page-label{color:#58708a;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.hps-mobile-toggle,.hps-menu-close,.hps-backdrop,.hps-mobile-head{display:none}

.hps-main{margin-left:var(--hps-rail)}
.hps-footer{margin-left:var(--hps-rail);padding:19px 0 21px;background:#051226;color:#d7e3f3;text-align:center}.hps-footer-inner{width:min(1180px,calc(100% - 40px));margin-inline:auto;display:flex;flex-direction:column;align-items:center;gap:9px}.hps-footer p{margin:0;font-size:12px;font-weight:800}.hps-footer p a{color:#fff;text-decoration:none}.hps-footer-social{display:flex;gap:9px}.hps-footer-social a{width:30px;height:30px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:50%;color:#fff;text-decoration:none}

.hps-skip{position:fixed;z-index:900;left:calc(var(--hps-rail) + 12px);top:-60px;padding:9px 12px;border-radius:9px;background:#fff;color:#071a3a;font-weight:900;text-decoration:none}.hps-skip:focus{top:8px}

/* E-books — biblioteca leve: as capas são protagonistas, a moldura não compete com elas. */
html[data-hub-page="ebooks"] body{background:#fbfaf6!important}
html[data-hub-page="ebooks"] .hps-main{background:#fbfaf6!important}
html[data-hub-page="ebooks"] .hero{background:radial-gradient(circle at 88% 8%,rgba(92,177,142,.13),transparent 26%),radial-gradient(circle at 70% 100%,rgba(231,195,111,.10),transparent 32%),linear-gradient(135deg,#f8fcfa 0%,#fffaf2 62%,#f4faf7 100%)!important;border-bottom-color:#dde9e4!important}
html[data-hub-page="ebooks"] .eyebrow,html[data-hub-page="ebooks"] .k{background:#e8f5ef!important;color:#246b58!important}
html[data-hub-page="ebooks"] .hero p,html[data-hub-page="ebooks"] .head p,html[data-hub-page="ebooks"] .ct p,html[data-hub-page="ebooks"] .teacher-note p{color:#5b6e68!important}
html[data-hub-page="ebooks"] .soft{background:#f5f8f6!important}
html[data-hub-page="ebooks"] .collection{border-color:#dfe7e3!important;box-shadow:0 8px 24px rgba(7,26,59,.045)!important}
html[data-hub-page="ebooks"] .hero-collection{background:linear-gradient(135deg,#edf7f2,#fffaf2)!important;border-color:#d7e6df!important}
html[data-hub-page="ebooks"] .collection.teacher{--a:#2b7465!important;background:#fbfdfc!important;border-color:#dbe7e2!important}
html[data-hub-page="ebooks"] .teacher-note{background:#fff!important;border-color:#dce6e2!important}
html[data-hub-page="ebooks"] .count,html[data-hub-page="ebooks"] .free{background:#eaf5ee!important;color:#2f7249!important}
html[data-hub-page="ebooks"] .closebox{background:linear-gradient(135deg,#eef7f3,#fff9f0)!important;border-color:#d8e6df!important}
html[data-hub-page="ebooks"] .closebox a{background:#246d5d!important}

@media(max-width:760px){
  :root{--hps-rail:0px;--hps-top:54px}
  body{padding-top:var(--hps-top)}
  .hps-main,.hps-footer{margin-left:0}
  .hps-topbar{left:0;height:var(--hps-top)}
  .hps-topbar-inner{width:100%;padding:0 10px 0 56px;gap:8px}
  .hps-wordmark{gap:7px}.hps-wordmark .hps-mark{width:30px;height:30px;font-size:0}.hps-wordmark-copy strong{font-size:14px}.hps-wordmark-copy small{font-size:6.7px;letter-spacing:.055em}.hps-page-label{display:none}
  .hps-mobile-toggle{display:grid;place-items:center;position:fixed;z-index:620;left:8px;top:7px;width:40px;height:40px;border:0;border-radius:12px;background:#071a3a;color:#fff;box-shadow:0 7px 20px rgba(4,27,73,.18);font-size:17px;transition:opacity .15s ease,visibility .15s ease,transform .15s ease}
  body.hps-menu-open .hps-mobile-toggle{opacity:0;visibility:hidden;pointer-events:none;transform:scale(.92)}
  .hps-rail{z-index:610;width:min(82vw,286px);transform:translateX(-104%);transition:transform .22s ease;box-shadow:15px 0 36px rgba(0,0,0,.22);background:linear-gradient(180deg,#071a3a 0%,#0a2a58 72%,#0b356c 100%);border-radius:0 20px 20px 0}
  body.hps-menu-open .hps-rail{transform:translateX(0)}
  .hps-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;flex:0 0 64px;padding:9px 12px 8px 16px;border-bottom:1px solid rgba(255,255,255,.09)}
  .hps-mobile-brand{display:flex;align-items:center;gap:8px}.hps-mobile-brand .hps-mark{width:34px;height:34px;font-size:0}.hps-mobile-brand strong{display:block;font-size:13.5px}.hps-mobile-brand small{display:block;color:#afc3df;font-size:7px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
  .hps-menu-close{display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(255,255,255,.15);border-radius:11px;background:rgba(255,255,255,.055);color:#fff;font-size:16px}
  .hps-rail-brand{display:none}.hps-rail-group{padding:4px 8px;border-bottom:1px solid rgba(255,255,255,.075)}.hps-rail-group.identity{margin-top:0;border-top:0}.hps-rail-link{min-height:44px;display:grid;grid-template-columns:26px 1fr;justify-items:start;align-items:center;gap:12px;padding:6px 11px;border-radius:10px;text-align:left;font-size:13px;line-height:1.08}.hps-rail-link i{font-size:15px;text-align:center;width:22px}.hps-rail-link.is-active{background:rgba(255,255,255,.075)}.hps-rail-link.is-active:before{top:8px;bottom:8px}.hps-rail-login{margin:4px 8px 0;min-height:48px;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:rgba(2,14,32,.56)}
  .hps-backdrop{display:block;position:fixed;z-index:600;inset:0;border:0;padding:0;background:rgba(3,13,30,.52);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}.hps-menu-open .hps-backdrop{opacity:1;visibility:visible}
  .hps-skip{left:58px}
}
@media(prefers-reduced-motion:reduce){.hps-rail,.hps-backdrop{transition:none!important}}