/*
 * Shared course presentation
 *
 * Load after normalize.css. Load font-awesome.css separately when icon
 * classes are used. Pages must load Lato 400, 400 italic, 700, and 900.
 */

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
    --font-sans: "Lato", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: Consolas, Monaco, "Courier New", monospace;

    --surface-0: #ffffff;
    --surface-1: #f5f7f9;
    --surface-2: #e9edf1;
    --surface-3: #dde3e8;
    --text-primary: #17212b;
    --text-secondary: #4c545b;
    --border-color: #c5ccd3;
    --link-color: #075fbe;
    --focus-color: #005fcc;

    --info-bg: #eaf4fb;
    --info-border: #4aa9df;
    --warning-bg: #fff1bd;
    --warning-border: #f59e0b;
    --critical-bg: #fdecea;
    --critical-border: #e74c3c;
    --success-bg: #eaf7ee;
    --success-border: #2e9d50;

    --row-odd-bg: #eef2f5;
    --row-even-bg: #e4e9ee;
    --checkbox-accent: #2e78c7;

    --code-bg: #f6f8fa;
    --code-text: #111111;
    --panel-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.16);
    --tooltip-z-index: 1000;
}

html:has(body.dark-mode),
body.dark-mode {
    --surface-0: #101214;
    --surface-1: #171a1e;
    --surface-2: #21262c;
    --surface-3: #2a3037;
    --text-primary: #f5f7f9;
    --text-secondary: #b8c0c8;
    --border-color: #59636d;
    --link-color: #86bfff;
    --focus-color: #9ac7ff;

    --info-bg: #173247;
    --info-border: #55b8f0;
    --warning-bg: #3a3215;
    --warning-border: #ffb020;
    --critical-bg: #401e1e;
    --critical-border: #ff7373;
    --success-bg: #173524;
    --success-border: #67c587;

    --row-odd-bg: #242a30;
    --row-even-bg: #2b3138;
    --checkbox-accent: #66aef5;

    --code-bg: #111418;
    --code-text: #f5f7f9;
}

/* ==========================================================================
   Typography
   ========================================================================== */

html {
    background: var(--surface-0);
    min-width: 720px;
    scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-sans);
}

body {
    background: var(--surface-0);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    margin: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.25;
}

h1 {
    font-size: clamp(1.75rem, 2.5vw, 2.15rem);
    font-weight: 900;
    margin: 0;
}

h2 {
    font-size: clamp(1.35rem, 2vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 0.65rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.15rem 0 0.45rem;
}

h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1rem 0 0.4rem;
}

p {
    margin: 0.55rem 0;
}

li {
    margin-bottom: 5px;
}

small,
.small,
.caption {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.caption {
    font-style: italic;
    margin-top: 0.35rem;
}

strong {
    font-weight: 700;
}

/* ==========================================================================
   Page layout and surfaces
   ========================================================================== */

.container,
.walkthrough {
    box-sizing: border-box;
}

body.layout-standard .container,
body.layout-standard .walkthrough {
    margin: 10px;
    max-width: calc(100vw - 20px);
    min-width: clamp(700px, calc(100vw - 20px), 1000px);
    padding: 0;
    width: min-content;
}

/* Keep equal gutters while the assignment frame is below its preferred width. */
@media (max-width: 1000px) {
    body.layout-standard .container,
    body.layout-standard .walkthrough {
        min-width: 700px;
        width: calc(100% - 20px);
    }
}

body:not(.layout-standard) {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    line-height: normal;
    margin: 70px 10px 20px;
    max-width: calc(100vw - 20px);
    min-width: clamp(700px, calc(100vw - 20px), 1000px);
    padding: 1rem;
    width: min-content;
}

/* Preserve the established Content/Learning Activity page rhythm. */
body:not(.layout-standard) h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 15px 0 25px;
    text-align: center;
}

body:not(.layout-standard) h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0.83em 0 8px;
}

