/* Shared lesson reader, based on the approved HTML Elements design. */
:root {
    --ct-ink: #242137;
    --ct-muted: #737080;
    --ct-purple: #7750b2;
    --ct-purple-dark: #5b378d;
    --ct-lilac: #f1ebf8;
    --ct-line: #e9e6ed;
    --ct-page: #f8f9fc;
    --ct-white: #fff;
    --ct-body-size: 16px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}
body {
    margin: 0;
    background: var(--ct-page);
    color: var(--ct-ink);
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}
button,
input {
    font: inherit;
}
button,
a,
input,
summary {
    -webkit-tap-highlight-color: transparent;
}
button,
summary {
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
}
button {
    background: none;
    border: 0;
}
a,
button,
summary {
    touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
pre:focus-visible {
    outline: 3px solid #a87be1;
    outline-offset: 4px;
}
a,
button {
    transition:
        background 0.18s,
        color 0.18s,
        box-shadow 0.18s,
        transform 0.18s;
}
a:hover {
    color: var(--ct-purple);
}
[hidden] {
    display: none !important;
}
.ct-icon {
    flex-shrink: 0;
    vertical-align: middle;
}
.ct-visually-hidden,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    white-space: nowrap;
}
.ct-skip {
    position: fixed;
    top: -100px;
    right: 20px;
    padding: 12px 20px;
    background: var(--ct-purple);
    color: white;
    z-index: 99;
}
.ct-skip:focus {
    top: 12px;
}
.ct-preview-notice {
    min-height: 34px;
    background: #2c223d;
    color: #f2ebfc;
    padding: 5px max(28px, calc((100vw - 1384px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
}
.ct-preview-notice > span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ct-preview-notice i {
    width: 6px;
    height: 6px;
    background: #b69cdd;
    border-radius: 50%;
}
.ct-preview-notice a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #f2ebfc;
}
.ct-preview-notice .ct-icon {
    width: 14px;
    height: 14px;
}
.ct-notice-detail {
    color: #c5b7d8;
}
.ct-site-header {
    background: white;
    border-bottom: 1px solid var(--ct-line);
}
.ct-header-inner {
    max-width: 1440px;
    padding: 18px 28px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 58px;
    min-height: 80px;
}
.ct-brand {
    display: flex;
    align-items: center;
}
.ct-brand img {
    width: 153px;
}
.ct-main-nav {
    display: flex;
    gap: 30px;
    font-size: 13px;
    font-weight: 700;
}
.ct-main-nav a {
    position: relative;
    color: #76717f;
}
.ct-main-nav a:hover,
.ct-main-nav .ct-active {
    color: var(--ct-purple);
}
.ct-main-nav .ct-active:after {
    content: "";
    position: absolute;
    bottom: -25px;
    right: calc(50% - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ct-purple);
}
.ct-header-cta {
    margin-inline-start: auto;
    border: 1px solid #e4daef;
    border-radius: 9px;
    background: #f8f4fc;
    color: var(--ct-purple-dark);
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
}
.ct-header-cta:hover {
    background: var(--ct-lilac);
}
.ct-header-cta .ct-icon {
    width: 17px;
}
.ct-page-wrap {
    max-width: 1440px;
    margin: auto;
    padding: 0 28px 64px;
}
.ct-breadcrumb {
    height: 66px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    color: #878291;
}
.ct-breadcrumb > span:not([aria-current]) {
    color: #b7b0c1;
    font-size: 18px;
}
.ct-breadcrumb [aria-current] {
    color: #42394f;
    font-weight: 700;
}
.ct-workspace {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.ct-curriculum {
    position: sticky;
    top: 20px;
    background: white;
    border: 1px solid var(--ct-line);
    border-radius: 14px;
    overflow: hidden;
}
.ct-course-menu > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 21px 18px;
    list-style: none;
    font-size: 17px;
    font-weight: 800;
    border-bottom: 1px solid var(--ct-line);
}
summary::-webkit-details-marker {
    display: none;
}
.ct-course-menu > summary small {
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: var(--ct-muted);
    margin-top: 2px;
}
.ct-course-emblem {
    display: grid;
    place-items: center;
    width: 38px;
    height: 43px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff0e9;
    color: #df6c35;
    font:
        800 16px "Inter",
        sans-serif;
}
.ct-course-emblem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}
.ct-course-menu > summary > .ct-menu-chevron {
    display: none;
}
.ct-course-position {
    padding: 18px 18px 16px;
}
.ct-course-position > div:first-child {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--ct-muted);
}
.ct-course-position bdi {
    font:
        600 11px "Inter",
        sans-serif;
    color: var(--ct-purple);
}
.ct-course-track {
    height: 4px;
    background: #f0ecf5;
    border-radius: 5px;
    margin: 11px 0 7px;
    overflow: hidden;
}
.ct-course-track span {
    display: block;
    width: 4.167%;
    height: 100%;
    border-radius: 5px;
    background: #9671c3;
}
.ct-course-position small {
    font-size: 10px;
    color: #8b8396;
}
.ct-course-search {
    margin: 0 14px 12px;
    position: relative;
    display: flex;
    align-items: center;
}
.ct-course-search input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--ct-line);
    background: #faf9fc;
    border-radius: 8px;
    min-height: 40px;
    padding: 7px 33px 7px 25px;
    font-size: 11px;
    color: var(--ct-ink);
}
.ct-course-search input::placeholder {
    color: #8d8796;
}
.ct-course-search svg {
    position: absolute;
    right: 11px;
    width: 14px;
    color: #97909f;
}
.ct-course-search kbd {
    position: absolute;
    left: 10px;
    border: 1px solid var(--ct-line);
    border-radius: 3px;
    font:
        10px "Inter",
        sans-serif;
    padding: 0 4px;
    color: #a39bac;
    background: white;
}
.ct-search-status:not(.ct-visually-hidden) {
    font-size: 11px;
    padding: 5px 18px;
    color: var(--ct-muted);
}
.ct-course-chapters {
    max-height: calc(100vh - 330px);
    min-height: 210px;
    overflow: auto;
    padding: 0 9px 14px;
    scrollbar-width: thin;
    scrollbar-color: #ded8e7 transparent;
    counter-reset: chapter;
}
.ct-elements-chapter {
    border: 0;
    border-bottom: 1px solid #f3f0f6;
    counter-increment: chapter;
}
.ct-elements-chapter summary {
    padding: 13px 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    font:
        500 11px "Inter",
        sans-serif;
    min-height: 43px;
    color: #696374;
}
.ct-elements-chapter summary:before {
    content: counter(chapter, decimal-leading-zero);
    font:
        500 9px "Inter",
        sans-serif;
    color: #b2a7bf;
}
.ct-elements-chapter summary:after {
    content: "⌄";
    font: 14px sans-serif;
    margin-inline-start: auto;
    color: #978aa7;
    transition: transform 0.2s;
}
.ct-elements-chapter[open] > summary {
    color: #372d48;
    font-weight: 700;
}
.ct-elements-chapter[open] > summary:after {
    transform: rotate(180deg);
}
.ct-elements-chapter ol {
    margin: 0 0 7px;
    padding: 0;
    list-style: none;
}
.ct-elements-chapter li a {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 11px 13px;
    min-height: 41px;
    color: #88818f;
    border-radius: 6px;
    font:
        400 10px "Inter",
        sans-serif;
}
.ct-elements-chapter li a:before {
    content: "";
    width: 5px;
    height: 5px;
    border: 1px solid #c7bdcf;
    border-radius: 50%;
    flex-shrink: 0;
    margin-inline-end: 7px;
}
.ct-elements-chapter li a:hover {
    background: #faf7fd;
    color: var(--ct-purple);
}
.ct-elements-chapter li a[aria-current] {
    background: var(--ct-lilac);
    color: #7043a3;
    font-weight: 700;
}
.ct-elements-chapter li a[aria-current]:before {
    background: var(--ct-purple);
    border-color: var(--ct-purple);
}
.ct-elements-chapter li a[aria-current]:after {
    content: "الآن";
    font:
        700 8px "Cairo",
        sans-serif;
    margin-inline-start: auto;
    padding: 0 5px;
    border: 1px solid #dfd0ee;
    border-radius: 4px;
}
.ct-course-help {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    font-size: 9px;
    color: #8e839c;
    border-top: 1px solid var(--ct-line);
    background: #fdfbff;
}
.ct-course-help svg {
    width: 15px;
    height: 15px;
}

