/* PORTAL_VIDEO_ON_DEMAND_V1 */
.portal-video-card { margin: 1rem 0; }
.portal-video-open {
    display: flex; align-items: center; gap: 1rem; width: 100%;
    padding: 1rem 1.2rem; background: #f5f7fc; color: #274e9c;
    border: 1px solid #dce3ef; border-radius: 12px; text-align: left;
    font: inherit; cursor: pointer;
}
.portal-video-open:hover { background: #eaf0fb; border-color: #274e9c; }
.portal-video-open:focus-visible, .portal-video-close:focus-visible {
    outline: 3px solid #0072ce; outline-offset: 3px;
}
.portal-video-icon {
    display: grid; place-items: center; flex: 0 0 44px; height: 44px;
    background: #274e9c; color: #fff; border-radius: 50%; font-size: 19px;
}
.portal-video-copy { display: block; min-width: 0; }
.portal-video-title { display: block; font-weight: 600; overflow-wrap: anywhere; }
.portal-video-hint { display: block; margin-top: .3rem; color: #586579; font-size: .85rem; }
.portal-video-modal {
    width: min(1100px, 96vw); max-width: 96vw; max-height: 94vh;
    padding: 1rem; border: 0; border-radius: 14px; background: #fff;
    color: #101820; box-shadow: 0 12px 60px #0006; overflow: auto;
}
.portal-video-modal::backdrop { background: #102040bf; }
.portal-video-modal-header { display: flex; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.portal-video-modal-header h2 { flex: 1; margin: 0; font-size: 1.1rem; line-height: 1.4; }
.portal-video-close {
    padding: .4rem .75rem; border: 1px solid #dce3ef; border-radius: 8px;
    background: #f5f7fc; color: #274e9c; font: inherit; cursor: pointer;
}
.portal-video-mount video { display: block; width: 100%; height: auto; max-height: 72vh; background: #000; }
.portal-video-status { margin: .6rem 0 0; font-size: .9rem; }
.portal-video-status:empty { display: none; }
@media (max-width: 600px) {
    .portal-video-modal { padding: .65rem; }
    .portal-video-open { padding: .75rem; gap: .7rem; }
}

/* PORTAL_COURSE_LAYOUT_V1: scoped to course views; login and gradebook keep their own layouts. */
body.path-course-view { background: #f3f6fb; }
body.path-course-view #page.drawers .main-inner {
    width: calc(100% - 64px) !important; max-width: 1240px !important;
    margin: 24px auto 48px !important; padding: 0 !important;
    background: transparent !important;
}
body.path-course-view #page-header {
    padding: 24px 28px; margin-bottom: 20px; background: #fff;
    border: 1px solid #e3e9f2; border-radius: 18px;
}
body.path-course-view #page-header h1 {
    margin: 8px 0 0; color: #182c50 !important;
    font-size: clamp(24px, 2.3vw, 34px); font-weight: 700;
    line-height: 1.22; letter-spacing: -.025em;
}
body.path-course-view #page-navbar { font-size: 13px; color: #68758b; }
body.path-course-view #region-main-box,
body.path-course-view #region-main {
    border: 0 !important; background: transparent !important; box-shadow: none !important;
}
body.path-course-view .course-content { background: transparent; }
body.path-course-view .course-content ul.topics,
body.path-course-view .course-content ul.weeks { padding: 0; }
body.path-course-view .course-section {
    margin: 0 0 22px !important; padding: 0 !important;
    background: transparent !important; border: 0 !important;
}
body.path-course-view .course-section-header {
    padding: 14px 16px; margin-bottom: 12px; background: #fff;
    border: 1px solid #e3e9f2; border-radius: 14px;
}
body.path-course-view .course-section-header h3,
body.path-course-view .sectionname {
    color: #182c50 !important; font-size: 20px; font-weight: 650; line-height: 1.35;
}
body.path-course-view .course-content li.activity {
    margin: 0 0 12px !important; padding: 0 !important; border: 0 !important;
}
body.path-course-view:not(.editing) .activity-item {
    padding: 18px 20px !important; background: #fff !important;
    border: 1px solid #e3e9f2 !important; border-radius: 14px;
    box-shadow: 0 2px 8px rgba(24, 44, 80, .025);
}
body.path-course-view:not(.editing) .activity-item:hover { border-color: #c5d3e8 !important; }
body.path-course-view:not(.editing) .activity-icon.activityiconcontainer {
    width: 36px !important; height: 36px !important; min-width: 36px;
    padding: 8px; margin-right: 12px !important;
    border-radius: 10px; background: #f0f4fb;
}
body.path-course-view:not(.editing) .activity-icon .activityicon { width: 20px; height: 20px; }
body.path-course-view .activity-name-area .activityname a {
    font-size: 17px; font-weight: 600; line-height: 1.4;
    color: #20385f !important; text-decoration: none;
}
body.path-course-view .activity-name-area .activityname a:hover { color: #274e9c !important; }
body.path-course-view .activity-dates {
    margin-top: 4px; font-size: 12px; line-height: 1.5; color: #66748b;
}
body.path-course-view .activity-groupmode-info { color: #66748b; font-size: 12px; }
body.path-course-view .activity-altcontent {
    margin-top: 12px !important; padding-top: 12px !important;
    border-top: 1px solid #edf1f7 !important; font-size: 14px; line-height: 1.65;
}
body.path-course-view .activity-altcontent p { margin-bottom: .65rem; }
body.path-course-view .activity-altcontent img { max-width: 100%; height: auto; }
body.path-course-view .activity-altcontent .portal-empty-paragraph { display: none !important; }
body.path-course-view .activity-altcontent .portal-video-card { margin: 8px 0 !important; }
body.path-course-view .activity-altcontent .portal-video-card:first-of-type { margin-top: 0 !important; }
body.path-course-view .activity-altcontent .portal-video-card:last-of-type { margin-bottom: 0 !important; }
body.path-course-view .portal-video-open {
    padding: 12px 14px; gap: 12px; background: #f7f9fe;
    border-color: #e3eaf6; border-radius: 10px;
}
body.path-course-view .portal-video-open:hover { background: #edf3ff; border-color: #aabfe5; }
body.path-course-view .portal-video-icon { flex-basis: 36px; height: 36px; font-size: 15px; }
body.path-course-view .portal-video-title { font-size: 14px; line-height: 1.4; font-weight: 600; }
body.path-course-view .portal-video-hint { margin-top: 2px; color: #75829a; font-size: 12px; line-height: 1.4; }
body.path-course-view .activity-completion button { border-radius: 8px; font-size: 12px; }
body.path-course-view .availabilityinfo { color: #5f6f88; font-size: 12px; line-height: 1.5; }
body.path-course-view .navbar .primary-navigation .navigation .nav-link {
    font-size: 14px; font-weight: 600 !important;
}
@media (max-width: 767.98px) {
    body.path-course-view #page.drawers .main-inner {
        width: calc(100% - 24px) !important; margin: 16px auto 28px !important;
    }
    body.path-course-view #page-header { padding: 18px; border-radius: 14px; }
    body.path-course-view #page-header h1 { font-size: 25px; }
    body.path-course-view:not(.editing) .activity-item { padding: 14px !important; border-radius: 12px; }
    body.path-course-view .activity-name-area .activityname a { font-size: 16px; }
    body.path-course-view .portal-video-open { padding: 10px; gap: 9px; }
}