body:not(.layout-standard) h3 {
    background: #005daa;
    box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 1em 0;
    padding: 6px;
}

body:not(.layout-standard) h4 {
    display: table;
    font-style: italic;
    font-weight: 400;
    margin: 20px 5%;
}

@media (max-width: 1000px) {
    body:not(.layout-standard) {
        min-width: 700px;
        width: calc(100% - 20px);
    }
}

.top-bar {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.intro,
.section-card,
.overview-area,
.summary-area {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    box-sizing: border-box;
    color: var(--text-primary);
    margin: 0.85rem 0;
    padding: 1rem;
}

.section-card > :first-child,
.note > :first-child {
    margin-top: 0;
}

.section-card > :last-child,
.note > :last-child {
    margin-bottom: 0;
}

.walkthrough-task > .section-card,
.task-content,
.task-support,
.task-resources,
.related-pages,
.refresher-resources {
    min-width: 0;
}

.overview-user-story,
.overview-preparation,
.learner-actions,
.task-submission-block {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
}

.summary-area {
    margin-top: 1rem;
}

/* ==========================================================================
   Links and resource cards
   ========================================================================== */

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

.actionLink {
    align-items: center;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-left: 0.4rem solid #005daa;
    border-radius: 0.4rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14);
    color: var(--link-color);
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    gap: 0.75rem;
    line-height: 1.35;
    margin: 0.65rem 0;
    max-width: 60rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease,
        box-shadow 0.15s ease, transform 0.15s ease;
}

.actionLink:hover {
    background: var(--surface-2);
    border-color: #005daa;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transform: translateY(-1px);
}

.actionLink .fa {
    flex: 0 0 auto;
    font-size: 1.35em;
}

.related-pages-card,
.refresher-resources,
.resource-card {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 0.35rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0.65rem 0;
    padding: 0.6rem 0.8rem;
}

