/* Compact workbook entry, grouped with the existing course choices. */
.workbook-spotlight{position:relative;isolation:isolate;display:flex;align-items:center;justify-self:center;align-self:center;gap:12px;width:min(400px,100%);min-width:0;margin:0;padding:12px 15px;text-align:left;border:2px solid #b3dcff;border-radius:18px;color:#234c81;background:linear-gradient(115deg,#f0faff,#fff 52%,#fff5d8);box-shadow:0 8px 22px #09295d22;cursor:pointer;font-family:'Nunito',Arial,sans-serif;overflow:hidden}
.workbook-spotlight:hover{border-color:#77c6ff;box-shadow:0 10px 25px #09295d33;transform:translateY(-2px)}
.workbook-spotlight:focus-visible{outline:4px solid #ffcc6a;outline-offset:4px}
.workbook-entry-art{position:relative;display:block;flex:none;width:48px;height:62px;border-left:4px solid #2e7ab8;border-radius:4px 8px 8px 4px;background:linear-gradient(130deg,#78c7f3,#2676bd);box-shadow:4px 3px 0 #d6dfeb,5px 5px 0 #abc8dd;transform:rotate(-8deg);color:#fff;padding:8px 5px;line-height:1.3}
.workbook-entry-art>span{font-size:6px;letter-spacing:.7px;font-weight:900}
.workbook-entry-art b{display:block;font-size:28px;line-height:1.05;letter-spacing:-1px}
.workbook-entry-art i{position:absolute;right:-6px;bottom:5px;font-size:19px;color:#efb940;font-style:normal;text-shadow:0 1px 0 #fff}
.workbook-entry-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.workbook-entry-copy em{display:none}
.workbook-entry-copy strong{font-size:20px;line-height:1.25;font-weight:900;color:#214c7f;letter-spacing:-.4px}
.workbook-entry-copy>span{font-size:12px;line-height:1.45;font-weight:800;color:#5c7b9c}
.workbook-entry-copy small{font-size:11px;line-height:1.5;color:#aa8231}
.workbook-entry-copy small b{color:#416484}
.workbook-entry-open{display:flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:44px;padding:10px 11px;border-radius:10px;background:#2e81c5;color:#fff;font-size:11px;font-weight:900;white-space:nowrap}
.workbook-entry-open b{font-size:20px;line-height:1}
.workbook-spotlight.hidden{display:none!important}

/* The workbook shares the course panel; no additional dashboard row. */
body:has(#coursePanel:not(.hidden)){height:auto;min-height:100svh;overflow:auto}
.portal-shell:has(#coursePanel:not(.hidden)){height:auto;min-height:100svh;overflow-x:clip;overflow-y:visible}
.portal-shell:has(#coursePanel:not(.hidden)) .portal-content{height:auto;min-height:100svh;overflow:visible;padding:0}
#coursePanel.course-dashboard-galaxy{height:auto;min-height:100svh;grid-template-rows:auto auto auto;align-items:start;row-gap:16px}
#coursePanel.course-dashboard-galaxy>.dashboard-grid{grid-column:1/-1;grid-row:2;height:auto;min-height:0;align-items:stretch}
#coursePanel.course-dashboard-galaxy>.dashboard-credit{grid-column:1/-1;grid-row:3;position:relative;align-self:start;margin:0 auto 6px}
#coursePanel.course-dashboard-galaxy .award-showcase,#coursePanel.course-dashboard-galaxy .learning-gateways{height:auto;min-height:0}
#coursePanel.course-dashboard-galaxy .hero-card-grid{height:340px;min-height:0;margin-top:16px}
#coursePanel.course-dashboard-galaxy .course-orbit-grid{height:auto;min-height:0;grid-template-rows:auto auto auto;align-content:start;margin:16px 0 0;gap:14px}
#coursePanel.course-dashboard-galaxy .gateway-card{height:auto;min-height:174px}
#coursePanel.course-dashboard-galaxy .brand-lockup div{min-width:0}
#coursePanel.course-dashboard-galaxy .brand-lockup strong{white-space:normal}
#coursePanel.course-dashboard-galaxy .learner-welcome p{min-width:0;white-space:normal}
@media(min-width:981px) and (min-height:560px){
  body:has(#coursePanel:not(.hidden)){height:100svh;min-height:0;overflow:hidden}
  .portal-shell:has(#coursePanel:not(.hidden)){height:100svh;min-height:0;overflow:hidden}
  .portal-shell:has(#coursePanel:not(.hidden)) .portal-content{height:100svh;min-height:0;overflow:hidden}
  #coursePanel.course-dashboard-galaxy{height:100svh;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;align-items:stretch;row-gap:12px;padding-top:14px;padding-bottom:10px}
  #coursePanel.course-dashboard-galaxy>.brand-lockup,#coursePanel.course-dashboard-galaxy>.learner-welcome{align-self:center}
  #coursePanel.course-dashboard-galaxy>.dashboard-grid{height:100%;min-height:0}
  #coursePanel.course-dashboard-galaxy .award-showcase,#coursePanel.course-dashboard-galaxy .learning-gateways{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;height:100%;min-height:0;padding:6px 10px}
  #coursePanel.course-dashboard-galaxy .hero-card-grid{height:100%;min-height:0;margin:0}
  #coursePanel.course-dashboard-galaxy .hero-student-card{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;min-height:0;padding:25px 8px 12px}
  #coursePanel.course-dashboard-galaxy .hero-crown{position:relative;top:auto;left:auto;transform:none;line-height:1;flex:none;margin:0 0 -10px}
  #coursePanel.course-dashboard-galaxy .hero-photo,#coursePanel.course-dashboard-galaxy .hero-class,#coursePanel.course-dashboard-galaxy .hero-name{flex:none}
  #coursePanel.course-dashboard-galaxy .course-orbit-grid{height:100%;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr)) auto;gap:12px;margin:0;align-content:stretch}
  #coursePanel.course-dashboard-galaxy .gateway-card{height:100%;min-height:0;padding:10px 14px;gap:12px;grid-template-columns:92px minmax(0,1fr) 106px}
  #coursePanel.course-dashboard-galaxy .gateway-card .course-orbit-art{width:88px}
  #coursePanel.course-dashboard-galaxy .course-entry-cta .course-arrow{width:60px;height:69px}
  #coursePanel.course-dashboard-galaxy>.dashboard-credit{margin:0 auto;padding-top:5px;padding-bottom:5px}
}
@media(min-width:981px) and (min-height:560px) and (max-height:700px){
  #coursePanel.course-dashboard-galaxy{row-gap:8px;padding-top:9px;padding-bottom:7px}
  #coursePanel.course-dashboard-galaxy>.brand-lockup{min-height:54px;padding-top:4px;padding-bottom:4px}
  #coursePanel.course-dashboard-galaxy .brand-lockup::before{width:48px;height:48px;flex-basis:48px;background-size:125px auto}
  #coursePanel.course-dashboard-galaxy .brand-lockup strong{font-size:1.25rem}
  #coursePanel.course-dashboard-galaxy .panel-heading{padding:5px 8px}
  #coursePanel.course-dashboard-galaxy .panel-heading h2{font-size:1.65rem;line-height:1.05;margin:5px 0 2px}
  #coursePanel.course-dashboard-galaxy .heading-kicker{padding:3px 8px}
  #coursePanel.course-dashboard-galaxy .week-pill{padding:4px 12px;margin-top:3px}
  #coursePanel.course-dashboard-galaxy .award-showcase,#coursePanel.course-dashboard-galaxy .learning-gateways{gap:8px;padding:3px 7px}
  #coursePanel.course-dashboard-galaxy .course-orbit-grid{gap:9px}
  #coursePanel.course-dashboard-galaxy .gateway-card{padding:7px 11px;gap:10px;grid-template-columns:76px minmax(0,1fr) 95px}
  #coursePanel.course-dashboard-galaxy .gateway-card .course-orbit-art{width:72px}
  #coursePanel.course-dashboard-galaxy .gateway-card .course-orbit-copy strong{font-size:1.25rem}
  #coursePanel.course-dashboard-galaxy .course-entry-cta .course-arrow{width:45px;height:52px}
  #coursePanel.course-dashboard-galaxy .hero-photo{width:min(66%,118px)}
  #coursePanel.course-dashboard-galaxy .hero-student-card{padding-top:18px;padding-bottom:6px;gap:3px}
  #coursePanel.course-dashboard-galaxy .hero-crown{font-size:1.8rem}
  #coursePanel.course-dashboard-galaxy .hero-name{padding:6px 10px;font-size:.95rem}
  #coursePanel.course-dashboard-galaxy>.dashboard-credit{padding-top:3px;padding-bottom:3px}
}
@media(max-width:980px){
  #coursePanel.course-dashboard-galaxy{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(4,auto);row-gap:18px}
  #coursePanel.course-dashboard-galaxy>.brand-lockup{grid-column:1;grid-row:1}
  #coursePanel.course-dashboard-galaxy>.learner-welcome{grid-column:1;grid-row:2}
  #coursePanel.course-dashboard-galaxy>.dashboard-grid{grid-column:1;grid-row:3;grid-template-columns:minmax(0,1fr)}
  #coursePanel.course-dashboard-galaxy>.dashboard-credit{grid-column:1;grid-row:4}
}
@media(max-width:600px){
  #coursePanel.course-dashboard-galaxy .gateway-card{min-height:205px}
  #coursePanel.course-dashboard-galaxy .hero-card-grid{height:350px}
  .workbook-spotlight{gap:10px;padding:12px;border-radius:16px}
  .workbook-entry-copy strong{font-size:19px}
  .workbook-entry-open{padding:10px 9px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.workbook-spotlight:hover{transform:none}}
