/*
 * Teachers CSS Bundle: recordings.bundle.css
 * Auto-generated by scripts/bundle_teachers_css.py
 * DO NOT EDIT - Edit source files instead
 *
 * Sources: modules/classroom/static/css/classroom-library-base.css, modules/classroom/static/css/classroom-library-desktop.css, modules/classroom/static/css/classroom-library-tablet.css, modules/classroom/static/css/classroom-library-mobile-portrait.css, modules/classroom/static/css/classroom-library-mobile-landscape.css
 */

/* === modules/classroom/static/css/classroom-library-base.css === */

/* THE RECORDINGS LIBRARY on the GED and teachers sites (classroom upgrade
   step 13) — BASE, no media query. A dashboard: the document never scrolls,
   the list region does. Every token sits on :root so the dialogs, which
   render outside the page element, keep them. The site's own chrome (the
   GED topbar and footer, the teachers header) keeps its own styles; this
   file styles only .cls-lib-* and the page lock. */

:root {
    --cls-lib-ink: #0f172a;
    --cls-lib-muted: #64748b;
    --cls-lib-line: #e2e8f0;
    --cls-lib-bg: #f8fafc;
    --cls-lib-card: #ffffff;
    --cls-lib-gold: #fdcc05;
    --cls-lib-gold-ink: #7c5a00;
    --cls-lib-green: #16a34a;
    --cls-lib-green-bg: #dcfce7;
    --cls-lib-blue: #1e40af;
    --cls-lib-radius: 14px;
}

/* THE LOCK: the page is exactly the viewport; only the list scrolls. */
html.cls-library-doc,
body.cls-library-page {
    height: 100%;
    overflow: hidden;
}

body.cls-library-page {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--cls-lib-ink);
    background: var(--cls-lib-bg);
}

.cls-library {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* The GED shell's .g-page sets min-height: 100vh; the library's own height wins. */
.cls-library.g-page {
    min-height: 0;
}

.cls-lib-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 16px;
    box-sizing: border-box;
}

.cls-lib-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cls-lib-line);
}

.cls-lib-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.cls-lib-sub {
    margin: 4px 0 0;
    font-size: 0.92rem;
    color: var(--cls-lib-muted);
}

.cls-lib-count {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cls-lib-muted);
    white-space: nowrap;
}

/* THE ONE REGION THAT SCROLLS */
.cls-lib-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 0 8px;
}

.cls-lib-empty {
    margin: 24px 0;
    color: var(--cls-lib-muted);
}

/* The ways out on the teachers library (2026-10-05): home, and the live
   class. The GED page has its own topbar and shows none. */
.cls-lib-ways {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}
.cls-lib-way {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--cls-lib-line);
    background: #fff;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.cls-lib-way.is-live { background: #fdcc05; border-color: #fdcc05; color: #1a202c; }
.cls-lib-empty-link { display: inline-block; margin-top: 8px; font-weight: 700; color: #b8860b; text-decoration: none; }

.cls-lib-group {
    margin-bottom: 18px;
}

.cls-lib-group-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cls-lib-muted);
}

.cls-lib-group-note {
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--cls-lib-gold-ink);
}

.cls-lib-group-free .cls-lib-group-month {
    color: var(--cls-lib-gold-ink);
}

/* A ROW */
.cls-lib-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--cls-lib-card);
    border: 1px solid var(--cls-lib-line);
    border-radius: var(--cls-lib-radius);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cls-lib-row:hover,
.cls-lib-row:focus-visible {
    border-color: var(--cls-lib-blue);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    outline: none;
}

.cls-lib-row.is-locked {
    background: #fbfcfd;
}

.cls-lib-row-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cls-lib-row-title {
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cls-lib-row.is-locked .cls-lib-row-title {
    color: var(--cls-lib-muted);
}

.cls-lib-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--cls-lib-muted);
}

.cls-lib-row-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.cls-lib-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.cls-lib-badge-a {
    background: #fff7d6;
    color: var(--cls-lib-gold-ink);
}

.cls-lib-badge-b {
    background: var(--cls-lib-green-bg);
    color: #166534;
}

.cls-lib-badge-free {
    background: var(--cls-lib-gold);
    color: var(--cls-lib-ink);
}

.cls-lib-badge-short {
    display: none;
}

.cls-lib-lock {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef2f7;
    color: var(--cls-lib-muted);
}

.cls-lib-lock svg {
    width: 15px;
    height: 15px;
}

/* THE DIALOGS: the chooser and the lock, outside the page element. */
.cls-lib-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
}

.cls-lib-overlay[hidden] {
    display: none;
}

body.cls-lib-modal-open {
    overflow: hidden;
}