.resource-card-title,
.callout-title {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.related-pages-card ul,
.refresher-resources ul,
.resource-link-list {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
}

.related-pages-card li,
.refresher-resources li {
    line-height: 1.4;
    margin: 0.2rem 0;
}

.external-page-link {
    align-items: baseline;
    display: inline-flex;
    gap: 0.3rem;
    max-width: 100%;
}

.external-page-link::after {
    content: "↗";
    flex: 0 0 auto;
    font-size: 0.82em;
    font-weight: 700;
    line-height: 1;
}

.link-row {
    margin: 0.25rem 0;
}

/* ==========================================================================
   Walkthrough numbering and checklists
   ========================================================================== */

.walkthrough-steps,
.task-list,
.overview-list,
.checklist,
.checklist ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.walkthrough-steps {
    counter-reset: section;
}

.walkthrough-steps > li {
    counter-increment: section;
}

.walkthrough-steps > li > .section-card > h2::before {
    content: counter(section) ". ";
}

.task-list {
    counter-reset: task;
}

.task-list > li {
    counter-increment: task;
}

.task-list > li > ol {
    counter-reset: detail;
    list-style: none;
    margin: 0;
    padding: 0;
}

.task-list > li > ol > li {
    counter-increment: detail;
}

.task-list > li > .row .label-text::before,
.task-list > li > ol > li > .row .label-text::before {
    color: var(--text-primary);
    display: inline-block;
    flex: 0 0 2.25em;
    font-weight: 700;
    min-width: 2.25em;
}

.task-list > li > .row .label-text::before {
    content: counter(task, lower-alpha) ". ";
}

.task-list > li > ol > li > .row .label-text::before {
    content: counter(detail) ". ";
}

.row {
    align-items: flex-start;
    background: var(--row-odd-bg);
    border-radius: 0.3rem;
    box-sizing: border-box;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    margin: 0.25rem 0;
    padding: 0.65rem;
}

.checklist li:nth-child(even) > .row,
.task-list > li:nth-child(even) > .row {
    background: var(--row-even-bg);
}

.row input[type="checkbox"] {
    accent-color: var(--checkbox-accent);
    flex: 0 0 auto;
    height: 1.15rem;
    margin: 0.2rem 0.7rem 0 0;
    width: 1.15rem;
}

.label-text {
    display: inline;
    min-width: 0;
}

.level-1 {
    font-weight: 700;
    padding-left: 0.35rem;
}

.level-2 {
    padding-left: 1.5rem;
}

.level-3 {
    padding-left: 2.75rem;
}

.level-4 {
    padding-left: 4rem;
}

.level-5 {
    padding-left: 5.25rem;
}

/* ==========================================================================
   Notes and status callouts
   ========================================================================== */

.note {
    background: var(--surface-2);
    border-left: 0.35rem solid var(--border-color);
    border-radius: 0.3rem;
    box-sizing: border-box;
    color: var(--text-primary);
    margin: 0.65rem 0;
    padding: 0.75rem 0.9rem;
}

.note.info {
    background: var(--info-bg);
    border-left-color: var(--info-border);
}

.note.warning {
    background: var(--warning-bg);
    border-left-color: var(--warning-border);
}

.note.critical {
    background: var(--critical-bg);
    border-left-color: var(--critical-border);
}

.note.success,
.success {
    background: var(--success-bg);
    border-left-color: var(--success-border);
}

.note.level-2 {
    padding-left: 1.5rem;
}

.note.level-3 {
    padding-left: 2.75rem;
}

.note.level-4 {
    padding-left: 4rem;
}

.note.level-5 {
    padding-left: 5.25rem;
}

/* ==========================================================================
   Code
   ========================================================================== */

code,
pre,
samp,
.file-pill {
    font-family: var(--font-mono);
}

code {
    font-size: 0.95em;
}

code:not(pre code) {
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 0.2rem;
    color: var(--text-primary);
    padding: 0.05em 0.25em;
}

pre {
    white-space: pre;
}

pre.code-block,
.code-frame__body,
.code-example > pre.code-frame {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    color: var(--code-text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.65rem 0;
    overflow-x: auto;
    padding: 1rem;
    tab-size: 4;
}

pre.code-block code,
.code-frame__body code,
.code-example > pre.code-frame > code {
    background: transparent;
    border: 0;
    color: inherit;
    display: block;
    font: inherit;
    padding: 0;
}

.code-frame {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0.65rem 0;
    max-width: none;
    overflow: visible;
}

.code-frame__header,
.code-label {
    display: none;
}

.file-pill {
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-primary);
    display: inline-block;
    font-size: 0.9em;
    margin: 0.1rem;
    padding: 0.1rem 0.5rem;
}

/* Pygments tokens used by the assignment generator. */
.highlighted-code :is(.k, .kd, .kn, .kp, .kr, .kt),
.code-frame__body :is(.tok-k, .tok-kc, .tok-kd, .tok-kn, .tok-kp, .tok-kr, .tok-kt) {
    color: #003f9e;
    font-weight: 700;
}

.highlighted-code :is(.s, .s1, .s2),
.code-frame__body :is(.tok-s, .tok-s1, .tok-s2, .tok-sa, .tok-sb, .tok-sc, .tok-dl, .tok-sd, .tok-se, .tok-sh, .tok-si, .tok-sr, .tok-ss) {
    color: #8a2d00;
}

.highlighted-code :is(.c, .c1, .cm, .cp),
.code-frame__body :is(.tok-c, .tok-c1, .tok-cm, .tok-cp, .tok-ch, .tok-cpf, .tok-cs) {
    color: #436b3a;
    font-style: italic;
}

.highlighted-code :is(.m, .mi, .mf),
.code-frame__body :is(.tok-m, .tok-mb, .tok-mf, .tok-mh, .tok-mi, .tok-mo, .tok-il) {
    color: #6c2aa5;
}

.highlighted-code :is(.nc, .nf, .nn),
.code-frame__body :is(.tok-nc, .tok-nf, .tok-nn) {
    color: #005a70;
}

body.dark-mode .highlighted-code :is(.k, .kd, .kn, .kp, .kr, .kt),
body.dark-mode .code-frame__body :is(.tok-k, .tok-kc, .tok-kd, .tok-kn, .tok-kp, .tok-kr, .tok-kt) {
    color: #7fb7ff;
}

body.dark-mode .highlighted-code :is(.s, .s1, .s2),
body.dark-mode .code-frame__body :is(.tok-s, .tok-s1, .tok-s2, .tok-sa, .tok-sb, .tok-sc, .tok-dl, .tok-sd, .tok-se, .tok-sh, .tok-si, .tok-sr, .tok-ss) {
    color: #ffb07c;
}

body.dark-mode .highlighted-code :is(.c, .c1, .cm, .cp),
body.dark-mode .code-frame__body :is(.tok-c, .tok-c1, .tok-cm, .tok-cp, .tok-ch, .tok-cpf, .tok-cs) {
    color: #9dcc8f;
}

body.dark-mode .highlighted-code :is(.m, .mi, .mf),
body.dark-mode .code-frame__body :is(.tok-m, .tok-mb, .tok-mf, .tok-mh, .tok-mi, .tok-mo, .tok-il) {
    color: #d4a2ff;
}

body.dark-mode .highlighted-code :is(.nc, .nf, .nn),
body.dark-mode .code-frame__body :is(.tok-nc, .tok-nf, .tok-nn) {
    color: #77d7ea;
}

.sample-written-model,
samp {
    display: block;
    overflow-x: auto;
    white-space: normal;
}

/* ==========================================================================
   Images, screenshots, and UML diagrams
   ========================================================================== */

.image-block {
    box-sizing: border-box;
    margin: 0.75rem 0;
    max-width: none;
}

.image-block img {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    box-sizing: border-box;
    display: block;
    height: auto;
    max-height: none;
    max-width: calc(100% - 10px);
    object-fit: contain;
    padding: 0.35rem;
    width: auto;
}

/*
 * Let an assignment frame grow beyond its preferred 1000px width when a
 * wider image needs the room, while reserving space for the frame and card
 * padding at the edge of the browser window.
 */
body.layout-standard .image-block img,
body:not(.layout-standard) .image-block img {
    max-width: calc(100vw - 6rem);
}

@media (max-width: 1000px) {
    body.layout-standard .image-block img,
    body:not(.layout-standard) .image-block img {
        height: auto;
        max-width: calc(100% - 10px);
        width: auto;
    }
}

.screenshot,
.screenshot-location {
    margin-inline: auto;
}

.screenshot img,
.screenshot-location img,
.vs-screenshot {
    cursor: zoom-in;
    filter: none !important;
}

.screenshot img:focus-visible,
.screenshot-location img:focus-visible,
.vs-screenshot:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

.plantuml-diagram,
.uml-diagram,
.theme-aware-diagram {
    background: transparent;
    box-sizing: border-box;
    margin: 0.75rem 0;
    max-width: 100%;
    overflow-x: auto;
}

.plantuml-diagram img,
.uml-diagram img,
.theme-aware-diagram .diagram-active-image,
.ending-diagram img {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
    height: auto;
    margin: 0;
    max-height: none;
    max-width: 100%;
    object-fit: contain;
    padding: 0;
    width: auto;
}

.diagram-change-legend,
.diagram-legend-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
}

