/* OneTop learner shell. Admin pages do not receive body.onetop-learner. */

body.onetop-learner {
    background: #f4f1ea;
    color: #1c1b19;
    font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

body.onetop-learner #page-wrapper,
body.onetop-learner #page {
    margin: 0;
    max-width: none;
    background: transparent;
}

.onetop-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.onetop-rail {
    width: 196px;
    flex: 0 0 196px;
    background: #1c1b19;
    color: #f4f1ea;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.onetop-brand,
.onetop-rail-link {
    color: inherit;
    text-decoration: none;
}

.onetop-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 10px 28px;
}

.onetop-rail-link {
    padding: 8px 10px;
    border-radius: 6px;
}

.onetop-rail-link.is-active {
    background: #f4f1ea;
    color: #1c1b19;
}

.onetop-rail-admin {
    margin-top: auto;
    opacity: 0.7;
}

.onetop-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 24px 36px 48px;
}

.onetop-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.onetop-edit {
    color: #1c1b19;
    font-size: 0.875rem;
}

.onetop-stats {
    display: flex;
    gap: 48px;
    margin: 12px 0 28px;
}

.onetop-stat-value {
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
    color: #1f6b4a;
}

.onetop-stat-label,
.onetop-footer {
    color: #5c584f;
    font-size: 0.875rem;
}

.onetop-today-title {
    font-size: 1rem;
    margin: 0 0 8px;
}

.onetop-lecture-link {
    display: block;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e4dfd4;
    color: #1c1b19;
    text-decoration: none;
}

.onetop-footer {
    margin-top: 48px;
}

body.onetop-learner #page-navbar,
body.onetop-learner .secondary-navigation,
body.onetop-learner .drawer-toggles,
body.onetop-learner #page-footer,
body.onetop-learner .activity-navigation {
    display: none;
}

body.onetop-learner.pagelayout-mydashboard #page-header,
body.onetop-learner.pagelayout-mydashboard #region-main .block {
    display: none;
}

body.onetop-learner .activityiconcontainer {
    background: transparent !important;
    width: auto;
    height: auto;
    margin-right: 0;
}

body.onetop-learner .activityiconcontainer .activityicon,
body.onetop-learner .activityiconcontainer img {
    display: none;
}

body.onetop-learner .course-section,
body.onetop-learner .activity-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e4dfd4;
    border-radius: 0;
    box-shadow: none;
}

body.pagelayout-login .onetop-login-lead {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1.25rem;
}

body.pagelayout-login .loginfooter {
    position: absolute;
    top: 12px;
    right: 16px;
    left: auto;
    width: auto;
}

@media (max-width: 800px) {
    .onetop-shell {
        flex-direction: column;
    }

    .onetop-rail {
        width: auto;
        flex-basis: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 12px;
        gap: 4px 8px;
    }

    .onetop-brand {
        margin: 0 12px 0 0;
    }

    .onetop-rail-admin {
        margin-top: 0;
        margin-left: auto;
    }

    .onetop-main {
        padding: 16px;
    }

    .onetop-stats {
        gap: 24px;
    }
}

body.onetop-learner.path-mod-resource #region-main,
body.onetop-learner.path-mod-resource .resourcecontent {
    max-width: none;
    overflow: visible;
    text-align: left;
}

body.onetop-learner.path-mod-resource .mediaplugin {
    text-align: left;
}

/* Moodle wraps the player in max-width:640px and centers it with margin:auto. */
body.onetop-learner.path-mod-resource .mediaplugin > div {
    width: 1024px !important;
    max-width: 1024px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.onetop-learner.path-mod-resource .ontopcaption-root {
    width: 1024px;
    max-width: 1024px;
    margin-left: 0;
    margin-right: 0;
}

.onetop-user #user-menu-toggle,
.onetop-user .userbutton {
    color: #1c1b19;
    text-decoration: none;
}

body.onetop-learner.path-mod-resource .video-js,
body.onetop-learner.path-mod-resource .video-js .vjs-tech,
body.onetop-learner.path-mod-resource .resourcecontent video {
    width: 1024px !important;
    height: 768px !important;
    max-width: 1024px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 0 !important;
}

body.onetop-learner.path-mod-resource video {
    object-fit: contain;
    background: #000;
}

body.onetop-learner#page-user-files #userfilesform .fitem.row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
}

body.onetop-learner#page-user-files #userfilesform .fitem > .col-md-3,
body.onetop-learner#page-user-files #userfilesform .fitem > .col-md-9 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
    padding-right: 0;
}

body.onetop-learner#page-user-files #userfilesform .fitem.femptylabel > .col-md-3 {
    display: none;
}

body.onetop-learner#page-user-files #userfilesform .filemanager {
    width: 100%;
    max-width: none;
}

body.onetop-learner#page-user-forum .mform {
    max-width: 920px;
}

body.onetop-learner#page-user-forum .mform .col-form-label .form-label-addon {
    margin-left: 0.35rem;
}

.onetop-current {
    margin-right: auto;
    min-width: 0;
}

.onetop-current-course {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.onetop-current-activity {
    margin-top: 2px;
    color: #5c584f;
    font-size: 0.95rem;
}
