/* The Canvas-faithful page behind the real Course++ panel. Drawn at 1280x800
 * and scaled by real-demo.js. Canvas's own look: Lato, #2d3b45 text, a dark
 * global nav with Instructure icons, a text course menu, #0374b5 links. */
.rd { position: relative; width: 100%; overflow: hidden; border-radius: 14px; box-shadow: 0 40px 80px -40px rgb(8 41 74 / .55), 0 0 0 1px rgb(8 41 74 / .08); background: #fff; }
.rd-screen { position: absolute; top: 0; left: 0; width: 1120px; height: 720px; transform-origin: 0 0; }
.rd-host { position: absolute; inset: 0; pointer-events: none; }
.cv2 { position: absolute; inset: 0; display: flex; font: 16px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; color: #2d3b45; background: #fff; transition: opacity .35s ease; }
.rd-fade .cv2-page { opacity: 0; }
.cv2-global { width: 84px; flex: none; background: #2d3b45; display: flex; flex-direction: column; align-items: center; padding-top: 10px; gap: 2px; }
.cv2-brand { width: 54px; height: 54px; border-radius: 6px; background: #4a5b68; display: grid; place-items: center; margin-bottom: 8px; }
.cv2-brand svg { width: 30px; height: 30px; }
.cv2-gi { width: 84px; padding: 9px 0 7px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 12px; }
.cv2-gi svg { width: 26px; height: 26px; fill: currentColor; }
.cv2-gi.on { background: #fff; color: #2d3b45; }
.cv2-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cv2-crumbs { height: 64px; flex: none; border-bottom: 1px solid #c7cdd1; display: flex; align-items: center; gap: 22px; padding: 0 24px; font-size: 16px; }
.cv2-burger { width: 22px; height: 16px; background: linear-gradient(#2d3b45 0 0) 0 0/100% 2.5px no-repeat, linear-gradient(#2d3b45 0 0) 0 50%/100% 2.5px no-repeat, linear-gradient(#2d3b45 0 0) 0 100%/100% 2.5px no-repeat; }
.cv2-crumb a { color: #0374b5; }
.cv2-crumb i { font-style: normal; color: #6b7780; margin: 0 10px; }
.cv2-crumb b { font-weight: 400; color: #2d3b45; }
.cv2-body { flex: 1; display: flex; min-height: 0; }
.cv2-course { width: 168px; flex: none; padding: 18px 0 0 24px; display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.cv2-course span { color: #0374b5; padding: 5px 10px; border-left: 3px solid transparent; }
.cv2-course span.on { color: #2d3b45; border-left-color: #2d3b45; }
.cv2-main { flex: 1; padding: 20px 480px 20px 28px; overflow: hidden; min-width: 0; }
.cv2-page { transition: opacity .35s ease; }
.cv2-page .cv2-h1 { font-size: 28px; font-weight: 400; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #c7cdd1; color: #2d3b45; letter-spacing: 0; line-height: 1.25; }
.cv2-lines i { display: block; height: 10px; border-radius: 5px; background: #eef1f3; margin: 9px 0; width: 92%; }
.cv2-new { opacity: 0; transform: translateY(8px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); margin-top: 16px; }
.cv2-new.on { opacity: 1; transform: none; }
.cv2-new h3 { font-size: 20px; font-weight: 700; margin: 14px 0 6px; color: #2d3b45; letter-spacing: 0; }
.cv2-new ul { margin: 0; padding-left: 20px; font-size: 15px; }
.cv-fig { margin: 0; }
.cv-fig img { width: 100%; height: auto; border-radius: 4px; border: 1px solid #e3e7ea; }
.cv-fig figcaption { font-size: 13px; color: #6b7780; font-style: italic; text-align: center; margin-top: 6px; }
.cv-meta { color: #6b7780; font-size: 14px; margin-bottom: 10px; }
.cv-q { border: 1px solid #c7cdd1; border-radius: 4px; margin-bottom: 12px; }
.cv-q b { display: block; background: #f5f5f5; border-bottom: 1px solid #c7cdd1; padding: 8px 12px; font-size: 15px; }
.cv-q p { padding: 10px 12px 4px; margin: 0; }
.cv-q label { display: flex; gap: 8px; align-items: center; padding: 4px 12px; font-size: 15px; }
.cv-q label i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #6b7780; }
.cv-q label.on i { border: 4px solid #0374b5; }
.cv-group { font-weight: 700; background: #f5f5f5; border: 1px solid #c7cdd1; padding: 9px 12px; border-radius: 4px 4px 0 0; }
.cv-row { display: flex; align-items: center; gap: 12px; border: 1px solid #c7cdd1; border-top: 0; padding: 12px; font-size: 15px; }
.cv-ic { width: 18px; height: 20px; border: 2px solid #6b7780; border-radius: 2px; flex: none; }
.cv-due { margin-left: auto; color: #6b7780; font-size: 14px; white-space: nowrap; }
.cv-due em { font-style: normal; color: #0b874b; font-weight: 700; }
.cv-rub { width: 100%; border-collapse: collapse; font-size: 14px; }
.cv-rub th, .cv-rub td { border: 1px solid #c7cdd1; padding: 8px 10px; text-align: left; vertical-align: top; }
.cv-rub th { background: #f5f5f5; }
.cv-rub td span { display: inline-block; border-left: 1px solid #e3e7ea; padding: 0 8px; font-size: 13px; }
.cv-rub td span:first-child { border: 0; padding-left: 0; }
.cv-rub small { color: #6b7780; }

/* The controls under the screen: an icon Pause/Play, one step indicator per
 * job (the playing one fills as its job runs), and the job's name. One row,
 * never wider than the demo, never wrapping. Each indicator is a 24px-tall
 * hit area around a 6px bar (WCAG 2.5.8 target size). */
.rd-ctl { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; justify-content: center; min-width: 0; }
.rd-ctl button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: var(--ink); }
.rd-ctl button:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.rd-ctl .rd-pause { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--rule-ui); background: var(--white); }
.rd-ctl .rd-pause:hover { border-color: var(--navy); }
.rd-ctl .rd-pause:focus-visible { border-radius: 50%; }
.rd-pause svg { width: 14px; height: 14px; fill: currentColor; grid-area: 1 / 1; }
.rd-pause .rd-ic-play, .rd-pause.is-paused .rd-ic-pause { display: none; }
.rd-pause.is-paused .rd-ic-play { display: block; }
.rd-dots { display: flex; gap: .3rem; flex: none; }
.rd-dots button { position: relative; width: 2.25rem; height: 1.5rem; }
.rd-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: #cfd8e1; }
.rd-dots button[aria-pressed=true]::before { background: #b4c1ce; }
.rd-dots button:hover::before { background: var(--rule-ui); }
.rd-dots button i { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--navy); transform: scaleX(0); transform-origin: left; }
.rd-label { min-width: 0; flex: 0 1 auto; font-size: .9375rem; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .rd-ctl { gap: .5rem; }
  .rd-dots { gap: .2rem; }
  .rd-dots button { width: 1.6rem; }
  .rd-label { font-size: .875rem; }
}

/* The slideshow job: a module item, then the deck itself, cycling its slides */
.cv-row-new { background: #f3f8ec; }
.cv-ic-link { border-radius: 50%; }
.cv-deck { position: relative; margin-top: 14px; border: 1px solid #c7cdd1; border-radius: 6px; height: 244px; overflow: hidden; background: #fff; }
.cv-deck-bar { height: 5px; background: #eef1f3; }
.cv-deck-bar i { display: block; height: 100%; background: var(--lime); transform-origin: left; animation: deckbar 8s linear infinite; }
@keyframes deckbar { from { transform: scaleX(.25); } to { transform: scaleX(1); } }
.cv-slide { position: absolute; inset: 5px 0 26px; opacity: 0; animation: deck 8s infinite; background: #dfeefa; }
.cv-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cv-slide-title { position: absolute; left: 0; right: 0; top: 14px; text-align: center; font: 900 21px/1.1 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #245a1e; text-shadow: 0 1px 0 rgb(255 255 255 / .6); }
.cv-slide small { position: absolute; right: 8px; bottom: 6px; color: #2d3b45; background: rgb(255 255 255 / .85); border-radius: 3px; padding: 0 5px; font-size: 11px; }
@keyframes deck { 0% { opacity: 0; } 3% { opacity: 1; } 24% { opacity: 1; } 27%, 100% { opacity: 0; } }
.cv-deck-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 4px 12px; font-size: 13px; color: #0374b5; border-top: 1px solid #eef1f3; background: #fff; }

/* Pause stops the slideshow's own animation too. */
.rd-paused .cv-slide, .rd-paused .cv-deck-bar i { animation-play-state: paused; }

/* Reduced motion: nothing loops or fades. The first slide and a full bar show. */
@media (prefers-reduced-motion: reduce) {
  .cv2, .cv2-page, .cv2-new { transition: none; }
  .cv2-new { transform: none; }
  .cv-slide, .cv-deck-bar i { animation: none; }
  .cv-deck-bar i { transform: none; }
  .cv-slide { opacity: 0; }
  .cv-deck-bar + .cv-slide { opacity: 1; }
}