.diagram-legend-item,
.legend-item {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
}

.diagram-marker,
.legend-new-marker {
    border: 1px solid transparent;
    border-radius: 0.12rem;
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 0.85rem;
    height: 0.85rem;
    min-height: 0.85rem;
    min-width: 0.85rem;
    width: 0.85rem;
}

.diagram-marker-n,
.legend-new-marker {
    background: #2e9d50;
    border-color: #16652f;
    color: #fff;
}

.diagram-marker-c {
    background: #246fbd;
    border-color: #164a80;
    color: #fff;
}

.diagram-marker-r {
    background: #c83a3a;
    border-color: #852323;
    color: #fff;
}

.legend-letter-marker {
    align-items: center;
    display: none;
    font-size: 0.72rem;
    justify-content: center;
    line-height: 1;
}

.legend-color-marker {
    display: inline-flex;
}

body.diagram-accessible .legend-color-marker {
    display: none;
}

body.diagram-accessible .legend-letter-marker {
    display: inline-flex;
}

/* ==========================================================================
   Options menu
   ========================================================================== */

.options {
    margin-left: auto;
    position: relative;
}

#optionsBtn,
.option-action {
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 700;
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
}

.options-menu {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    box-shadow: var(--panel-shadow);
    box-sizing: border-box;
    color: var(--text-primary);
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    width: min(22rem, calc(100vw - 2rem));
    z-index: var(--tooltip-z-index);
}

