.ju-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 14px 60px;
}

.ju-hero {
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(145deg, #09184a, #07133a);
    color: #eef4ff;
    margin-bottom: 22px;
}

.ju-hero .ju-eyebrow {
    color: #fcda40;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ju-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.1;
}

.ju-hero p {
    margin: 0;
    max-width: 720px;
    color: #517dec;
    line-height: 1.6;
}

.ju-breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
    color: #517dec;
}

.ju-breadcrumb a {
    color: #2d62e8;
    text-decoration: none;
    font-weight: 700;
}

.ju-breadcrumb a:hover {
    text-decoration: underline;
}

.ju-breadcrumb span {
    color: #99a3b0;
    margin: 0 6px;
}

.ju-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ju-course-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ju-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.ju-course-icon {
    font-size: 30px;
    margin-bottom: 12px;
}

.ju-course-card-thumb {
    margin: -20px -20px 14px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    line-height: 0;
    background: #07133a;
}

.ju-course-card-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.ju-hero-media {
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    background: #000;
}

.ju-hero-media img,
.ju-hero-media video {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.ju-lesson-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    background: #07133a;
}

.ju-lesson-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ju-lesson-media {
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
    line-height: 0;
    background: #000;
}

.ju-lesson-media img,
.ju-lesson-media video {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.ju-course-card h2 {
    margin: 0 0 6px;
    font-size: 17px;
}

.ju-course-card p {
    margin: 0 0 14px;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
}

.ju-course-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ju-course-badge-ready {
    /* #0a3bb7 measured at 3.86:1 against this background -- fails WCAG AA
       (4.5:1) for this badge's small bold uppercase text. Darkened to
       #062779 (7.13:1). */
    background: rgba(51, 214, 166, 0.12);
    color: #062779;
}

.ju-course-badge-soon {
    /* #142f72 measured at 4.30:1 against this background -- just under
       WCAG AA. Darkened to #7a4f00 (6.55:1). */
    background: rgba(251,223,112,0.16);
    color: #7a4f00;
}

.ju-lesson-list {
    display: grid;
    gap: 10px;
}

.ju-lesson-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.ju-lesson-row:hover {
    border-color: rgba(45,98,232,0.4);
}

.ju-lesson-number {
    font-size: 20px;
    font-weight: 900;
    color: #2d62e8;
    min-width: 34px;
}

.ju-lesson-row strong {
    display: block;
    font-size: 14px;
}

.ju-lesson-row span {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-top: 3px;
}

.ju-lesson-body {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.ju-lesson-body h1 {
    margin: 0 0 10px;
    font-size: 24px;
}

.ju-lesson-briefing {
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.ju-lesson-full-body {
    color: #333;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    white-space: pre-wrap;
}

.ju-inline-figure {
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 4px auto 18px;
    border-radius: 12px;
}

.ju-table {
    /* Overrides .ju-lesson-full-body's white-space: pre-wrap so this
     * block's own internal structure isn't rendered as literal
     * whitespace -- layout here comes from the table markup, not from
     * preserved newlines. */
    white-space: normal;
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 20px;
    font-size: 13px;
}

.ju-table th,
.ju-table td {
    padding: 9px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

.ju-table thead th {
    background: #f5f8fc;
    color: #0c2060;
    font-weight: 700;
}

.ju-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.ju-key-points {
    margin: 0 0 18px;
    padding-left: 20px;
}

.ju-key-points li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.ju-student-note {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f5f8fc;
    color: #445;
    font-size: 13px;
    font-style: italic;
}

.ju-empty-state {
    padding: 40px;
    text-align: center;
    color: #667085;
    border-radius: 18px;
    border: 1px dashed rgba(0, 0, 0, 0.14);
}

@media (max-width: 900px) {
    .ju-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ju-course-grid {
        grid-template-columns: 1fr;
    }

    .ju-hero {
        padding: 22px;
    }
}

.ju-cert-panel {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #09184a;
    color: #eef4ff;
}

.ju-cert-panel h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.ju-cert-panel p {
    margin: 0 0 16px;
    color: #517dec;
    font-size: 13px;
    line-height: 1.6;
}

.ju-cert-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ju-cert-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.ju-cert-badge-pass {
    background: rgba(10,59,183,0.18);
    color: #4ade80;
}

.ju-cert-badge-pending {
    background: rgba(255, 255, 255, 0.08);
    color: #517dec;
}

.ju-cert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ju-exam-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ju-exam-question {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0;
    background: #fff;
}

.ju-exam-question-title {
    font-weight: 600;
    margin: 0 0 12px;
    color: #0b1d59;
    font-size: 15px;
    line-height: 1.5;
}

.ju-exam-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.ju-exam-choice input {
    width: auto;
}

.ju-exam-result {
    margin-top: 20px;
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    background: #09184a;
    color: #eef4ff;
}

.ju-exam-result h2 {
    margin: 0 0 8px;
    color: #eef4ff;
}

.ju-exam-result p {
    margin: 0 0 16px;
    color: #517dec;
}

.ju-exam-result-pass {
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35);
}

.ju-exam-result-fail {
    box-shadow: inset 0 0 0 1px rgba(245,116,134,0.35);
}

.ju-pledge-signer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #09184a;
    color: #eef4ff;
    font-size: 14px;
}

.ju-pledge-signer-label {
    color: #fcda40;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ju-pledge-signer-context {
    color: #517dec;
    font-size: 13px;
}

.ju-pledge-body {
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #f5f8fc;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ju-lesson-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ju-lesson-nav-prev,
.ju-lesson-nav-next {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    text-decoration: none;
    color: #2d62e8;
    font-size: 13px;
    font-weight: 700;
    max-width: 46%;
}

.ju-lesson-nav-prev span,
.ju-lesson-nav-next span {
    color: #09184a;
    font-weight: 600;
}

.ju-lesson-nav-prev:hover,
.ju-lesson-nav-next:hover {
    border-color: rgba(45,98,232,0.4);
}

.ju-lesson-nav-next {
    margin-left: auto;
    text-align: right;
    flex-direction: row-reverse;
}

.ju-lesson-nav-exam {
    background: #09184a;
    border-color: #09184a;
    color: #fcda40;
}

.ju-lesson-nav-exam span {
    color: #eef4ff;
}

@media (max-width: 640px) {
    .ju-lesson-nav-prev span,
    .ju-lesson-nav-next span {
        display: none;
    }
}

/* Course progress on the hub cards + exam result extras (DHODS, FMC Leaders 2026-10-01) */
.ju-course-progress { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.ju-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; background: rgba(9,23,71,.08); color: #112d88; }
.ju-chip-done { background: rgba(34, 197, 94, .16); color: #112d88; }
.ju-chip-try { background: rgba(31,71,174,.16); color: #173581; }
.ju-retake { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; border: 1px solid currentColor; color: #0a3fc3; cursor: pointer; }
.ju-retake:hover, .ju-retake:focus-visible { background: rgba(10,63,195,.1); outline: none; }
.ju-cert-box { margin: 14px auto 16px; padding: 16px; max-width: 560px; border-radius: 14px; background: rgba(252,216,54,.08); border: 1px solid rgba(252,216,54,.35); }
.ju-cert-title { font-weight: 800; color: #fcda40; margin-bottom: 4px; }
.ju-cert-no { color: #dbe7f5; margin-bottom: 12px; }
.ju-cert-actions, .ju-exam-result-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ju-exam-result-actions { margin-top: 14px; }
.ju-review { margin: 16px auto 4px; max-width: 640px; text-align: left; }
.ju-review h3 { margin: 0 0 10px; font-size: 15px; color: #eef4ff; }
.ju-review-ok { text-align: center; color: #86efac !important; font-weight: 700; }
.ju-review-item { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.ju-review-q { font-weight: 700; color: #eef4ff; margin-bottom: 4px; }
.ju-review-a { font-size: 13px; }
.ju-review-wrong { color: #fca5a5; }
.ju-review-right { color: #86efac; }

/* Certification panel buttons: these are plain <a class="btn"> links and had no styling of their own (default link blue on navy). */
.ju-cert-actions .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 999px; background: #ce112a; border: 1px solid #ce112a; color: #ffffff; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.ju-cert-actions .btn:hover { filter: brightness(1.08); }
.ju-cert-actions .btn.secondary { background: transparent; border-color: rgba(255, 255, 255, .55); color: #ffffff; }


/* Progress tracking (2026-10-05) */
.ju-progress { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: #475569; }
.ju-progress-bar { flex: 1; height: 7px; border-radius: 999px; background: rgba(9,23,71,.1); overflow: hidden; min-width: 60px; }
.ju-progress-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2d62e8, #22c55e); }
.ju-progress-lg { margin-top: 0; font-size: 13px; flex: 1; }
.ju-progress-lg .ju-progress-bar { height: 10px; }
.ju-course-progress-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(0, 0, 0, .08); background: #fff; }
.ju-continue { white-space: nowrap; }
.ju-lesson-row-done .ju-lesson-number { background: #22c55e; color: #fff; }
.ju-complete-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 26px; }

/* Annual refresher (2026-10-05) */
.ju-refresher-card { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(45,98,232,.25); background: rgba(45,98,232,.07); text-decoration: none; color: inherit; }
.ju-refresher-card strong { display: block; font-size: 15px; }
.ju-refresher-card span span { font-size: 13px; color: #475569; }
.ju-refresher-ic { font-size: 26px; }
.ju-refresher-go { margin-left: auto; font-weight: 800; color: #2d62e8; }
.ju-refresher-due { border-color: rgba(30,69,167,.45); background: rgba(30,69,167,.09); }
.ju-refresher-year { margin: 26px 0 8px; font-size: 20px; }
.ju-refresher-entry { padding: 16px 18px; margin: 10px 0; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .08); background: #fff; }
.ju-refresher-entry h3 { margin: 8px 0 6px; font-size: 16px; }
.ju-refresher-entry p { margin: 0 0 6px; line-height: 1.55; }
.ju-refresher-entry small { color: #64748b; font-weight: 700; }
.ju-chip-new { background: rgba(34, 197, 94, .16); color: #112d88; }
.ju-chip-update { background: rgba(45,98,232,.14); color: #0c4be9; }
.ju-chip-correction { background: rgba(234,189,8,.2); color: #132d6d; }

/* Solid surfaces + explicit text colors so the progress and refresher cards stay readable on every page theme (2026-10-05) */
.ju-refresher-card { background: #ffffff; color: #09184a; border-color: rgba(45,98,232,.45); }
.ju-refresher-card strong { color: #09184a; }
.ju-refresher-card span span { color: #475569; }
.ju-refresher-due { background: #fff4ec; border-color: rgba(30,69,167,.55); }
.ju-course-progress-panel { background: #ffffff; color: #09184a; }
.ju-progress { color: #112d88; }
.ju-refresher-entry { color: #09184a; }
.ju-refresher-entry p { color: #0c2164; }
.ju-refresher-year { color: #ffffff; }
.ju-complete-bar .ju-chip { background: #ffffff; }

/* Primary buttons for progress and refresher actions */
.ju-continue, .ju-complete-bar .btn, .ju-refresher-card + .ju-refresher-card .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 12px; background: #2d62e8; color: #ffffff !important; font-weight: 800; font-size: 14px; text-decoration: none; border: 0; cursor: pointer; }
.ju-continue:hover, .ju-complete-bar .btn:hover { background: #0833a0; }
.ju-complete-bar a.btn { background: #2d62e8; color: #ffffff !important; }
@media (max-width: 600px) { .ju-complete-bar { justify-content: stretch; } .ju-complete-bar .btn, .ju-continue { width: 100%; } .ju-course-progress-panel { flex-direction: column; align-items: stretch; } }

/* Lesson diagrams are 16:9 pictures with text in them: show them whole (never cropped) at a readable size, centered */
.ju-lesson-media { background: #eef3f9; text-align: center; }
.ju-lesson-media img { width: 100%; max-width: 920px; height: auto; max-height: none; object-fit: contain; margin: 0 auto; }
.ju-lesson-media video { object-fit: contain; max-height: 520px; background: #000; }

/* Contrast fixes (2026-10-11): breadcrumb readable on the dark and blue page backgrounds; What's-new lesson tag */
.ju-breadcrumb { color: #dbe7fb; }
.ju-breadcrumb a { color: #a9d0ff; }
.ju-breadcrumb span { color: #c3cfe3; }
.ju-refresher-ln { display: inline-block; margin-top: 2px; color: #475569; font-size: 13px; font-weight: 700; }

/* Comfortable tap targets on phones (2026-10-11) */
@media (max-width: 700px) {
    .ju-breadcrumb a { display: inline-block; padding: 12px 4px; }
    .ju-retake { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; }
    .ju-exam-form .btn, .ju-exam-form button[type=submit], .ju-complete-bar .btn, .ju-lesson-nav a { min-height: 46px; }
    .ju-chip { padding: 6px 12px; }
}
