/* NE LearnHub web ↔ Android alignment layer. Student-facing only. */
:root{--lh-navy:#123f70;--lh-blue:#1478d4;--lh-blue-dark:#0b5da8;--lh-sky:#dff4ff;--lh-yellow:#ffd65c;--lh-yellow-soft:#fff1ad;--lh-purple:#8e75e8;--lh-purple-soft:#eee7ff;--lh-mint:#dff7eb;--lh-line:#dce7f0;--lh-page:#f5f8fc}
.brand-app-logo{display:block;width:48px;height:48px;flex:0 0 48px;border-radius:14px;object-fit:cover;box-shadow:0 4px 12px rgba(16,43,76,.14)}
.footer-brand{display:flex;align-items:center;gap:9px}.footer-brand img{display:block;border-radius:9px}.footer-brand span{display:grid;gap:1px}.footer-brand small{color:#74869a;font-size:.66rem}
.kids-home .portal-mark,.kids-catalogue .catalogue-mark,.kids-login .login-mark{display:none!important}
.kids-home .aligned-subject-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.kids-home .aligned-subject-grid .subject-tile{min-height:170px;align-content:space-between}.kids-home .aligned-subject-grid .subject-tile>b:last-child{display:flex;align-items:center;gap:5px;color:var(--blue);font-size:.74rem}.kids-home .aligned-subject-grid .subject-tile.unavailable-subject{opacity:.66}

/* Premium guided selection bottom sheets */
html.sheet-open{overflow:hidden}.guided-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(680px,100%);max-width:none;max-height:min(86vh,820px);padding:14px 16px 18px;border:0;border-radius:28px 28px 0 0;background:#f6f8fc;color:var(--lh-navy);box-shadow:0 -20px 60px rgba(9,36,68,.2);overflow:hidden}.guided-sheet::backdrop{background:rgba(8,24,48,.42);backdrop-filter:blur(2px)}.guided-sheet[open]{animation:lh-sheet-in .2s ease-out}@keyframes lh-sheet-in{from{transform:translateY(26px);opacity:.7}to{transform:none;opacity:1}}.sheet-grabber{display:flex;width:max-content;align-items:center;gap:7px;margin:0 auto 12px;padding:7px 15px;border-radius:999px;background:var(--lh-purple-soft);color:var(--lh-purple);font-size:.69rem;box-shadow:0 2px 0 rgba(142,117,232,.16)}.sheet-grabber b{font-size:.69rem}.sheet-header{display:flex;align-items:center;gap:13px;padding:17px;border-radius:25px;box-shadow:0 2px 0 rgba(20,76,130,.08)}.sheet-header-yellow{background:#ffeaa0}.sheet-header-blue{background:#dff4ff}.sheet-header .sheet-subject-icon{display:grid;width:48px;height:48px;place-items:center;flex:0 0 48px;border-radius:16px;background:#fff;font-size:1.35rem}.sheet-header h2{margin:0;color:var(--lh-navy);font-size:1.35rem;line-height:1.15}.sheet-header p{margin:4px 0 0;color:#506a83;font-size:.78rem}.sheet-options{display:grid;gap:10px;margin-top:13px}.scroll-options{max-height:55vh;overflow-y:auto;padding:1px 2px 4px;overscroll-behavior:contain;scrollbar-width:thin}.sheet-option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;width:100%;min-height:72px;padding:11px 14px;border:1.5px solid #edf1f6;border-radius:20px;background:#fff;color:var(--lh-navy);font:inherit;text-align:left;cursor:pointer;box-shadow:0 5px 16px rgba(24,61,99,.045);transition:border-color .15s ease,background .15s ease,transform .15s ease}.sheet-option:hover,.sheet-option:focus-visible{border-color:#8ecbf3;background:#f7fcff}.sheet-option:active{transform:scale(.995)}.sheet-option .option-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:14px;background:var(--lh-purple-soft);font-size:1.12rem}.sheet-option>span:nth-child(2){display:grid;gap:3px}.sheet-option strong{font-size:.93rem}.sheet-option small{color:#64788f;font-size:.72rem;line-height:1.35}.sheet-option>b{color:var(--lh-blue);font-size:.72rem}.sheet-option[hidden]{display:none}.sheet-close,.sheet-back{min-height:46px;margin-top:12px;padding:8px 16px;border:1.5px solid #c9d9e7;border-radius:15px;background:#fff;color:var(--lh-navy);font:inherit;font-size:.78rem;font-weight:900;cursor:pointer}.sheet-close{width:100%}.sheet-actions{display:flex}.sheet-back{min-width:126px}.sheet-close:hover,.sheet-back:hover{border-color:#8bbde0;background:#eef8ff}

/* Explore header + current filters */
.aligned-explore{background:var(--lh-page)}.aligned-explore .active-nav{background:#eaf6ff!important;color:var(--lh-blue-dark)!important}.aligned-catalogue-hero{background:#dff4ff!important;border-bottom-color:#ffd65c!important}.aligned-catalogue-content{width:min(1040px,calc(100% - 40px))!important}.aligned-resource-filters{border-radius:26px!important;background:#fff!important;box-shadow:0 8px 22px rgba(20,64,104,.06)!important}.active-filter-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 22px 18px}.active-filter-row>strong{color:#526b82;font-size:.72rem}.active-filter-chip{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 10px;border-radius:999px;background:#e7f5ff;color:var(--lh-navy);font-size:.73rem;font-weight:850}.active-filter-chip i{font-style:normal}.active-filter-row>a{margin-left:auto;color:var(--lh-blue-dark);font-size:.72rem;font-weight:850;text-decoration:none}.aligned-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.aligned-results-heading{margin-top:30px!important}.aligned-results-heading small{color:#71859a;font-size:.72rem}

/* Two learning resources per row on desktop; collapse to one column on tablets/phones. */
.aligned-resource-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:15px}.aligned-resource-card{display:grid;grid-template-columns:minmax(0,1fr) 175px;min-height:230px;overflow:hidden;border:1.5px solid #e0eaf3;border-radius:25px;background:#fff;color:var(--lh-navy);text-decoration:none;box-shadow:0 7px 22px rgba(25,61,98,.055);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.aligned-resource-card:hover{transform:translateY(-2px);border-color:#9bcdec;box-shadow:0 12px 28px rgba(25,61,98,.095)}.aligned-resource-card:focus-visible{outline:4px solid #ffbf38;outline-offset:3px}.aligned-card-details{display:flex;min-width:0;flex-direction:column;align-items:flex-start;padding:21px 22px}.resource-type-pill{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:#eaf6ff;color:#315778;font-size:.69rem;font-weight:850}.resource-type-pill i{font-style:normal}.aligned-resource-title{display:-webkit-box;margin-top:12px;overflow:hidden;color:var(--lh-navy);font-size:1.25rem;line-height:1.25;-webkit-line-clamp:2;-webkit-box-orient:vertical}.resource-meta-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:9px;color:#5f758b;font-size:.72rem}.resource-meta-row>span{display:inline-flex;align-items:center}.resource-summary{display:-webkit-box;max-width:680px;margin-top:11px;overflow:hidden;color:#536b82;font-family:"Aptos","Segoe UI",system-ui,sans-serif;font-size:.79rem;line-height:1.5;-webkit-line-clamp:2;-webkit-box-orient:vertical}.muted-summary{color:#8292a2}.secondary-meta{margin-top:9px;color:#8493a2}.view-resource-action{display:inline-flex;align-items:center;gap:7px;min-height:40px;margin-top:auto;padding:9px 14px;border-radius:13px;background:var(--lh-blue);color:#fff;font-size:.75rem;font-weight:900;box-shadow:0 3px 0 #0a5da7}.aligned-card-image{display:grid;min-width:0;place-items:center;overflow:hidden;background:#eef7fd}.aligned-card-image img{display:block;width:100%;height:100%;min-height:230px;object-fit:cover}.aligned-cover-fallback{display:grid;width:100%;height:100%;min-height:230px;place-items:center;background:linear-gradient(145deg,#e7f5ff,#fff1ad);font-size:3.7rem}.aligned-empty-state{margin-top:0!important}.aligned-pager .pager-wide{padding-inline:14px!important;width:auto!important}.aligned-pager a.active{pointer-events:none}

/* Shared brand alignment on login and signed-in simple pages. */
.kids-login .login-brand .brand-app-logo{width:48px;height:48px}.authenticated-page .brand{gap:10px}.authenticated-page .brand::before{display:none!important}.authenticated-page .brand-logo-mini{width:38px;height:38px;border-radius:11px;object-fit:cover}

@media(max-width:900px){.kids-home .aligned-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.aligned-resource-list{grid-template-columns:1fr}.aligned-resource-card{grid-template-columns:minmax(0,1fr) 180px;min-height:205px}.aligned-card-image img,.aligned-cover-fallback{min-height:205px}}
@media(max-width:700px){.guided-sheet{width:100%;padding-inline:14px}.scroll-options{max-height:52vh}.aligned-filter-grid{grid-template-columns:1fr!important}.aligned-resource-card{grid-template-columns:minmax(0,1fr) 126px;min-height:178px;border-radius:21px}.aligned-card-details{padding:16px}.aligned-resource-title{font-size:1.02rem}.resource-summary{-webkit-line-clamp:2;font-size:.73rem}.resource-meta-row{font-size:.66rem}.aligned-card-image img,.aligned-cover-fallback{min-height:178px}.aligned-cover-fallback{font-size:2.5rem}.view-resource-action{min-height:36px;padding:7px 11px}.aligned-results-heading small{margin-left:47px}.active-filter-row>a{margin-left:0}.footer-brand img{width:32px;height:32px}}
@media(max-width:430px){.kids-home .aligned-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kids-home .aligned-subject-grid .subject-tile{min-height:150px;padding:14px}.aligned-catalogue-content{width:min(100% - 24px,1040px)!important}.aligned-resource-card{grid-template-columns:minmax(0,1fr) 104px}.aligned-card-details{padding:14px}.resource-type-pill{padding:5px 8px;font-size:.62rem}.aligned-resource-title{margin-top:9px;font-size:.94rem}.resource-summary{margin-top:8px;font-size:.68rem}.resource-meta-row{gap:6px;font-size:.61rem}.secondary-meta{display:none}.view-resource-action{font-size:.68rem}.aligned-cover-fallback{font-size:2.1rem}.sheet-header{padding:15px}.sheet-header h2{font-size:1.15rem}.sheet-option{min-height:68px;padding:10px 12px}.sheet-option .option-icon{width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){.guided-sheet[open]{animation:none}.aligned-resource-card,.sheet-option{transition:none}}
.footer-about-button{min-height:38px;padding:7px 11px;border:1px solid #d3e0eb;border-radius:11px;background:#fff;color:var(--lh-blue-dark);font:inherit;font-size:.69rem;font-weight:850;cursor:pointer}.footer-about-button:hover{background:#eef8ff;border-color:#9dc8e7}.about-dialog{width:min(540px,calc(100% - 28px));max-height:88vh;padding:20px;border:0;border-radius:26px;background:#fff;color:var(--lh-navy);box-shadow:0 24px 70px rgba(9,33,62,.25);overflow:auto}.about-dialog::backdrop{background:rgba(8,24,48,.46);backdrop-filter:blur(2px)}.about-app-brand{display:flex;align-items:center;gap:14px}.about-app-brand>img{width:76px;height:76px;border-radius:20px;object-fit:cover;box-shadow:0 6px 18px rgba(18,63,112,.12)}.about-app-brand h2{margin:0;font-size:1.35rem}.about-app-brand p{margin:4px 0 0;color:#687d92;font-size:.76rem}.about-copy{margin:18px 0;color:#5d7288;font-size:.82rem;line-height:1.55}.about-official-logos{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;padding:16px;border-radius:20px;background:#f7f9fc}.about-official-logos img{display:block;width:100%;height:118px;object-fit:contain}.about-credit{display:grid;gap:3px;margin-top:16px;padding:16px;border-radius:18px;background:#f3f6fa}.about-credit small{color:#657a90;font-weight:800}.about-credit strong{font-size:1rem}.about-credit span{color:#5f7287;font-size:.78rem}.about-close{width:100%;min-height:46px;margin-top:16px;border:0;border-radius:14px;background:var(--lh-blue);color:#fff;font:inherit;font-weight:900;cursor:pointer}@media(max-width:430px){.about-app-brand>img{width:64px;height:64px}.about-official-logos img{height:92px}}

/* --------------------------------------------------------------------------
   Resource detail page alignment — public + authenticated
   -------------------------------------------------------------------------- */
.resource-detail-page .shell{
  width:min(1180px,100%);
  margin-inline:auto;
  padding:18px 20px 72px;
}
.resource-detail-page .topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:66px;
  padding:10px 12px 10px 14px;
  border:1px solid #dce7f0;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:0 6px 22px rgba(25,56,91,.05);
}
.resource-detail-page .topbar .brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:var(--lh-navy);
  font-size:.98rem;
  font-weight:850;
  text-decoration:none;
}
.resource-detail-page .brand-logo-mini{
  display:block;
  width:40px!important;
  height:40px!important;
  max-width:40px!important;
  max-height:40px!important;
  flex:0 0 40px;
  border-radius:12px;
  object-fit:cover;
  box-shadow:0 3px 10px rgba(16,43,76,.13);
}
.resource-detail-page .nav-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.resource-detail-page .topbar .link-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 12px;
  border:1px solid #cfdeed;
  border-radius:11px;
  background:#f8fbff;
  color:var(--lh-blue-dark);
  font-size:.82rem;
  font-weight:800;
  text-decoration:none;
}
.resource-detail-page .topbar .link-button:hover{
  border-color:#9fc8e5;
  background:#eef8ff;
}
.resource-detail-page .resource-detail{
  display:grid;
  grid-template-columns:minmax(0,1fr) 245px;
  gap:14px;
  margin-top:18px;
}
.resource-detail-page .resource-detail>header{
  grid-column:1/-1;
  max-width:none;
  padding:24px 26px;
  border:1px solid #dce7f0;
  border-radius:22px;
  background:#fff;
  box-shadow:0 7px 24px rgba(25,61,98,.055);
}
.resource-detail-page .resource-detail>header .file-type{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:5px 10px;
  border-radius:999px;
  background:#eaf6ff;
  color:#315778;
  font-size:.7rem;
  font-weight:850;
  letter-spacing:.02em;
}
.resource-detail-page .resource-detail>header h1{
  margin:10px 0 8px;
  color:var(--lh-navy);
  font-size:clamp(2rem,5vw,3.25rem);
  line-height:1.08;
  letter-spacing:-.035em;
}
.resource-detail-page .resource-detail>header p{
  max-width:860px;
  margin:0;
  color:#60758a;
  font-size:.94rem;
  line-height:1.65;
}
.resource-detail-page .resource-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
}
.resource-detail-page .resource-actions form{margin:0}
.resource-detail-page .resource-actions .nav-button,
.resource-detail-page .resource-actions .link-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  margin:0;
  padding:8px 13px;
  border-radius:11px;
  font-size:.8rem;
  font-weight:800;
  text-decoration:none;
}
.resource-detail-page .resource-actions .link-button{
  border:1px solid #cfdeed;
  background:#f8fbff;
  color:var(--lh-blue-dark);
}
.resource-detail-page .share-status{font-size:.76rem;color:#657a8f}
.resource-detail-page .viewer{
  display:grid;
  min-width:0;
  min-height:520px;
  place-items:center;
  overflow:hidden;
  border:1px solid #203a55;
  border-radius:20px;
  background:#152131;
  box-shadow:0 10px 30px rgba(14,31,50,.14);
}
.resource-detail-page .viewer iframe,
.resource-detail-page .viewer video,
.resource-detail-page .viewer img{
  display:block;
  width:100%;
  height:min(74vh,780px);
  min-height:520px;
  border:0;
  object-fit:contain;
}
.resource-detail-page .metadata{
  align-self:start;
  padding:15px;
  border:1px solid #dce7f0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 7px 24px rgba(25,61,98,.055);
}
.resource-detail-page .metadata dl{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  margin:0;
}
.resource-detail-page .metadata dl div{
  display:grid;
  grid-template-columns:68px minmax(0,1fr);
  align-items:start;
  gap:7px;
  padding:8px 9px;
  border-radius:10px;
  background:#f7f9fc;
}
.resource-detail-page .metadata dt{
  color:#657a8e;
  font-size:.61rem;
  font-weight:900;
  line-height:1.35;
  text-transform:uppercase;
}
.resource-detail-page .metadata dd{
  margin:0;
  color:var(--lh-navy);
  font-size:.78rem;
  font-weight:650;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.resource-detail-page .metadata h2{
  margin:14px 0 5px;
  color:var(--lh-navy);
  font-size:.86rem;
}
.resource-detail-page .metadata p{
  margin:0;
  color:#60758a;
  font-size:.78rem;
  line-height:1.45;
}
.resource-detail-page .metadata-detail-row{
  display:grid;
  gap:3px;
  margin-top:11px;
  padding-top:11px;
  border-top:1px solid #e6edf4;
}
.resource-detail-page .metadata-detail-row>span{
  color:var(--lh-navy);
  font-size:.74rem;
  font-weight:900;
}
.resource-detail-page .metadata-detail-row>strong{
  color:#60758a;
  font-size:.76rem;
  font-weight:600;
  line-height:1.4;
}
.resource-detail-page .metadata .metadata-tags{
  margin-top:12px;
  gap:5px;
}
.resource-detail-page .metadata .metadata-tags span{
  padding:4px 8px;
  font-size:.66rem;
}
.resource-detail-page .metadata .automatic-reading-progress{
  margin-top:14px;
  padding:12px;
  border-radius:14px;
}
.resource-detail-page .document-open{padding:40px;text-align:center;color:#fff}
@media(max-width:850px){
  .resource-detail-page .resource-detail{grid-template-columns:1fr}
  .resource-detail-page .metadata{grid-column:1;position:static}
  .resource-detail-page .viewer{min-height:430px}
  .resource-detail-page .viewer iframe,
  .resource-detail-page .viewer video,
  .resource-detail-page .viewer img{height:64vh;min-height:430px}
}
@media(max-width:620px){
  .resource-detail-page .shell{padding:12px 12px 60px}
  .resource-detail-page .topbar{align-items:stretch;flex-direction:column;padding:10px 12px}
  .resource-detail-page .nav-actions{justify-content:flex-start}
  .resource-detail-page .topbar .link-button{flex:1 1 auto}
  .resource-detail-page .resource-detail{gap:14px;margin-top:14px}
  .resource-detail-page .resource-detail>header{padding:19px 17px;border-radius:18px}
  .resource-detail-page .resource-detail>header h1{font-size:2rem}
  .resource-detail-page .resource-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .resource-detail-page .resource-actions form,
  .resource-detail-page .resource-actions .nav-button,
  .resource-detail-page .resource-actions .link-button{width:100%}
  .resource-detail-page .share-status{grid-column:1/-1}
  .resource-detail-page .viewer{min-height:360px;border-radius:16px}
  .resource-detail-page .viewer iframe,
  .resource-detail-page .viewer video,
  .resource-detail-page .viewer img{height:58vh;min-height:360px}
  .resource-detail-page .metadata{padding:15px;border-radius:17px}
}
@media(max-width:390px){
  .resource-detail-page .metadata dl{grid-template-columns:1fr}
  .resource-detail-page .resource-actions{grid-template-columns:1fr}
}

/* Resource reading-progress feedback - 2026-08-14 */
.resource-detail-page .progress-form{gap:8px}.resource-detail-page .progress-help{margin:0;color:#71849a;font-size:.72rem;line-height:1.4}.resource-detail-page .progress-status{min-height:1.2em;margin:0;font-size:.74rem;font-weight:800}.resource-detail-page .progress-status[data-tone="success"]{color:#16824b}.resource-detail-page .progress-status[data-tone="error"]{color:#b42318}.resource-detail-page .progress-status[data-tone="saving"]{color:#5b7187}.resource-detail-page .progress-form button[aria-busy="true"]{opacity:.7;cursor:wait}

/* Automatic PDF reading progress + NE LearnHub PDF.js viewer - 2026-08-14 */
.resource-detail-page .viewer.pdf-auto-viewer{
  display:block;
  min-height:620px;
  overflow:hidden;
  background:#202a36;
}
.resource-detail-page .pdf-reader{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  width:100%;
  height:min(78vh,820px);
  min-height:620px;
  background:#222c38;
}
.resource-detail-page .pdf-reader-toolbar{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:52px;
  padding:7px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:#18212d;
  color:#fff;
}
.resource-detail-page .pdf-reader-toolbar button{
  display:inline-grid;
  place-items:center;
  min-width:38px;
  height:38px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:10px;
  background:#25313f;
  color:#fff;
  font:inherit;
  font-size:.78rem;
  font-weight:850;
  cursor:pointer;
}
.resource-detail-page .pdf-reader-toolbar button:hover:not(:disabled){background:#324255}
.resource-detail-page .pdf-reader-toolbar button:disabled{opacity:.38;cursor:not-allowed}
.resource-detail-page .pdf-page-control{
  display:flex;
  align-items:center;
  gap:7px;
  color:#d9e4ee;
  font-size:.76rem;
  white-space:nowrap;
}
.resource-detail-page .pdf-page-control input{
  width:58px;
  height:38px;
  padding:6px 7px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:9px;
  background:#111923;
  color:#fff;
  font:inherit;
  text-align:center;
}
.resource-detail-page .pdf-toolbar-divider{
  width:1px;
  height:28px;
  margin-inline:3px;
  background:rgba(255,255,255,.12);
}
.resource-detail-page .pdf-reader-stage{
  position:relative;
  display:flex;
  min-height:0;
  align-items:flex-start;
  justify-content:center;
  overflow:auto;
  padding:16px;
  background:#313a46;
  overscroll-behavior:contain;
}
.resource-detail-page .pdf-reader-stage canvas{
  display:block;
  max-width:none;
  background:#fff;
  box-shadow:0 8px 26px rgba(0,0,0,.25);
}
.resource-detail-page .pdf-reader-loading{
  position:absolute;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  padding:10px 14px;
  border-radius:12px;
  background:rgba(17,25,35,.88);
  color:#fff;
  font-size:.82rem;
  font-weight:800;
  z-index:2;
}
.resource-detail-page .pdf-reader-status{
  min-height:34px;
  padding:8px 12px;
  border-top:1px solid rgba(255,255,255,.08);
  background:#18212d;
  color:#bcc9d5;
  font-size:.72rem;
  text-align:center;
}
.resource-detail-page .pdf-reader-status[data-tone="error"]{color:#ffb4ab}
.resource-detail-page .automatic-reading-progress{
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid #dce7f0;
}
.resource-detail-page .automatic-progress-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.resource-detail-page .automatic-progress-head h2{
  margin:0;
  font-size:1rem;
}
.resource-detail-page .automatic-progress-head p{
  margin:4px 0 0;
  color:#71849a;
  font-size:.72rem;
}
.resource-detail-page .automatic-progress-head>strong{
  flex:0 0 auto;
  color:var(--lh-blue);
  font-size:1.15rem;
}
.resource-detail-page .automatic-reading-progress progress{
  display:block;
  width:100%;
  height:10px;
  margin:12px 0 10px;
  accent-color:var(--lh-blue);
}
.resource-detail-page .automatic-progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#61768b;
  font-size:.72rem;
}
.resource-detail-page .automatic-progress-meta [data-tone="success"]{color:#16824b}
.resource-detail-page .automatic-progress-meta [data-tone="saving"]{color:#5b7187}
.resource-detail-page .automatic-progress-meta [data-tone="error"]{color:#b42318}
@media(max-width:850px){
  .resource-detail-page .viewer.pdf-auto-viewer{min-height:520px}
  .resource-detail-page .pdf-reader{height:70vh;min-height:520px}
}
@media(max-width:620px){
  .resource-detail-page .viewer.pdf-auto-viewer{min-height:440px}
  .resource-detail-page .pdf-reader{height:68vh;min-height:440px}
  .resource-detail-page .pdf-reader-toolbar{gap:5px;padding:6px;overflow-x:auto}
  .resource-detail-page .pdf-reader-toolbar button{min-width:36px;height:36px;padding:0 9px}
  .resource-detail-page .pdf-page-control input{width:50px;height:36px}
  .resource-detail-page .pdf-reader-stage{padding:10px}
}

/* User-friendly NE LearnHub PDF reader refinement - 2026-08-14 */
.resource-detail-page .viewer.pdf-auto-viewer{
  min-height:600px;
  border:1px solid #d6e2ec;
  border-radius:24px;
  background:#e8eef4;
  box-shadow:0 10px 30px rgba(18,52,86,.08);
}
.resource-detail-page .pdf-reader{
  height:min(78vh,820px);
  min-height:600px;
  background:#e8eef4;
}
.resource-detail-page .pdf-reader-toolbar{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  min-height:62px;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:#172333;
  box-shadow:0 4px 14px rgba(4,15,28,.12);
}
.resource-detail-page .pdf-toolbar-group{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.resource-detail-page .pdf-toolbar-pages{flex:0 1 auto}
.resource-detail-page .pdf-toolbar-view{justify-content:flex-end}
.resource-detail-page .pdf-toolbar-fullscreen{flex:0 0 auto}
.resource-detail-page .pdf-toolbar-spacer{flex:1 1 20px}
.resource-detail-page .pdf-reader-toolbar .pdf-tool-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:40px;
  height:42px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:#253446;
  color:#f7fbff;
  font:inherit;
  font-size:.76rem;
  font-weight:850;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.resource-detail-page .pdf-reader-toolbar .pdf-tool-button:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:rgba(129,194,241,.5);
  background:#31465e;
}
.resource-detail-page .pdf-reader-toolbar .pdf-tool-button:disabled{
  opacity:.34;
  transform:none;
  cursor:not-allowed;
}
.resource-detail-page .pdf-reader-toolbar .pdf-tool-button.is-active{
  border-color:#7fc7f6;
  background:#0f6fbd;
  color:#fff;
}
.resource-detail-page .pdf-tool-button--icon{
  width:42px;
  padding:0!important;
  font-size:1rem!important;
}
.resource-detail-page .pdf-page-control{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:#101b29;
  color:#dce8f4;
  font-size:.74rem;
  font-weight:750;
  white-space:nowrap;
}
.resource-detail-page .pdf-page-control input{
  width:56px;
  height:34px;
  padding:4px 6px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:9px;
  background:#243247;
  color:#fff;
  font:inherit;
  font-weight:850;
  text-align:center;
}
.resource-detail-page .pdf-page-control input:focus{
  outline:2px solid #7fc7f6;
  outline-offset:1px;
}
.resource-detail-page .pdf-zoom-state{
  display:inline-grid;
  min-width:64px;
  height:38px;
  place-items:center;
  padding:0 8px;
  border-radius:10px;
  background:#101b29;
  color:#dce8f4;
  font-size:.7rem;
  font-weight:850;
  white-space:nowrap;
}
.resource-detail-page .pdf-reader-stage{
  position:relative;
  display:flex;
  min-height:0;
  align-items:flex-start;
  justify-content:center;
  overflow:auto;
  padding:22px;
  background:linear-gradient(180deg,#e6edf3 0%,#dbe5ed 100%);
  overscroll-behavior:contain;
  scrollbar-color:#8da0b1 transparent;
  scrollbar-width:thin;
}
.resource-detail-page .pdf-stage-nav{
  position:absolute;
  top:50%;
  z-index:8;
  display:grid;
  place-items:center;
  width:54px;
  height:64px;
  border:2px solid #bfe1f7;
  border-radius:19px;
  background:rgba(255,255,255,.96);
  color:#1478d4;
  font:inherit;
  font-size:2rem;
  font-weight:950;
  line-height:1;
  box-shadow:0 10px 24px rgba(18,63,112,.16),0 3px 0 rgba(20,120,212,.10);
  cursor:pointer;
  opacity:.94;
  transform:translateY(-50%);
  backdrop-filter:blur(5px);
  transition:transform .15s ease,opacity .15s ease,background .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.resource-detail-page .pdf-stage-nav:hover:not(:disabled),
.resource-detail-page .pdf-stage-nav:focus-visible:not(:disabled){
  transform:translateY(-50%) scale(1.04);
  opacity:1;
  border-color:#1478d4;
  background:#1478d4;
  color:#fff;
  box-shadow:0 14px 28px rgba(18,63,112,.22),0 4px 0 #0b5da8;
}
.resource-detail-page .pdf-stage-nav:active:not(:disabled){
  transform:translateY(-50%) scale(.98);
  box-shadow:0 7px 16px rgba(18,63,112,.18),0 2px 0 #0b5da8;
}
.resource-detail-page .pdf-stage-nav:focus-visible{
  outline:4px solid #ffd65c;
  outline-offset:3px;
}
.resource-detail-page .pdf-stage-nav:disabled{
  opacity:0;
  pointer-events:none;
}
.resource-detail-page .pdf-stage-nav--prev{
  left:16px;
}
.resource-detail-page .pdf-stage-nav--next{
  right:16px;
}

.resource-detail-page .pdf-book-spread{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:10px;
  width:max-content;
  min-width:100%;
  margin-inline:auto;
}
.resource-detail-page .pdf-book-spread.is-single-page{
  min-width:0;
}
.resource-detail-page .pdf-page-sheet{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  padding:0;
  cursor:default;
}
.resource-detail-page .pdf-book-spread.is-spread .pdf-page-sheet--left,
.resource-detail-page .pdf-book-spread.is-cover .pdf-page-sheet--left{cursor:w-resize}
.resource-detail-page .pdf-book-spread.is-spread .pdf-page-sheet--right{cursor:e-resize}
.resource-detail-page .pdf-book-spread.is-spread .pdf-page-sheet{
  background:linear-gradient(180deg,#fbfcfe 0%,#f1f5f9 100%);
  box-shadow:0 12px 30px rgba(30,50,70,.11);
}
.resource-detail-page .pdf-book-spread.is-spread .pdf-page-sheet--left{
  border-radius:6px 2px 2px 6px;
  box-shadow:inset -8px 0 14px rgba(20,37,58,.08),0 10px 30px rgba(30,50,70,.12);
}
.resource-detail-page .pdf-book-spread.is-spread .pdf-page-sheet--right{
  border-radius:2px 6px 6px 2px;
  box-shadow:inset 8px 0 14px rgba(20,37,58,.08),0 10px 30px rgba(30,50,70,.12);
}
.resource-detail-page .pdf-page-sheet[hidden]{display:none!important}
.resource-detail-page .pdf-page-sheet canvas{
  display:block;
  max-width:none;
  border-radius:3px;
  background:#fff;
  box-shadow:0 10px 30px rgba(30,50,70,.18),0 1px 3px rgba(20,40,60,.18);
}
.resource-detail-page .pdf-book-spread.is-single-page .pdf-page-sheet canvas{
  box-shadow:0 10px 30px rgba(30,50,70,.18),0 1px 3px rgba(20,40,60,.18);
}

/* Realistic open-book treatment + subtle page-turn motion. */
.resource-detail-page .pdf-book-spread{
  position:relative;
  perspective:1800px;
  perspective-origin:center center;
  transform-style:preserve-3d;
}
.resource-detail-page .pdf-book-spread.is-spread::before{
  content:"";
  position:absolute;
  z-index:6;
  top:0;
  bottom:0;
  left:50%;
  width:12px;
  transform:translateX(-50%);
  pointer-events:none;
  background:linear-gradient(90deg,
    rgba(24,36,52,0) 0%,
    rgba(24,36,52,.08) 26%,
    rgba(24,36,52,.16) 48%,
    rgba(255,255,255,.22) 52%,
    rgba(24,36,52,.09) 72%,
    rgba(24,36,52,0) 100%);
  filter:blur(.2px);
}
.resource-detail-page .pdf-book-spread.is-spread::after{
  content:"";
  position:absolute;
  z-index:-1;
  left:4%;
  right:4%;
  bottom:-13px;
  height:24px;
  border-radius:50%;
  pointer-events:none;
  background:rgba(29,45,62,.22);
  filter:blur(14px);
}
.resource-detail-page .pdf-book-spread.is-spread .pdf-page-sheet{
  overflow:hidden;
  backface-visibility:hidden;
  transform-style:preserve-3d;
  transition:transform .24s cubic-bezier(.2,.72,.2,1),filter .24s ease,box-shadow .24s ease;
}
.resource-detail-page .pdf-book-spread.is-spread .pdf-page-sheet--left::after,
.resource-detail-page .pdf-book-spread.is-spread .pdf-page-sheet--right::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  opacity:.42;
}
.resource-detail-page .pdf-book-spread.is-spread .pdf-page-sheet--left::after{
  background:linear-gradient(90deg,rgba(255,255,255,.12),rgba(255,255,255,0) 76%,rgba(18,31,47,.10));
}
.resource-detail-page .pdf-book-spread.is-spread .pdf-page-sheet--right::after{
  background:linear-gradient(90deg,rgba(18,31,47,.10),rgba(255,255,255,0) 24%,rgba(255,255,255,.10));
}
.resource-detail-page .pdf-book-spread.is-cover{
  min-width:0;
  width:max-content;
  padding:8px 10px 18px;
}
.resource-detail-page .pdf-book-spread.is-cover::after{
  content:"";
  position:absolute;
  z-index:-1;
  left:8%;
  right:8%;
  bottom:2px;
  height:24px;
  border-radius:50%;
  background:rgba(28,43,60,.20);
  filter:blur(13px);
}
.resource-detail-page .pdf-book-spread.is-cover .pdf-page-sheet--left{
  border-radius:7px 4px 4px 7px;
  box-shadow:8px 11px 0 rgba(181,191,201,.72),
             13px 16px 0 rgba(205,213,220,.72),
             0 18px 38px rgba(24,42,61,.24);
}
.resource-detail-page .pdf-book-spread.is-cover .pdf-page-sheet--left::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset -10px 0 16px rgba(22,35,50,.10),inset 0 0 0 1px rgba(255,255,255,.35);
}
.resource-detail-page .pdf-book-spread.is-turning-next .pdf-page-sheet--right{
  transform-origin:left center;
  transform:rotateY(-72deg) translateZ(1px);
  filter:brightness(.93);
  box-shadow:-18px 10px 28px rgba(23,37,53,.24);
}
.resource-detail-page .pdf-book-spread.is-turning-prev .pdf-page-sheet--left{
  transform-origin:right center;
  transform:rotateY(72deg) translateZ(1px);
  filter:brightness(.93);
  box-shadow:18px 10px 28px rgba(23,37,53,.24);
}
.resource-detail-page .pdf-book-spread.is-cover.is-turning-next .pdf-page-sheet--left{
  transform-origin:left center;
  transform:rotateY(-72deg) translateZ(1px);
  filter:brightness(.93);
}
.resource-detail-page .pdf-book-spread.is-entering-next .pdf-page-sheet--right{
  animation:lh-book-enter-next .26s cubic-bezier(.2,.72,.2,1) both;
}
.resource-detail-page .pdf-book-spread.is-entering-prev .pdf-page-sheet--left{
  animation:lh-book-enter-prev .26s cubic-bezier(.2,.72,.2,1) both;
}
.resource-detail-page .pdf-book-spread.is-cover.is-entering-prev .pdf-page-sheet--left,
.resource-detail-page .pdf-book-spread.is-cover.is-entering-next .pdf-page-sheet--left{
  animation:lh-book-cover-enter .26s cubic-bezier(.2,.72,.2,1) both;
}
@keyframes lh-book-enter-next{
  from{transform-origin:left center;transform:rotateY(58deg);filter:brightness(.94)}
  to{transform-origin:left center;transform:rotateY(0);filter:brightness(1)}
}
@keyframes lh-book-enter-prev{
  from{transform-origin:right center;transform:rotateY(-58deg);filter:brightness(.94)}
  to{transform-origin:right center;transform:rotateY(0);filter:brightness(1)}
}
@keyframes lh-book-cover-enter{
  from{transform:rotateY(-28deg) translateY(2px);opacity:.82}
  to{transform:rotateY(0) translateY(0);opacity:1}
}
.resource-detail-page .pdf-reader-loading{
  padding:11px 15px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:13px;
  background:rgba(23,35,51,.92);
  box-shadow:0 10px 26px rgba(19,40,61,.18);
}
.resource-detail-page .pdf-reader-status{
  min-height:0;
  padding:8px 12px;
  border-top:1px solid rgba(255,255,255,.08);
  background:#172333;
  color:#d5e0ea;
  font-size:.72rem;
  text-align:center;
}
.resource-detail-page .pdf-reader-status:empty{display:none}
.resource-detail-page .pdf-reader:fullscreen,
.resource-detail-page .pdf-reader.is-fullscreen{
  width:100vw;
  height:100vh;
  min-height:100vh;
  border-radius:0;
  background:#dfe7ee;
}
.resource-detail-page .pdf-reader:fullscreen .pdf-reader-stage,
.resource-detail-page .pdf-reader.is-fullscreen .pdf-reader-stage{
  padding:28px;
}
.resource-detail-page .automatic-reading-progress{
  padding:18px;
  border:1px solid #dce8f1;
  border-radius:18px;
  background:#f8fbfe;
}
.resource-detail-page .automatic-reading-progress progress{
  height:8px;
  border-radius:999px;
}
@media(max-width:980px){
  .resource-detail-page .pdf-toolbar-spacer{display:none}
  .resource-detail-page .pdf-toolbar-view{margin-left:auto}
}
@media(max-width:720px){
  .resource-detail-page .pdf-stage-nav{display:none!important}
  .resource-detail-page .pdf-book-spread{perspective:none}
  .resource-detail-page .pdf-book-spread::before,
  .resource-detail-page .pdf-book-spread::after{display:none!important}
  .resource-detail-page .viewer.pdf-auto-viewer{min-height:500px;border-radius:20px}
  .resource-detail-page .pdf-reader{height:72vh;min-height:500px}
  .resource-detail-page .pdf-reader-toolbar{
    position:relative;
    gap:7px;
    padding:7px;
    overflow-x:auto;
    flex-wrap:nowrap;
    scrollbar-width:none;
  }
  .resource-detail-page .pdf-reader-toolbar::-webkit-scrollbar{display:none}
  .resource-detail-page .pdf-toolbar-group{flex:0 0 auto}
  .resource-detail-page .pdf-toolbar-view{margin-left:0}
  .resource-detail-page .pdf-reader-toolbar .pdf-tool-button{height:40px;padding:0 10px}
  .resource-detail-page .pdf-tool-button--text b,
  .resource-detail-page .pdf-tool-button--view b{display:none}
  .resource-detail-page .pdf-tool-button--view{min-width:40px;font-size:.7rem}
  .resource-detail-page .pdf-page-control{height:40px;padding:0 8px}
  .resource-detail-page .pdf-page-control>span:first-child{display:none}
  .resource-detail-page .pdf-page-control input{width:48px;height:32px}
  .resource-detail-page .pdf-zoom-state{min-width:66px;height:36px;font-size:.65rem}
  .resource-detail-page .pdf-reader-stage{padding:12px}
}
@media(max-width:430px){
  .resource-detail-page .viewer.pdf-auto-viewer{min-height:460px}
  .resource-detail-page .pdf-reader{height:68vh;min-height:460px}
  .resource-detail-page .pdf-reader-toolbar{min-height:52px}
  .resource-detail-page .pdf-reader-toolbar .pdf-tool-button{min-width:38px;height:38px;padding:0 8px}
  .resource-detail-page .pdf-page-control{height:38px}
  .resource-detail-page .pdf-page-control input{width:44px;height:30px}
  .resource-detail-page .pdf-reader-stage{padding:8px}
}

/* 2026-08-16: cPanel PDF fallback remains controlled by the LearnHub toolbar. */
.resource-detail-page .pdf-native-fallback-frame{
  display:block;
  width:100%;
  height:100%;
  min-height:560px;
  border:0;
  border-radius:4px;
  background:#fff;
}
.resource-detail-page .pdf-reader.is-fullscreen .pdf-native-fallback-frame,
.resource-detail-page .pdf-reader:fullscreen .pdf-native-fallback-frame{
  min-height:calc(100vh - 120px);
}
@media (max-width:720px){
  .resource-detail-page .pdf-native-fallback-frame{min-height:460px}
}

/* Public footer policy link - 2026-08-19 */
.footer-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.footer-policy-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 11px;border:1px solid #d3e0eb;border-radius:11px;background:#fff;color:var(--lh-blue-dark);font:inherit;font-size:.69rem;font-weight:850;text-decoration:none}.footer-policy-link:hover,.footer-policy-link:focus-visible{border-color:#9fc8e5;background:#eaf6ff}.login-footer .page-width .footer-actions{margin-left:auto}@media(max-width:620px){.portal-footer .footer-layout,.catalogue-footer .page-width,.login-footer .page-width{gap:12px;flex-wrap:wrap}.footer-actions{width:auto}}

@media(prefers-reduced-motion:reduce){
  .resource-detail-page .pdf-book-spread .pdf-page-sheet{transition:none!important;animation:none!important}
}


/* --------------------------------------------------------------------------
   2026-08-20 Storybook reader polish:
   - one-row desktop toolbar
   - spread-aware page indicator
   - content-fit reader height (no large empty area below the pages)
   -------------------------------------------------------------------------- */
.resource-detail-page .pdf-page-range{
  margin-left:-3px;
  color:#dce8f4;
  font-weight:850;
}
.resource-detail-page .pdf-page-range[hidden]{display:none!important}

@media(min-width:981px){
  .resource-detail-page .viewer.pdf-auto-viewer{
    min-height:0;
  }
  .resource-detail-page .pdf-reader{
    height:auto;
    min-height:0;
    grid-template-rows:auto auto auto;
  }
  .resource-detail-page .pdf-reader-toolbar{
    flex-wrap:nowrap;
    gap:6px;
    min-height:56px;
    padding:8px 10px;
    overflow:hidden;
  }
  .resource-detail-page .pdf-toolbar-group{
    flex-wrap:nowrap;
    gap:5px;
    min-width:0;
  }
  .resource-detail-page .pdf-toolbar-pages{flex:0 0 auto}
  .resource-detail-page .pdf-toolbar-view{flex:0 0 auto}
  .resource-detail-page .pdf-toolbar-zoom{flex:0 0 auto}
  .resource-detail-page .pdf-toolbar-fullscreen{flex:0 0 auto}
  .resource-detail-page .pdf-toolbar-spacer{
    flex:1 1 8px;
    min-width:4px;
  }
  .resource-detail-page .pdf-reader-toolbar .pdf-tool-button{
    min-width:38px;
    height:40px;
    padding:0 9px;
    gap:5px;
    border-radius:11px;
    font-size:.72rem;
  }
  .resource-detail-page .pdf-tool-button--icon{
    width:38px;
    min-width:38px!important;
  }
  .resource-detail-page .pdf-page-control{
    min-height:40px;
    gap:5px;
    padding:0 8px;
    font-size:.7rem;
  }
  .resource-detail-page .pdf-page-control input{
    width:48px;
    height:32px;
    padding:3px 5px;
  }
  .resource-detail-page .pdf-zoom-state{
    min-width:54px;
    height:34px;
    padding:0 6px;
  }
  .resource-detail-page .pdf-reader-stage{
    min-height:320px;
    height:520px;
    overflow-x:hidden;
    overflow-y:auto;
    transition:height .18s ease;
  }
}

@media(min-width:721px) and (max-width:980px){
  .resource-detail-page .pdf-reader{
    height:auto;
    min-height:0;
  }
  .resource-detail-page .viewer.pdf-auto-viewer{
    min-height:0;
  }
  .resource-detail-page .pdf-reader-stage{
    min-height:340px;
  }
}

@media(prefers-reduced-motion:reduce){
  .resource-detail-page .pdf-reader-stage{transition:none!important}
}


/* --------------------------------------------------------------------------
   2026-08-20 final storybook detail polish
   - compact resource summary header
   - clean spread label with click-to-go page editor
   -------------------------------------------------------------------------- */
.resource-detail-page .resource-summary-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  padding:16px 18px!important;
}
.resource-detail-page .resource-heading-main{min-width:0}
.resource-detail-page .resource-heading-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.resource-detail-page .resource-summary-header .file-type{
  min-height:28px!important;
  padding:4px 9px!important;
  flex:0 0 auto;
}
.resource-detail-page .resource-summary-header h1{
  min-width:0;
  margin:0!important;
  overflow:hidden;
  font-size:clamp(1.45rem,3vw,2.15rem)!important;
  line-height:1.08!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.resource-detail-page .resource-summary-header p{
  max-width:820px!important;
  margin:7px 0 0!important;
  font-size:.84rem!important;
  line-height:1.45!important;
}
.resource-detail-page .resource-summary-header .resource-actions{
  justify-content:flex-end;
  align-self:center;
  margin-top:0!important;
}
.resource-detail-page .resource-summary-header .resource-actions .nav-button,
.resource-detail-page .resource-summary-header .resource-actions .link-button{
  min-height:36px!important;
  padding:7px 11px!important;
  font-size:.74rem!important;
}
.resource-detail-page .resource-summary-header .share-status{
  flex-basis:100%;
  text-align:right;
}

.resource-detail-page .pdf-page-jump{
  position:relative;
  flex:0 0 auto;
}
.resource-detail-page .pdf-page-display{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 11px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:11px;
  background:#101b29;
  color:#f7fbff;
  font:inherit;
  font-size:.72rem;
  font-weight:850;
  white-space:nowrap;
  cursor:pointer;
}
.resource-detail-page .pdf-page-display:hover,
.resource-detail-page .pdf-page-display[aria-expanded="true"]{
  border-color:rgba(127,199,246,.5);
  background:#203348;
}
.resource-detail-page .pdf-page-editor{
  position:absolute;
  z-index:20;
  top:calc(100% + 7px);
  left:50%;
  display:flex;
  align-items:center;
  gap:6px;
  transform:translateX(-50%);
  padding:7px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:#172333;
  box-shadow:0 14px 30px rgba(4,15,28,.28);
}
.resource-detail-page .pdf-page-editor[hidden]{display:none!important}
.resource-detail-page .pdf-page-editor input{
  width:60px;
  height:34px;
  padding:4px 6px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:9px;
  background:#243247;
  color:#fff;
  font:inherit;
  font-weight:850;
  text-align:center;
}
.resource-detail-page .pdf-page-go{
  min-width:42px;
  height:34px;
  border:0;
  border-radius:9px;
  background:#1478d4;
  color:#fff;
  font:inherit;
  font-size:.7rem;
  font-weight:900;
  cursor:pointer;
}
.resource-detail-page .visually-hidden{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

@media(max-width:720px){
  .resource-detail-page .resource-summary-header{
    grid-template-columns:1fr;
    gap:11px;
    padding:14px 15px!important;
  }
  .resource-detail-page .resource-heading-title-row{align-items:flex-start;flex-wrap:wrap}
  .resource-detail-page .resource-summary-header h1{white-space:normal}
  .resource-detail-page .resource-summary-header .resource-actions{justify-content:flex-start}
  .resource-detail-page .resource-summary-header .share-status{text-align:left}
  .resource-detail-page .pdf-page-display{min-height:38px;padding:0 9px;font-size:.68rem}
  .resource-detail-page .pdf-page-editor{left:0;transform:none}
}


/* Page jump editor stays inline so the one-row toolbar never clips it. */
.resource-detail-page .pdf-page-display[hidden]{display:none!important}
.resource-detail-page .pdf-page-editor{
  position:static!important;
  top:auto!important;
  left:auto!important;
  transform:none!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.resource-detail-page .pdf-page-editor input{height:34px}
@media(max-width:720px){
  .resource-detail-page .pdf-page-editor{position:static!important;transform:none!important}
}


/* --------------------------------------------------------------------------
   SDO-NE LearnHub public footer — shared across Home, Explore, Login, Resource
   -------------------------------------------------------------------------- */
.learnhub-public-footer{
  position:relative;
  margin-top:28px;
  border-top:1px solid #d7e4ee;
  background:#f7fbff;
  color:var(--lh-navy,#123f70);
  font-family:"Aptos","Segoe UI",system-ui,sans-serif;
}
.learnhub-public-footer::before{
  content:"";
  position:absolute;
  top:-1px;
  left:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg,#1478d4 0 42%,#ffd65c 42% 68%,#55d6ad 68% 100%);
}
.learnhub-public-footer .page-width,
.learnhub-public-footer__inner{
  width:min(1180px,calc(100% - 40px));
  min-height:78px;
  margin-inline:auto;
}
.learnhub-public-footer__inner{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto minmax(210px,.72fr);
  align-items:center;
  gap:22px;
  padding:14px 0 13px;
}
.learnhub-public-footer__brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:#123f70;
  text-decoration:none;
}
.learnhub-public-footer__brand img{
  display:block;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:11px;
  object-fit:cover;
  box-shadow:0 4px 12px rgba(18,63,112,.13);
}
.learnhub-public-footer__brand span{display:grid;gap:2px;min-width:0}
.learnhub-public-footer__brand strong{
  font-family:"Trebuchet MS","Aptos","Segoe UI",system-ui,sans-serif;
  font-size:.87rem;
  line-height:1.1;
  white-space:nowrap;
}
.learnhub-public-footer__brand small{
  color:#71869a;
  font-size:.66rem;
  white-space:nowrap;
}
.learnhub-public-footer__nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  flex-wrap:wrap;
}
.learnhub-public-footer__nav a,
.learnhub-public-footer__nav button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 9px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#0b5da8;
  font:inherit;
  font-size:.68rem;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
}
.learnhub-public-footer__nav a:hover,
.learnhub-public-footer__nav button:hover,
.learnhub-public-footer__nav a:focus-visible,
.learnhub-public-footer__nav button:focus-visible{
  outline:0;
  background:#e4f3ff;
  color:#084d8c;
}
.learnhub-public-footer__nav a[aria-current="page"]{
  background:#e7f5ff;
  color:#084d8c;
}
.learnhub-public-footer__meta{
  display:grid;
  justify-items:end;
  gap:5px;
  text-align:right;
}
.learnhub-public-footer__meta a{
  color:#0b5da8;
  font-size:.67rem;
  font-weight:800;
  text-decoration:none;
}
.learnhub-public-footer__meta a:hover,
.learnhub-public-footer__meta a:focus-visible{text-decoration:underline}
.learnhub-public-footer__meta small{
  color:#7a8da0;
  font-size:.62rem;
  line-height:1.25;
}
.learnhub-public-footer__message{
  color:#637b91;
  font-size:.64rem;
  line-height:1.3;
}
@media(max-width:980px){
  .learnhub-public-footer__inner{
    grid-template-columns:1fr auto;
    gap:10px 18px;
    padding-block:15px;
  }
  .learnhub-public-footer__nav{justify-content:flex-end}
  .learnhub-public-footer__meta{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding-top:9px;
    border-top:1px solid #e2ebf2;
    text-align:left;
  }
}
@media(max-width:620px){
  .learnhub-public-footer{margin-top:20px}
  .learnhub-public-footer .page-width,
  .learnhub-public-footer__inner{width:min(100% - 24px,1180px)}
  .learnhub-public-footer__inner{
    grid-template-columns:1fr;
    gap:10px;
    padding:16px 0 18px;
  }
  .learnhub-public-footer__nav{
    justify-content:flex-start;
    margin-left:-7px;
  }
  .learnhub-public-footer__nav a,
  .learnhub-public-footer__nav button{padding-inline:7px}
  .learnhub-public-footer__meta{
    grid-column:auto;
    display:grid;
    justify-items:start;
    justify-content:stretch;
    gap:6px;
  }
}

@media(max-width:900px) and (min-width:701px){.aligned-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Learner-facing optimized PDF metadata */
.metadata-facts .student-pdf-note{display:block;margin-top:3px;color:#60788f;font-size:.64rem;font-weight:700;line-height:1.3}

/* --------------------------------------------------------------------------
   2026-08-29 Resource reader layout refinement
   - wider Storybook reader on desktop without changing other PDF resources
   - taller spread canvas so two-page storybooks use available screen space
   - flex page shell keeps the public footer at the bottom on short pages
   -------------------------------------------------------------------------- */
.resource-detail-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.resource-detail-page .shell{
  flex:1 0 auto;
  padding-bottom:30px;
}
.resource-detail-page > .learnhub-public-footer{
  flex:0 0 auto;
  width:100%;
  margin-top:auto;
}

.resource-detail-page.storybook-resource .shell{
  width:min(1500px,100%);
}
.resource-detail-page.storybook-resource .resource-detail{
  grid-template-columns:minmax(0,1fr) 260px;
  gap:16px;
}

@media(min-width:1181px){
  .resource-detail-page.storybook-resource .viewer.pdf-auto-viewer{
    min-height:0;
  }
  .resource-detail-page.storybook-resource .pdf-reader{
    height:auto;
    min-height:0;
    grid-template-rows:auto auto auto;
  }
  .resource-detail-page.storybook-resource .pdf-reader-stage{
    height:640px;
    min-height:520px;
    padding:20px 30px 26px;
    overflow-x:hidden;
    overflow-y:auto;
  }
  .resource-detail-page.storybook-resource .pdf-stage-nav--prev{left:18px}
  .resource-detail-page.storybook-resource .pdf-stage-nav--next{right:18px}
}

@media(min-width:981px) and (max-width:1180px){
  .resource-detail-page.storybook-resource .shell{width:min(1180px,100%)}
  .resource-detail-page.storybook-resource .pdf-reader-stage{height:560px;min-height:460px}
}

@media(max-width:850px){
  .resource-detail-page .shell{padding-bottom:24px}
  .resource-detail-page.storybook-resource .resource-detail{grid-template-columns:1fr}
}

@media(max-width:620px){
  .resource-detail-page .shell{padding-bottom:22px}
}