.options-menu.hidden,
.hidden {
    display: none;
}

.option-control {
    align-items: flex-start;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: auto minmax(0, 1fr);
    line-height: 1.35;
}

.option-line {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

.option-description {
    color: var(--text-secondary);
    display: block;
    font-size: 0.875rem;
    margin: -0.35rem 0 0 1.65rem;
}

#resetBtn {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}

#resetBtn:hover {
    background: #8f1c13;
}

.option-help {
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: help;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    height: 1.15rem;
    justify-content: center;
    padding: 0;
    width: 1.15rem;
}

.help-tooltip {
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 0.35rem;
    box-shadow: var(--panel-shadow);
    color: var(--text-primary);
    display: none;
    font-size: 0.875rem;
    padding: 0.65rem 0.75rem;
}

.help-tooltip.is-visible {
    display: block;
}

/* ==========================================================================
   Screenshot lightbox
   ========================================================================== */

.image-lightbox {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 5000;
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox-backdrop {
    background: rgba(0, 0, 0, 0.82);
    border: 0;
    cursor: zoom-out;
    inset: 0;
    padding: 0;
    position: absolute;
}

.image-lightbox-panel {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    height: min(92vh, 64rem);
    max-width: 96vw;
    overflow: hidden;
    position: relative;
    width: min(96vw, 90rem);
    z-index: 1;
}

.image-lightbox-toolbar {
    align-items: center;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.65rem 0.8rem;
}

.image-lightbox-controls {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

.lightbox-control {
    align-items: center;
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    min-height: 2.2rem;
    min-width: 2.5rem;
    padding: 0.35rem 0.6rem;
}

.lightbox-close {
    font-size: 1.45rem;
    line-height: 1;
}

.image-lightbox-viewport {
    align-items: flex-start;
    background: #111;
    display: flex;
    flex: 1;
    justify-content: center;
    overflow: auto;
    padding: 1rem;
}

.image-lightbox-image {
    display: block;
    height: auto;
    max-width: none;
    transform-origin: top center;
    user-select: none;
}

.image-lightbox-hint {
    background: var(--surface-2);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    margin: 0;
    padding: 0.55rem 0.8rem;
    text-align: center;
}

body.lightbox-open {
    overflow: hidden;
}

/* ==========================================================================
   Tables, navigation, and utilities
   ========================================================================== */

table {
    background: var(--surface-1);
    border-collapse: collapse;
    margin: 0.75rem 0;
    width: 100%;
}

th,
td {
    border: 1px solid var(--border-color);
    padding: 0.55rem;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--surface-2);
    font-weight: 700;
}

blockquote {
    border-left: 0.3rem solid var(--border-color);
    color: var(--text-secondary);
    margin: 0.75rem 0;
    padding: 0.25rem 1rem;
}

.go-to-top,
.back-to-top a {
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    color: var(--text-primary);
    display: inline-block;
    font-weight: 700;
    margin-top: 0.75rem;
    padding: 0.45rem 0.7rem;
}

.footer,
footer {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1.25rem;
    text-align: center;
}

.navBar {
    align-items: center;
    background: #005daa;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    inset: 0 0 auto;
    justify-content: center;
    line-height: normal;
    list-style: none;
    margin: 0;
    padding: 0;
    position: fixed;
    width: 100%;
    z-index: 100;
}

.navList {
    display: inline-block;
    margin: 0;
    padding: 10px;
}

.heading {
    color: #fff;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    padding-inline: 5px;
    text-align: center;
}

.heading:hover {
    color: #cbe7ff;
    text-decoration: none;
}

.fa-caret-down {
    padding: 0 5px;
}

.dropdown-content,
.rightDropdown {
    background: #f9f9f9;
    box-shadow: var(--panel-shadow);
    display: none;
    padding: 5px;
    position: absolute;
    width: 16rem;
    z-index: 101;
}

.navList:hover .dropdown-content,
.dropdown-content a:hover + .rightDropdown {
    display: block;
}

.dropdown-content a {
    color: #17212b;
    display: block;
    padding: 10px;
}

.dropdown-content a:hover {
    background: #005daa;
    color: #fff;
    text-decoration: none;
}

.pageLink {
    display: block;
    margin-block: 0.65rem;
}

#instructors {
    float: right;
    width: 12%;
}

