.course-code-block {
    width: 100%;
    max-width: 74ch;
    margin: 1rem 0 1.35rem;
    overflow: hidden;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    background: #f8fafc;
}

.course-code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid #d8e1ea;
    background: #eef4f8;
}

.course-code-block-label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.course-code-block-copy {
    min-height: 2rem;
    margin-left: auto;
    padding: 0.25rem 0.6rem;
    border: 1px solid #b9c8d5;
    border-radius: 0.35rem;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
}

.course-code-block-copy:hover {
    background: #f1f5f9;
}

.course-code-block-copy:focus-visible {
    outline: 3px solid rgba(20, 157, 221, 0.35);
    outline-offset: 2px;
}

.course-code-block pre {
    max-width: 100%;
    margin: 0;
    padding: 0.9rem 1rem;
    overflow-x: auto;
    background: #f8fafc;
    color: #1e293b;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    font-size: 0.94rem;
    line-height: 1.6;
    white-space: pre;
}

.course-code-block code {
    display: block;
    min-width: max-content;
    white-space: inherit;
    word-break: normal;
}

.course-code-block .token.comment,
.course-code-block .token.prolog,
.course-code-block .token.doctype,
.course-code-block .token.cdata {
    color: #64748b;
}

.course-code-block .token.keyword,
.course-code-block .token.boolean {
    color: #7c3aed;
}

.course-code-block .token.function,
.course-code-block .token.class-name {
    color: #0369a1;
}

.course-code-block .token.string,
.course-code-block .token.char,
.course-code-block .token.property {
    color: #047857;
}

.course-code-block .token.number,
.course-code-block .token.constant {
    color: #b45309;
}

@media (max-width: 640px) {
    .course-code-block {
        max-width: 100%;
        margin-left: 0;
    }

    .course-code-block pre {
        padding: 0.8rem;
        font-size: 0.88rem;
    }
}/* Theming and spacing for content renderer */
:root {
    --content-line-height: 1.72;
    --content-gap-sm: 0.35em;
    --content-gap-md: 0.75em;
    --content-list-padding: 1.2em;
    --content-sublist-padding: 1.4em;
    --content-accent: #149ddd;
    --content-text-color: #1f2937;
    --content-reading-font: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --content-heading-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --content-reading-size: clamp(1.08rem, 1.02rem + 0.22vw, 1.2rem);
}

.inline-code {
    background: #23272e;
    color: #ffeb95;
    padding: 0.18em 0.38em;
    border-radius: 4px;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    font-size: 1em;
    word-break: break-all;
}

.course-learning-content {
    user-select: none;
}

.course-learning-content .course-code-block,
.course-learning-content .course-code-block *,
.course-learning-content .inline-code,
.course-learning-content input,
.course-learning-content textarea,
.course-learning-content select,
.course-learning-content button,
.course-learning-content a,
.course-learning-content [contenteditable]:not([contenteditable="false"]),
.course-learning-content [role="textbox"] {
    user-select: text;
}

.content-list {
    padding-left: var(--content-list-padding);
    margin-top: 0.3em;
    margin-bottom: 1.15em;
    max-width: 74ch;
}

.content-list-item {
    white-space: pre-wrap;
    margin-bottom: 0.66em;
    line-height: var(--content-line-height);
    color: var(--content-text-color);
    font-family: var(--content-reading-font);
    font-size: var(--content-reading-size);
}

.bullet-label {
    margin-top: 1.05em;
    margin-bottom: 0.62em;
    font-weight: 700;
    font-size: clamp(1.05rem, 1rem + 0.16vw, 1.16rem);
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: var(--content-text-color);
    font-family: var(--content-heading-font);
}

.sub-list {
    list-style-type: lower-alpha;
    margin-top: 0;
    margin-bottom: 1.35em;
    padding-left: var(--content-sublist-padding);
    max-width: 74ch;
}

.content-list .sub-list {
    margin-left: 0.42rem;
    padding-left: calc(var(--content-sublist-padding) + 0.58rem);
}

.sub-list-item {
    white-space: pre-wrap;
    margin-bottom: 0.72em;
    line-height: var(--content-line-height);
    text-align: justify;
    text-justify: inter-word;
    color: var(--content-text-color);
    font-family: var(--content-reading-font);
    font-size: var(--content-reading-size);
}

.content-list .sub-list.single-sub-item {
    list-style: none;
    padding-left: 0.45em;
}

.content-paragraph {
    margin: 0 0 1em;
    max-width: 74ch;
    line-height: var(--content-line-height);
    color: var(--content-text-color);
    font-family: var(--content-reading-font);
    font-size: var(--content-reading-size);
}

.content-list-item > .course-code-block,
.sub-list-item > .course-code-block {
    max-width: 100%;
}

.content-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.content-image img {
    display: block;
    max-width: 100%;
    max-height: min(52vh, 34rem);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0.6em auto 0;
}

.content-table {
    overflow: auto;
    max-width: 74ch;
    margin: 0 0 1.35em var(--content-list-padding);
}

.table-wrapper {
    overflow: auto;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.content-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.content-table th,
.content-table td {
    padding: 0.65em 0.8em;
    text-align: left;
    border: 1px solid #d8e1ea;
    vertical-align: top;
    font-size: 0.93rem;
    line-height: 1.45;
}

.content-table thead th {
    background: #f8fbff;
    font-weight: 700;
    font-size: 0.88rem;
}

.content-table tbody tr:nth-child(even) td {
    background: #fcfdff;
}

/* Small screens adjustments */
@media (max-width: 640px) {
    .content-list {
        padding-left: 1em
    }

    .sub-list {
        padding-left: 1.2em
    }

    .content-list .sub-list {
        margin-left: 0.34rem;
        padding-left: calc(1.2em + 0.42rem);
    }

    .bullet-label,
    .table-title {
        margin-top: 0.95em;
        margin-bottom: 0.58em;
    }

    .sub-list {
        margin-bottom: 1.15em;
    }

    .content-table {
        margin-left: 1em;
        margin-right: 0;
    }

    .content-image img {
        max-width: 100%;
        width: 100%;
        max-height: min(42vh, 22rem);
    }
}.lite-youtube-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #000;
}

.lite-youtube-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lite-youtube-poster {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    text-align: center;
    font: inherit;
}

.lite-youtube-poster:focus-visible {
    outline: 3px solid #86d2ff;
    outline-offset: 4px;
}

.lite-youtube-media {
    position: absolute;
    inset: 0;
}

.lite-youtube-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lite-youtube-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.45));
}

.lite-youtube-play-button {
    position: relative;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

.lite-youtube-play-button::before {
    content: '';
    display: inline-block;
    margin-left: 0.2rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.8rem 0 0.8rem 1.2rem;
    border-color: transparent transparent transparent #fff;
}

.lite-youtube-poster:hover .lite-youtube-play-button,
.lite-youtube-poster:focus-visible .lite-youtube-play-button {
    transform: scale(1.03);
}

.lite-youtube-poster:hover .lite-youtube-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
}