.cls-lib-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 24px 22px 22px;
    background: var(--cls-lib-card);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    box-sizing: border-box;
}

.cls-lib-dialog-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--cls-lib-muted);
    cursor: pointer;
}

.cls-lib-dialog-kicker {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--cls-lib-gold-ink);
}

.cls-lib-dialog-title {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.cls-lib-dialog-text {
    margin: 0 0 14px;
    color: var(--cls-lib-muted);
    font-size: 0.95rem;
}

.cls-lib-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cls-lib-option {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    border: 1px solid var(--cls-lib-line);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.cls-lib-option:hover {
    border-color: var(--cls-lib-blue);
}

.cls-lib-option-name {
    font-weight: 800;
}

.cls-lib-option-desc {
    font-size: 0.85rem;
    color: var(--cls-lib-muted);
}

.cls-lib-plans {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cls-lib-plan {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid var(--cls-lib-line);
    border-radius: 10px;
    font-size: 0.9rem;
}

.cls-lib-plan.is-highlight {
    border-color: var(--cls-lib-gold);
    background: #fffbeb;
}

.cls-lib-cta {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--cls-lib-ink);
    color: #fff;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.cls-lib-fine {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: var(--cls-lib-muted);
    text-align: center;
}


/* === modules/classroom/static/css/classroom-library-desktop.css === */

/* THE RECORDINGS LIBRARY — DESKTOP (1025 and up). The row keeps its badges
   on one line; a short laptop (1280x720) still fits: the header stays one
   row and the list takes the rest. */
@media (min-width: 1025px) {
    .cls-lib-main {
        padding: 24px 24px 18px;
    }

    .cls-lib-row {
        padding: 14px 18px;
    }
}

/* A short desktop viewport: tighter header so more rows show. */
@media (min-width: 1025px) and (max-height: 760px) {
    .cls-lib-main {
        padding: 14px 24px 12px;
    }

    .cls-lib-title {
        font-size: 1.3rem;
    }

    .cls-lib-head {
        padding-bottom: 10px;
    }
}


/* === modules/classroom/static/css/classroom-library-tablet.css === */

/* THE RECORDINGS LIBRARY — TABLET (769 to 1024). The badges keep their full
   words; the header wraps when the count no longer fits beside the title. */
@media (max-width: 1024px) and (min-width: 769px) {
    .cls-lib-main {
        padding: 18px 20px 14px;
    }

    .cls-lib-head {
        flex-wrap: wrap;
    }

    .cls-lib-row {
        padding: 12px 14px;
    }
}


/* === modules/classroom/static/css/classroom-library-mobile-portrait.css === */

/* THE RECORDINGS LIBRARY — MOBILE PORTRAIT (768 and under). The row stacks:
   the title and date above, the badges below in their short words; the
   header loses its subtitle so the list keeps the screen. */
@media (max-width: 768px) and (orientation: portrait) {
    .cls-lib-main {
        padding: 14px 16px 10px;
    }

    .cls-lib-head {
        align-items: baseline;
        padding-bottom: 10px;
    }

    .cls-lib-title {
        font-size: 1.3rem;
    }

    .cls-lib-sub {
        display: none;
    }

    .cls-lib-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 14px;
    }

    .cls-lib-row-title {
        white-space: normal;
    }

    .cls-lib-row-badges {
        flex-wrap: wrap;
    }

    .cls-lib-badge-full {
        display: none;
    }

    .cls-lib-badge-short {
        display: inline;
    }

    .cls-lib-group-head {
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .cls-lib-dialog {
        padding: 20px 16px 18px;
    }
}


/* === modules/classroom/static/css/classroom-library-mobile-landscape.css === */

/* THE RECORDINGS LIBRARY — MOBILE LANDSCAPE (768 and under, wide and short).
   Height is the constraint: a one-line header, short badge words, tight rows,
   and the dialogs scroll inside themselves. */
@media (max-width: 768px) and (orientation: landscape) {
    .cls-lib-main {
        padding: 8px 16px 6px;
    }

    .cls-lib-head {
        padding-bottom: 6px;
    }

    .cls-lib-title {
        font-size: 1.1rem;
    }

    .cls-lib-sub {
        display: none;
    }

    .cls-lib-list {
        padding: 8px 0 4px;
    }

    .cls-lib-row {
        padding: 8px 12px;
        margin-bottom: 6px;
    }

    .cls-lib-badge-full {
        display: none;
    }

    .cls-lib-badge-short {
        display: inline;
    }

    .cls-lib-dialog {
        max-height: calc(100dvh - 16px);
        padding: 14px 16px;
    }

    .cls-lib-dialog-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
}