#leftInfo {
    float: left;
    width: 85%;
}

#navInfo {
    font-size: 1.1rem;
    list-style: none;
}

#container,
#assignmentContainer,
.readDiv {
    display: flex;
    flex-flow: row wrap;
}

#container {
    justify-content: center;
}

#assignmentContainer {
    justify-content: space-evenly;
    width: 95%;
}

.topic {
    display: inline-flex;
    flex-direction: column;
    width: 37.5rem;
}

.readDiv {
    justify-content: space-between;
    margin-inline: auto;
}

.read {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 0.4rem;
    display: inline-flex;
    margin-inline: 0.65rem;
    width: 50%;
}

.assignmentTrack {
    margin: 0.65rem;
    width: 25rem;
}

/* ==========================================================================
   Responsive and print presentation
   ========================================================================== */

@media (max-width: 48rem) {
    .top-bar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .options-menu {
        max-width: calc(100vw - 1rem);
        width: 19rem;
    }

    .level-2 {
        padding-left: 0.75rem;
    }

    .level-3,
    .level-4,
    .level-5 {
        padding-left: 1.25rem;
    }

    .image-block img,
    .screenshot img,
    .screenshot-location img,
    .vs-screenshot {
        max-width: 100%;
    }

    .image-lightbox {
        padding: 0;
    }

    .image-lightbox-panel {
        border-radius: 0;
        height: 100vh;
        max-width: 100vw;
        width: 100vw;
    }

    .image-lightbox-controls {
        width: 100%;
    }

    .lightbox-control {
        flex: 1;
    }

    .readDiv {
        display: block;
    }

    .read,
    .topic,
    .assignmentTrack {
        box-sizing: border-box;
        margin-inline: 0;
        width: 100%;
    }
}

@media print {
    :root {
        --surface-0: #fff;
        --surface-1: #fff;
        --surface-2: #fff;
        --text-primary: #000;
        --text-secondary: #333;
        --border-color: #777;
        --link-color: #000;
    }

    body,
    body.dark-mode {
        background: #fff !important;
        color: #000 !important;
    }

    .options,
    .options-menu,
    .image-lightbox,
    input[type="checkbox"],
    .back-to-top,
    .go-to-top {
        display: none !important;
    }

    main.container,
    .walkthrough {
        margin: 0;
        max-width: none;
        width: 100%;
    }

    .section-card,
    .note,
    .task-resources,
    .task-support {
        break-inside: avoid;
        box-shadow: none !important;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    pre,
    code {
        white-space: pre-wrap;
        word-break: break-word;
    }
}