/* Live curriculum navigation: chapter markers and server-rendered, cumulative lesson numbers. */
.ct-course-chapters--numbered .ct-elements-chapter summary:before {
    display: none;
}
.ct-course-chapters--numbered .ct-elements-chapter summary .ct-chapter-marker {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--ct-purple);
}
.ct-course-chapters--numbered .ct-chapter-label,
.ct-course-chapters--numbered .ct-lesson-label {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
[dir="rtl"] .ct-course-chapters--numbered .ct-chapter-label,
[dir="rtl"] .ct-course-chapters--numbered .ct-lesson-label {
    text-align: right;
}
[dir="ltr"] .ct-course-chapters--numbered .ct-chapter-label,
[dir="ltr"] .ct-course-chapters--numbered .ct-lesson-label {
    text-align: left;
}
.ct-course-chapters--numbered .ct-chapter-label bdi[lang="en"],
.ct-course-chapters--numbered .ct-lesson-label bdi[lang="en"] {
    font-weight: inherit;
    text-align: inherit;
}
.ct-course-chapters--numbered .ct-chapter-label bdi[lang="ar"],
.ct-course-chapters--numbered .ct-lesson-label bdi[lang="ar"] {
    color: #796687;
    font: 400 10px/1.6 "Cairo", sans-serif;
    text-align: inherit;
}
.ct-course-chapters--numbered .ct-elements-chapter li a[aria-current] .ct-lesson-label bdi[lang="ar"] {
    color: inherit;
}
.ct-course-chapters--numbered .ct-elements-chapter li a:before {
    display: none;
}
.ct-course-chapters--numbered .ct-elements-chapter li a {
    gap: 8px;
}
.ct-course-chapters--numbered .ct-lesson-label bdi {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ct-course-chapters--numbered .ct-lesson-number {
    flex: 0 0 22px;
    color: #796687;
    font: 500 10px "Inter", sans-serif;
    line-height: 1;
    text-align: start;
}
.ct-course-chapters--numbered .ct-elements-chapter li a[aria-current] .ct-lesson-number {
    color: var(--ct-purple);
    font-weight: 700;
}
.ct-main {
    min-width: 0;
}
.ct-hero {
    border: 1px solid var(--ct-line);
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 20px #30234403;
}
.ct-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.95fr);
    gap: 20px;
    padding: 30px 30px 26px;
    background: radial-gradient(ellipse at 5% 0%, #f3edf9 0, transparent 66%);
}
.ct-eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 10px;
    color: #82748f;
    margin-bottom: 16px;
}
.ct-level {
    padding: 3px 9px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #efedf7;
    border: 1px solid #e6dfef;
    border-radius: 5px;
    color: #79618e;
    font-weight: 700;
}
.ct-level > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9071b5;
}
.ct-hero .ct-lesson-index-badge {
    padding: 5px 12px;
    font-size: 14px;
    line-height: 1.65;
}
.ct-hero h1 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -1.1px;
    line-height: 1.55;
}
.ct-hero h1 [lang="ar"] {
    font-size: clamp(27px, 2.6vw, 40px);
    display: block;
}
.ct-hero h1 [lang="en"] {
    display: block;
    text-align: right;
    font:
        500 20px "Inter",
        sans-serif;
    color: #95849f;
    letter-spacing: -0.6px;
    margin: 6px 0 18px;
}
.ct-hero-description {
    font-size: 12px;
    color: #797080;
    line-height: 2.1;
    margin: 0;
    max-width: 580px;
}
.ct-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 23px;
}
.ct-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 42px;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.ct-button svg {
    width: 17px;
    height: 17px;
}
.ct-button-primary {
    background: var(--ct-purple);
    color: white;
    box-shadow: 0 4px 10px #7146a820;
}
.ct-button-primary:hover {
    background: var(--ct-purple-dark);
    color: white;
    transform: translateY(-1px);
}
.ct-button-text {
    color: #84728e;
    padding-inline: 8px;
}
.ct-button-text:hover {
    background: #f5effb;
}
.ct-hero-visual {
    position: relative;
    min-width: 0;
    align-self: center;
    padding: 0 0 3px;
    isolation: isolate;
}
.ct-course-visual .ct-visual-top {
    direction: inherit;
}
.ct-course-visual .ct-visual-label {
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0;
}
.ct-course-visual-badge {
    border: 1px solid var(--ct-line);
    border-radius: 6px;
    padding: 3px 8px;
    color: var(--ct-purple-dark);
    background: var(--ct-lilac);
    font: 600 11px "Inter", sans-serif;
}
.ct-course-visual-body {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 22px 16px;
    text-align: center;
    color: var(--ct-ink);
}
.ct-course-visual-orbit {
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    margin-bottom: 8px;
    border: 1px solid var(--ct-line);
    border-radius: 50%;
    background: var(--ct-lilac);
    box-shadow: 0 0 0 8px var(--ct-white);
}
.ct-course-visual-orbit img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.ct-course-visual-body > strong {
    font-size: 20px;
    line-height: 1.5;
}
.ct-course-visual-subtitle {
    color: var(--ct-muted);
    font: 500 12px "Inter", sans-serif;
}
.ct-course-visual-topics {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.ct-course-visual-topics span {
    padding: 3px 9px;
    border: 1px solid var(--ct-line);
    border-radius: 6px;
    background: var(--ct-white);
    font-size: 11px;
    overflow-wrap: anywhere;
}
.ct-visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 18px;
    direction: ltr;
}
.ct-visual-label {
    font:
        600 7px "Inter",
        sans-serif;
    letter-spacing: 1.4px;
    color: #a292b2;
}
.ct-html-badge {
    background: #fceee8;
    border: 1px solid #f4ddcf;
    border-radius: 4px;
    padding: 3px 7px;
    color: #c67545;
    font:
        700 9px "Inter",
        sans-serif;
}
.ct-browser-card {
    position: relative;
    border: 1px solid #dfd6e9;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 28px #80689513;
    transform: rotate(-2deg);
    overflow: hidden;
}
.ct-browser-top {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #faf8fc;
    border-bottom: 1px solid #eee9f2;
    padding: 11px 12px;
    color: #a397b0;
    font:
        10px "Inter",
        sans-serif;
}
.ct-browser-top > svg {
    margin-left: auto;
    width: 13px;
    height: 13px;
}
.ct-window-dots {
    display: flex;
    gap: 4px;
}
.ct-window-dots i {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d8ccdf;
}
.ct-window-dots i:first-child {
    background: #edbcb3;
}
.ct-window-dots i:nth-child(2) {
    background: #ead4a0;
}
.ct-window-dots i:nth-child(3) {
    background: #bdcfb8;
}
.ct-anatomy-code {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 30px 10px 8px;
    gap: 3px;
    font:
        500 clamp(10px, 1vw, 15px) ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;
}
.ct-line-number {
    font-size: 8px;
    color: #c4b9ce;
    margin-right: 4px;
}
.ct-tag {
    color: #9667c3;
    background: #f4ecfc;
    padding: 6px 4px;
    border-radius: 4px;
}
.ct-code-content {
    color: #3e3947;
    background: #f8f8fa;
    padding: 6px 5px;
    border-radius: 4px;
}
.ct-anatomy-labels {
    padding: 0 20px 24px 35px;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 3px;
    text-align: center;
    font-size: 8px;
    color: #a799b1;
}
.ct-anatomy-labels span:before {
    content: "";
    display: block;
    width: 1px;
    height: 11px;
    background: #e3d7ee;
    margin: 0 auto 5px;
}
.ct-browser-result {
    border-top: 1px dashed #e7ddec;
    margin: 0 14px;
    padding: 14px 8px 22px;
    position: relative;
}
.ct-result-caption {
    display: flex;
    align-items: center;
    gap: 7px;
    direction: rtl;
    justify-content: end;
    color: #a79cae;
    font-size: 8px;
}
.ct-result-caption svg {
    width: 11px;
    height: 11px;
}
.ct-browser-result strong {
    display: block;
    font:
        800 28px "Inter",
        sans-serif;
    letter-spacing: -1.3px;
    margin-top: 8px;
    color: #2d2738;
}
.ct-result-cursor {
    position: absolute;
    right: 11px;
    bottom: 17px;
    color: #9c82bb;
    font: 26px sans-serif;
}
.ct-visual-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    color: #96839f;
    font-size: 10px;
}
.ct-visual-caption svg {
    width: 13px;
    height: 13px;
}
.ct-visual-watermark {
    position: absolute;
    bottom: -22px;
    left: -10px;
    z-index: -1;
    font:
        800 90px "Inter",
        sans-serif;
    letter-spacing: -12px;
    color: #ece3f329;
    transform: rotate(-12deg);
}
.ct-lesson-meta {
    margin: 0;
    border-top: 1px solid #eeebf3;
    background: #fdfcfe;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 17px 25px;
}
.ct-lesson-meta > div {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 9px;
}
.ct-lesson-meta dt {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #99909f;
}
.ct-lesson-meta dd {
    margin: 0;
    font-weight: 700;
    color: #665870;
}
.ct-lesson-meta svg {
    width: 13px;
    height: 13px;
    color: #ad9bbb;
}
.ct-reading-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4px;
    margin: 18px 0;
    background: #f8f9fcf5;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ct-line);
    min-height: 66px;
}
.ct-toolbar-current {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 800;
}
.ct-toolbar-current svg {
    color: #a18aaa;
    width: 17px;
    height: 17px;
}
.ct-reading-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ct-reading-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e9e4ef;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 10px;
    color: #8c7d99;
    min-height: 34px;
}
.ct-reading-actions button:hover,
.ct-reading-actions button[aria-pressed="true"] {
    background: #eee5f7;
    color: #6a429b;
    border-color: #d9c6ed;
}
.ct-reading-actions button > span[dir="ltr"] {
    font:
        500 15px "Inter",
        sans-serif;
}
.ct-small-a {
    font-size: 11px;
}
.ct-reading-actions svg {
    width: 13px;
    height: 13px;
}
.ct-scroll-track {
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 2px;
    overflow: hidden;
}
.ct-scroll-track span {
    display: block;
    background: #b395d2;
    width: 0;
    height: 100%;
}
.ct-reading {
    min-width: 0;
    outline: none;
}
.ct-outline {
    border: 1px solid var(--ct-line);
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}
.ct-outline summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 23px;
    font-size: 12px;
    font-weight: 800;
    list-style: none;
}
.ct-outline summary > span {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ct-outline summary svg {
    width: 16px;
    height: 16px;
    color: var(--ct-purple);
}
.ct-outline summary b {
    font:
        600 9px "Inter",
        sans-serif;
    padding: 3px 5px;
    background: #f1ebf8;
    color: #a084b8;
    border-radius: 4px;
}
.ct-outline summary .ct-outline-hint {
    font-size: 9px;
    font-weight: 400;
    color: #a295ae;
}
.ct-outline[open] summary {
    border-bottom: 1px solid #f1edf5;
}
.ct-outline ol {
    list-style: none;
    counter-reset: outline;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
    margin: 0;
    padding: 16px 23px 20px;
}
.ct-outline li {
    counter-increment: outline;
    min-width: 0;
}
.ct-outline a {
    display: flex;
    align-items: start;
    gap: 9px;
    font-size: 11px;
    color: #82768b;
    padding: 7px 0;
    line-height: 1.8;
}
.ct-outline a:before {
    content: counter(outline, decimal-leading-zero);
    font:
        500 9px "Inter",
        sans-serif;
    line-height: 2;
    color: #b9abc5;
}
.ct-outline a:hover,
.ct-outline a[aria-current] {
    color: var(--ct-purple-dark);
}
.ct-lesson-sections {
    counter-reset: topic;
}
.ct-elements-topic,
.ct-builder-topic {
    background: white;
    border: 1px solid var(--ct-line);
    border-radius: 13px;
    padding: 29px 30px;
    margin-bottom: 22px;
    scroll-margin-top: 85px;
    overflow: hidden;
}
.ct-elements-topic-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 25px 24px;
    align-items: start;
}
.ct-elements-topic-heading {
    grid-column: span 12;
}
.ct-elements-topic-title,
.ct-builder-topic-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #efebf4;
    padding-bottom: 20px;
    margin-bottom: 0;
}
.ct-elements-anchor,
.ct-topic-number {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 44px;
    border: 1px solid #eee5f7;
    border-radius: 8px;
    background: #f8f4fd;
    color: #b09ac3;
    font:
        500 16px "Inter",
        sans-serif;
}
.ct-elements-topic h2,
.ct-builder-topic h2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    font-size: 21px;
    line-height: 1.65;
    font-weight: 800;
    letter-spacing: -0.2px;
}
.ct-elements-topic h2 [lang="en"],
.ct-builder-topic h2 [lang="en"] {
    order: 2;
    color: #a395ae;
    font:
        400 11px/1.6 "Inter",
        sans-serif;
    letter-spacing: 0;
    text-align: right;
}
.ct-elements-topic h2 [lang="ar"] {
    order: 1;
}
.ct-elements-block {
    min-width: 0;
    grid-column: span 12;
}
.col-md-1 {
    grid-column: span 1;
}
.col-md-2 {
    grid-column: span 2;
}
.col-md-3 {
    grid-column: span 3;
}
.col-md-4 {
    grid-column: span 4;
}
.col-md-5 {
    grid-column: span 5;
}
.col-md-6 {
    grid-column: span 6;
}
.col-md-7 {
    grid-column: span 7;
}
.col-md-8 {
    grid-column: span 8;
}
.col-md-9 {
    grid-column: span 9;
}
.col-md-10 {
    grid-column: span 10;
}
.col-md-11 {
    grid-column: span 11;
}
.col-md-12 {
    grid-column: span 12;
}
.ct-elements-prose,
.ct-builder-prose,
.ct-content-prose {
    font-size: var(--ct-body-size);
    line-height: 2.15;
    color: #696273;
    overflow-wrap: anywhere;
}
.ct-elements-prose p,
.ct-builder-prose p,
.ct-content-prose p {
    margin: 0 0 18px;
}
.ct-elements-prose p:last-child,
.ct-builder-prose p:last-child {
    margin-bottom: 0;
}
.ct-elements-prose strong,
.ct-elements-prose b {
    font-weight: 700;
    color: #494050;
}
.ct-elements-prose ul,
.ct-elements-prose ol {
    padding-inline-start: 23px;
    margin: 12px 0 0;
}
.ct-elements-prose li {
    padding-inline-start: 5px;
    margin: 9px 0;
}
.ct-elements-prose li::marker {
    color: #ac8dc5;
}
.ct-elements-prose a {
    color: #8b5ab2;
    text-decoration: underline;
    text-decoration-color: #d4bce9;
    text-underline-offset: 4px;
}
.ct-elements-block-image {
    align-self: center;
}
.ct-elements-block figure {
    margin: 0;
    text-align: center;
    padding: 12px;
    background: #fbfafc;
    border: 1px solid #eeeaf3;
    border-radius: 9px;
}
.ct-elements-block img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.ct-elements-code-title {
    font:
        600 13px/1.6 "Inter",
        sans-serif;
    margin: 5px 0 7px;
    color: #51465f;
    text-align: left;
}
.ct-elements-code-description {
    font-size: 13px;
    line-height: 1.9;
    color: #8a7f94;
    margin: 0 0 14px;
}
.ct-code-card {
    background: #262336;
    border: 1px solid #352c46;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px #2c204c06;
}
.ct-code-card-head {
    padding: 11px 16px;
    border-bottom: 1px solid #ffffff0d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ct-code-card-language {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c4abd8;
    font:
        600 10px "Inter",
        sans-serif;
}
.ct-code-card-symbol {
    font-family: monospace;
    color: #9b7eb5;
}
.ct-preview-filename {
    color: #6e667e;
    font:
        400 9px "Inter",
        sans-serif;
    border-inline-start: 1px solid #504260;
    padding-inline-start: 8px;
}
.ct-code-card-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    direction: rtl;
}
.ct-content-copy {
    padding: 4px 9px;
    color: #b5a6c8;
    border: 1px solid #51445e;
    border-radius: 5px;
    font-size: 9px;
    min-height: 28px;
}
.ct-content-copy:hover {
    background: #473656;
    color: #eee3f8;
}
.ct-code-card-copy-status {
    font-size: 9px;
    color: #c0adcf;
}
.ct-code-card pre {
    margin: 0;
    padding: 24px 20px;
    direction: ltr;
    text-align: left;
    font:
        13px/1.9 ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;
    white-space: pre;
    tab-size: 4;
    overflow: auto;
    color: #e7dfea;
    scrollbar-width: thin;
    scrollbar-color: #665276 transparent;
    max-height: 520px;
}
.ct-code-card code {
    font: inherit;
    color: inherit;
}
.ct-code-card .ct-code-tag {
    color: #c99eed;
}
.ct-code-card .ct-code-attr {
    color: #dec295;
}
.ct-code-card .ct-code-string {
    color: #b7ceac;
}
.ct-code-card-foot {
    padding: 10px 15px;
    border-top: 1px solid #ffffff0a;
    display: flex;
    justify-content: flex-start;
    direction: ltr;
}
.ct-content-try {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #d2bbdf;
    border-radius: 5px;
    padding: 5px 10px;
    background: #493359;
    direction: rtl;
    min-height: 31px;
}
.ct-content-try:hover {
    background: #674781;
    color: white;
}
.ct-content-try svg {
    width: 13px;
    height: 13px;
}
.ct-elements-note {
    background: #f7f3fc;
    border: 1px solid #e9dff3;
    border-inline-start: 3px solid #b595d2;
    border-radius: 7px;
    padding: 19px 22px;
}
.ct-elements-note h3 {
    font-size: 13px;
    font-weight: 800;
    color: #8d67a7;
    margin: 0 0 8px;
}
.ct-elements-note .ct-elements-prose {
    font-size: 14px;
    color: #8b7a96;
    line-height: 2;
}
.ct-elements-note-warning {
    background: #fffbf2;
    border-color: #efe5cf;
    border-inline-start-color: #d7b971;
}
.ct-elements-note-warning h3 {
    color: #a78a50;
}
.ct-builder-topic-heading {
    margin-bottom: 22px;
}
.ct-builder-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.ct-builder-item {
    grid-column: span var(--ct-span, 12);
    min-width: 0;
}
.ct-content-note {
    background: #faf6ee;
    border: 1px solid #eee2ca;
    border-inline-start: 3px solid #d6b679;
    border-radius: 7px;
    padding: 18px 22px;
    color: #8b7a63;
    font-size: 14px;
    line-height: 2.1;
}
.ct-content-note p {
    margin: 0;
}
.ct-elements-closing {
    background: transparent;
    border: 0;
    padding: 18px 24px 30px;
    color: #998ba4;
}
.ct-elements-closing h2 {
    font-size: 14px;
    color: #7c698c;
    margin: 0 0 10px;
}
.ct-elements-closing ul {
    padding-inline-start: 20px;
    font-size: 12px;
    line-height: 2;
}
.ct-bottom-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 12px;
}
.ct-bottom-navigation a {
    border: 1px solid var(--ct-line);
    padding: 20px 23px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: white;
    border-radius: 10px;
    font-size: 10px;
    color: #a296ac;
}
.ct-bottom-navigation strong {
    font-size: 14px;
    color: #766080;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ct-bottom-navigation .ct-next-lesson {
    background: #f3edf9;
    border-color: #e3d7ef;
}
.ct-bottom-navigation .ct-next-lesson strong {
    color: #8050a6;
}
.ct-bottom-navigation a:hover {
    border-color: #bda1d2;
    transform: translateY(-2px);
}
.ct-footer {
    max-width: 1384px;
    margin: 0 auto;
    border-top: 1px solid var(--ct-line);
    padding: 32px 28px;
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 11px;
    color: #9a91a3;
}
.ct-footer img {
    display: block;
    width: 120px;
    opacity: 0.75;
}
.ct-footer small {
    margin-inline-start: auto;
    font:
        10px "Inter",
        sans-serif;
    direction: ltr;
}
.ct-back-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: white;
    border: 1px solid #e3d7ef;
    border-radius: 10px;
    box-shadow: 0 4px 20px #49234c10;
    color: #9873b3;
    z-index: 20;
    font-size: 22px;
}
.ct-reader-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translate(-50%, 20px);
    z-index: 40;
    background: #322341;
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
}
.ct-reader-toast.ct-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
/* RTL actions stay at the physical left edge, including wrapped mobile rows. */
[dir="rtl"] .ct-hero-actions {
    justify-content: flex-end;
}
[dir="rtl"] .ct-reading-actions {
    justify-content: flex-end;
}
[dir="rtl"] .ct-code-card-tools {
    justify-content: flex-end;
}
[dir="ltr"] .ct-hero h1 [lang="en"],
[dir="ltr"] .ct-elements-topic h2 [lang="en"],
[dir="ltr"] .ct-builder-topic h2 [lang="en"] {
    text-align: left;
}
[dir="ltr"] .ct-course-search svg {
    left: 11px;
    right: auto;
}
[dir="ltr"] .ct-course-search input {
    padding-left: 33px;
    padding-right: 25px;
}
[dir="ltr"] .ct-course-search kbd {
    right: 10px;
    left: auto;
}
.ct-focus-mode .ct-workspace {
    grid-template-columns: minmax(0, 1000px);
    justify-content: center;
}
.ct-focus-mode .ct-curriculum {
    display: none;
}
.ct-large-text {
    --ct-body-size: 19px;
}
@media (min-width: 1450px) {
    .ct-hero-grid {
        gap: 40px;
        padding: 38px;
    }
    .ct-hero-description {
        font-size: 14px;
    }
    .ct-hero h1 [lang="ar"] {
        font-size: 43px;
    }
    .ct-anatomy-code {
        font-size: 15px;
    }
    .ct-visual-label {
        font-size: 8px;
    }
    .ct-lesson-meta > div {
        font-size: 10px;
    }
    .ct-button {
        font-size: 12px;
    }
    .ct-elements-topic h2 {
        font-size: 23px;
    }
}
@media (max-width: 1100px) {
    .ct-workspace {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 20px;
    }
    .ct-hero-grid {
        grid-template-columns: 1fr;
        padding: 26px;
        gap: 24px;
    }
    .ct-hero-visual {
        max-width: 350px;
        display: none;
    }
    .ct-hero h1 [lang="ar"] {
        font-size: 36px;
    }
    .ct-hero-description {
        font-size: 13px;
    }
    .ct-lesson-meta {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 13px 20px;
        padding: 17px 25px;
    }
    .ct-course-menu > summary {
        padding: 17px 13px;
        font-size: 15px;
    }
    .ct-course-menu > summary small {
        font-size: 8px;
    }
    .ct-elements-topic,
    .ct-builder-topic {
        padding: 24px;
    }
    .ct-elements-topic h2,
    .ct-builder-topic h2 {
        font-size: 19px;
    }
    .ct-elements-topic-row {
        gap: 22px 16px;
    }
    .ct-elements-prose {
        font-size: calc(var(--ct-body-size) - 1px);
    }
    .ct-elements-block-image {
        grid-column: span 12;
        max-width: 500px;
        justify-self: center;
    }
    .ct-elements-block-text {
        grid-column: span 12;
    }
    .ct-elements-block-code.col-md-6 {
        grid-column: span 12;
    }
}
@media (max-width: 800px) {
    .ct-header-inner {
        padding: 17px 20px;
        gap: 35px;
    }
    .ct-page-wrap {
        padding: 0 20px 40px;
    }
    .ct-workspace {
        display: block;
    }
    .ct-curriculum {
        position: static;
        margin-bottom: 20px;
    }
    .ct-course-menu > summary {
        padding: 13px 16px;
        min-height: 61px;
    }
    .ct-course-emblem {
        height: 34px;
        width: 34px;
        font-size: 13px;
    }
    .ct-course-menu > summary small {
        display: none;
    }
    .ct-course-menu > summary > .ct-menu-chevron {
        display: block;
        margin-inline-start: auto;
        color: #9c86ae;
    }
    .ct-course-body {
        padding-bottom: 3px;
    }
    .ct-course-position {
        padding-top: 14px;
    }
    .ct-course-chapters {
        max-height: 320px;
        min-height: 0;
    }
    .ct-course-help {
        display: none;
    }
    .ct-hero-grid {
        grid-template-columns: 1.3fr 1fr;
        padding: 26px;
        gap: 24px;
    }
    .ct-hero-visual {
        display: block;
    }
    .ct-hero h1 [lang="ar"] {
        font-size: 30px;
    }
    .ct-hero h1 [lang="en"] {
        font-size: 17px;
    }
    .ct-hero-description {
        font-size: 11px;
    }
    .ct-hero-actions {
        gap: 8px;
    }
    .ct-button {
        padding: 8px 12px;
        font-size: 10px;
    }
    .ct-anatomy-code {
        font-size: 11px;
    }
    .ct-visual-label {
        font-size: 6px;
        letter-spacing: 0.8px;
    }
    .ct-lesson-meta {
        justify-content: space-between;
        gap: 13px 12px;
    }
    .ct-breadcrumb {
        height: 56px;
    }
    .ct-elements-topic-row {
        gap: 24px;
    }
    .ct-elements-block-text.col-md-8 {
        grid-column: span 8;
    }
    .ct-elements-block-image.col-md-4 {
        grid-column: span 4;
    }
    .ct-focus-mode .ct-curriculum {
        display: none;
    }
    .ct-footer {
        margin: 0 20px;
        padding: 24px 0;
    }
    .ct-code-card pre {
        font-size: 12px;
    }
}
@media (max-width: 600px) {
    html {
        scroll-padding-top: 78px;
    }
    .ct-preview-notice {
        padding: 7px 16px;
        font-size: 9px;
        gap: 8px;
        min-height: 33px;
    }
    .ct-preview-notice a {
        gap: 5px;
    }
    .ct-notice-detail {
        display: none;
    }
    .ct-preview-notice .ct-icon {
        width: 12px;
    }
    .ct-header-inner {
        padding: 16px;
        min-height: 71px;
        gap: 16px;
    }
    .ct-brand img {
        width: 118px;
    }
    .ct-main-nav {
        display: none;
    }
    .ct-header-cta {
        font-size: 10px;
        padding: 7px 11px;
        gap: 7px;
    }
    .ct-header-cta .ct-icon {
        width: 14px;
    }
    .ct-page-wrap {
        padding: 0 14px 30px;
    }
    .ct-breadcrumb {
        font-size: 10px;
        height: 51px;
        gap: 11px;
    }
    .ct-curriculum {
        margin-bottom: 16px;
        border-radius: 10px;
    }
    .ct-course-menu > summary {
        font-size: 14px;
    }
    .ct-hero {
        border-radius: 12px;
    }
    .ct-hero-grid {
        display: flex;
        flex-direction: column;
        padding: 23px 22px 27px;
        gap: 26px;
    }
    .ct-hero h1 [lang="ar"] {
        font-size: 31px;
        letter-spacing: -1px;
    }
    .ct-hero h1 [lang="en"] {
        font-size: 19px;
        margin: 6px 0 16px;
    }
    .ct-eyebrow {
        font-size: 10px;
        margin-bottom: 15px;
    }
    .ct-hero-description {
        font-size: 12px;
        line-height: 2;
    }
    .ct-hero-actions {
        margin-top: 21px;
        gap: 6px;
        justify-content: flex-end;
    }
    .ct-button {
        font-size: 10px;
        padding: 9px 12px;
        gap: 7px;
    }
    .ct-button-text {
        padding-inline: 9px;
    }
    .ct-hero-visual {
        width: 100%;
        max-width: 340px;
        padding: 5px 7px 0;
    }
    .ct-visual-top {
        margin-bottom: 13px;
    }
    .ct-visual-label {
        font-size: 7px;
        letter-spacing: 1px;
    }
    .ct-browser-card {
        transform: rotate(-1.6deg);
    }
    .ct-anatomy-code {
        font-size: 13px;
        padding-top: 23px;
    }
    .ct-browser-result strong {
        font-size: 27px;
    }
    .ct-browser-result {
        padding-bottom: 20px;
    }
    .ct-visual-caption {
        margin-top: 15px;
        font-size: 10px;
    }
    .ct-lesson-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 13px 9px;
        padding: 18px 20px;
    }
    .ct-lesson-meta > div {
        font-size: 9px;
        gap: 6px;
    }
    .ct-lesson-meta > div:last-child {
        grid-column: span 2;
    }
    .ct-lesson-meta dt {
        gap: 6px;
    }
    .ct-lesson-meta svg {
        width: 12px;
        height: 12px;
    }
    .ct-reading-toolbar {
        margin: 12px 0;
        padding: 12px 2px;
        min-height: 60px;
    }
    .ct-toolbar-current {
        font-size: 11px;
        gap: 7px;
    }
    .ct-reading-actions {
        gap: 5px;
    }
    .ct-reading-actions button {
        font-size: 9px;
        padding: 7px 8px;
    }
    .ct-outline {
        margin-bottom: 16px;
        border-radius: 10px;
    }
    .ct-outline summary {
        padding: 15px 16px;
        font-size: 11px;
    }
    .ct-outline summary .ct-outline-hint {
        font-size: 8px;
        gap: 5px;
    }
    .ct-outline ol {
        grid-template-columns: 1fr;
        padding: 12px 17px 17px;
        gap: 0;
    }
    .ct-outline a {
        font-size: 11px;
        padding: 7px 0;
    }
    .ct-elements-topic,
    .ct-builder-topic {
        padding: 22px 19px;
        margin-bottom: 16px;
        border-radius: 10px;
    }
    .ct-elements-topic-row {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }
    .ct-elements-block {
        width: 100%;
    }
    .ct-elements-topic-title,
    .ct-builder-topic-heading {
        gap: 10px;
        padding-bottom: 17px;
    }
    .ct-elements-topic h2,
    .ct-builder-topic h2 {
        font-size: 19px;
        line-height: 1.65;
    }
    .ct-elements-topic h2 [lang="en"],
    .ct-builder-topic h2 [lang="en"] {
        font-size: 10px;
    }
    .ct-elements-anchor,
    .ct-topic-number {
        width: 32px;
        height: 39px;
        font-size: 13px;
        border-radius: 6px;
    }
    .ct-elements-prose,
    .ct-builder-prose,
    .ct-content-prose {
        font-size: calc(var(--ct-body-size) - 1px);
        line-height: 2.05;
    }
    .ct-elements-prose ul,
    .ct-elements-prose ol {
        padding-inline-start: 18px;
    }
    .ct-elements-block figure {
        padding: 9px;
        max-width: 420px;
        margin: auto;
    }
    .ct-code-card pre {
        font-size: 12px;
        padding: 20px 15px;
    }
    .ct-code-card-head {
        padding: 10px 12px;
        gap: 8px;
    }
    .ct-preview-filename {
        display: none;
    }
    .ct-content-copy {
        font-size: 9px;
    }
    .ct-elements-code-title {
        font-size: 12px;
    }
    .ct-elements-code-description {
        font-size: 12px;
    }
    .ct-elements-note {
        padding: 17px 16px;
    }
    .ct-elements-note .ct-elements-prose {
        font-size: 13px;
    }
    .ct-builder-row {
        display: block;
        margin: 18px 0;
    }
    .ct-builder-item {
        margin-bottom: 18px;
    }
    .ct-content-note {
        font-size: 13px;
        padding: 16px;
    }
    .ct-elements-closing {
        padding: 15px 14px 23px;
    }
    .ct-elements-closing ul {
        font-size: 11px;
    }
    .ct-bottom-navigation {
        gap: 9px;
    }
    .ct-bottom-navigation a {
        padding: 15px 14px;
        font-size: 9px;
    }
    .ct-bottom-navigation strong {
        font-size: 12px;
    }
    .ct-bottom-navigation svg {
        width: 15px;
        height: 15px;
    }
    .ct-footer {
        flex-wrap: wrap;
        gap: 12px 20px;
        justify-content: space-between;
        padding: 24px 0;
        margin: 0 16px;
        font-size: 10px;
    }
    .ct-footer img {
        width: 100px;
    }
    .ct-footer small {
        width: 100%;
        text-align: center;
        margin-top: 4px;
        font-size: 9px;
    }
    .ct-back-top {
        bottom: 16px;
        left: 14px;
        width: 36px;
        height: 36px;
        font-size: 19px;
    }
    .ct-reader-toast {
        width: max-content;
        max-width: calc(100vw - 40px);
        font-size: 11px;
    }
    .ct-large-text .ct-elements-prose {
        font-size: 18px;
    }
}
@media (max-width: 360px) {
    .ct-hero-grid {
        padding: 21px 17px;
    }
    .ct-hero h1 [lang="ar"] {
        font-size: 28px;
    }
    .ct-anatomy-code {
        font-size: 11px;
    }
    .ct-lesson-meta {
        padding: 16px;
    }
    .ct-elements-topic,
    .ct-builder-topic {
        padding: 19px 15px;
    }
    .ct-outline-hint {
        max-width: 85px;
    }
    .ct-reading-actions button {
        gap: 5px;
    }
    .ct-elements-topic h2 {
        font-size: 17px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
    }
}
@media print {
    body {
        background: white;
    }
    .ct-preview-notice,
    .ct-site-header,
    .ct-curriculum,
    .ct-breadcrumb,
    .ct-reading-toolbar,
    .ct-hero-visual,
    .ct-back-top,
    .ct-content-copy,
    .ct-footer,
    .ct-bottom-navigation {
        display: none !important;
    }
    .ct-workspace {
        display: block;
    }
    .ct-page-wrap {
        padding: 0;
    }
    .ct-elements-topic,
    .ct-builder-topic {
        break-inside: avoid;
    }
    .ct-code-card {
        background: #f4f1f7;
        color: #292133;
    }
    .ct-code-card pre {
        color: #292133;
        white-space: pre-wrap;
    }
    .ct-hero-grid {
        display: block;
    }
    .ct-hero-actions {
        display: none;
    }
    .ct-outline {
        display: none;
    }
}
/* Readability pass: restrained color must still have clear contrast. */
.ct-brand {
    gap: 10px;
}
.ct-brand img {
    width: 52px;
}
.ct-brand b {
    font:
        800 19px "Inter",
        sans-serif;
    letter-spacing: 1px;
    color: #262336;
}
.ct-header-inner {
    min-height: 78px;
    padding-block: 20px;
}
.ct-main-nav {
    font-size: 14px;
}
.ct-header-cta {
    font-size: 12px;
}
.ct-breadcrumb {
    font-size: 12px;
}
.ct-preview-notice {
    font-size: 11px;
}
.ct-hero h1 [lang="ar"] {
    font-size: 37px;
}
.ct-hero h1 [lang="en"] {
    color: #806d90;
}
.ct-hero-description {
    font-size: 14px;
    line-height: 2;
    color: #665a71;
}
.ct-eyebrow {
    font-size: 11px;
}
.ct-button {
    font-size: 12px;
}
.ct-button-text {
    color: #755b89;
}
.ct-anatomy-code {
    font-size: 15px;
}
.ct-visual-label {
    color: #78618a;
}
.ct-anatomy-labels {
    font-size: 10px;
    color: #816992;
}
.ct-browser-top {
    color: #80708d;
}
.ct-result-caption {
    font-size: 10px;
    color: #877490;
}
.ct-visual-caption {
    font-size: 11px;
    color: #806d8e;
}
.ct-lesson-meta {
    flex-wrap: wrap;
    gap: 12px 20px;
}
.ct-lesson-meta > div {
    font-size: 10px;
}
.ct-lesson-meta dt {
    color: #7e7188;
}
.ct-course-menu > summary small {
    font-size: 10px;
    color: #83728f;
}
.ct-course-position > div:first-child,
.ct-course-position small {
    font-size: 11px;
    color: #83728f;
}
.ct-course-search input {
    font-size: 12px;
}
.ct-elements-chapter summary {
    font-size: 12px;
    color: #73617d;
    padding-block: 15px;
}
.ct-elements-chapter li a {
    font-size: 11px;
    color: #786985;
    padding-block: 13px;
}
.ct-elements-chapter li a[aria-current]:after {
    font-size: 9px;
}
.ct-course-help {
    font-size: 10px;
    color: #84718f;
}
.ct-toolbar-current {
    font-size: 13px;
}
.ct-reading-actions button {
    font-size: 11px;
    color: #756080;
}
.ct-outline summary {
    font-size: 13px;
}
.ct-outline a {
    font-size: 12px;
    color: #756080;
}
.ct-outline a:before {
    color: #947ba6;
}
.ct-outline summary .ct-outline-hint {
    font-size: 10px;
    color: #877191;
}
.ct-elements-prose,
.ct-builder-prose,
.ct-content-prose {
    color: #5c5167;
    font-weight: 500;
}
.ct-elements-topic h2 [lang="en"],
.ct-builder-topic h2 [lang="en"] {
    color: #8c789a;
}
.ct-elements-code-description {
    color: #786588;
}
.ct-elements-note .ct-elements-prose {
    color: #766084;
}
.ct-elements-anchor,
.ct-topic-number {
    color: #9675b0;
}
.ct-footer .ct-brand img {
    width: 38px;
}
.ct-footer .ct-brand b {
    font-size: 14px;
}
.ct-footer {
    color: #82728e;
}
@media (max-width: 1100px) {
    .ct-hero h1 [lang="ar"] {
        font-size: 34px;
    }
    .ct-hero-description {
        font-size: 14px;
    }
    .ct-hero-visual {
        display: none;
    }
    .ct-course-menu > summary small {
        font-size: 8px;
    }
    .ct-elements-chapter li a {
        font-size: 10px;
    }
}
@media (min-width: 601px) and (max-width: 800px) {
    .ct-hero-visual {
        display: block;
    }
    .ct-hero h1 [lang="ar"] {
        font-size: 29px;
    }
    .ct-hero-description {
        font-size: 12px;
    }
    .ct-anatomy-code {
        font-size: 11px;
    }
    .ct-anatomy-labels {
        font-size: 9px;
    }
}
@media (max-width: 600px) {
    .ct-preview-notice {
        font-size: 9px;
    }
    .ct-header-inner {
        padding: 17px 16px;
        min-height: 70px;
    }
    .ct-brand img {
        width: 42px;
    }
    .ct-brand b {
        font-size: 15px;
        letter-spacing: 0.5px;
    }
    .ct-brand {
        gap: 7px;
    }
    .ct-header-cta {
        font-size: 10px;
    }
    .ct-breadcrumb {
        font-size: 11px;
    }
    .ct-hero h1 [lang="ar"] {
        font-size: 30px;
    }
    .ct-hero-description {
        font-size: 13px;
    }
    .ct-hero-actions .ct-button {
        font-size: 11px;
    }
    .ct-hero-visual {
        display: block;
    }
    .ct-anatomy-code {
        font-size: 13px;
    }
    .ct-anatomy-labels {
        font-size: 9px;
    }
    .ct-lesson-meta {
        gap: 12px 9px;
    }
    .ct-lesson-meta > div {
        font-size: 10px;
    }
    .ct-toolbar-current {
        font-size: 12px;
    }
    .ct-reading-actions button {
        font-size: 10px;
    }
    .ct-outline a {
        font-size: 12px;
    }
    .ct-outline summary {
        font-size: 12px;
    }
    .ct-outline summary .ct-outline-hint {
        font-size: 9px;
    }
    .ct-elements-chapter li a {
        font-size: 12px;
    }
    .ct-elements-chapter summary {
        font-size: 13px;
    }
    .ct-footer .ct-brand img {
        width: 30px;
    }
    .ct-footer .ct-brand b {
        font-size: 12px;
    }
}
@media (max-width: 360px) {
    .ct-hero h1 [lang="ar"] {
        font-size: 27px;
    }
    .ct-anatomy-code {
        font-size: 11px;
    }
    .ct-hero-actions .ct-button {
        font-size: 10px;
    }
    .ct-lesson-meta > div {
        font-size: 9px;
    }
}
.ct-elements-social {
    border-top: 1px solid var(--ct-line);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 26px;
    padding: 24px 14px;
}
.ct-elements-social h2 {
    font-size: 13px;
    color: #776084;
    margin: 0 0 10px;
}
.ct-elements-share-links,
.ct-elements-feedback-buttons {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.ct-elements-share-links a {
    background: white;
    border: 1px solid #e4dae9;
    border-radius: 6px;
    padding: 7px 9px;
    font:
        500 10px "Inter",
        sans-serif;
    color: #856d98;
    min-height: 30px;
    display: flex;
    align-items: center;
}
.ct-elements-share-links a:hover {
    color: #67458a;
    background: #f0e6f8;
}
.ct-elements-feedback-buttons button {
    font-size: 10px;
    border: 1px solid #e5deed;
    border-radius: 6px;
    padding: 4px 10px;
    color: #a99ab3;
    background: #f7f3fa;
    cursor: not-allowed;
}
.ct-elements-feedback p {
    font-size: 10px;
    color: #93829f;
    margin: 6px 0 0;
}
.ct-elements-feedback {
    text-align: left;
}
@media (max-width: 600px) {
    .ct-hero-visual {
        display: none;
    }
    .ct-elements-social {
        flex-direction: column;
        gap: 20px;
        padding: 21px 14px;
    }
    .ct-elements-social > div {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }
    .ct-elements-social h2 {
        font-size: 12px;
        margin: 0;
    }
    .ct-elements-feedback p {
        width: 100%;
        margin-top: 0;
    }
    .ct-elements-share-links a {
        font-size: 9px;
        padding: 7px;
    }
    .ct-lesson-meta {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}
@media print {
    .ct-elements-social {
        display: none;
    }
}
