body.cadtb-exams-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
        #0b7c7e;
}

body.cadtb-exams-page .site-footer-nav {
    display: none;
}

.cadtb-exams-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 18px 72px;
    color: #111;
}

.cadtb-exams-window {
    max-width: 1120px;
    margin: 18px auto 48px;
}

.cadtb-exams-window .window-body {
    max-height: none;
    overflow: visible;
}

.cadtb-hero,
.cadtb-panel,
.cadtb-card {
    background: #fff;
    border: 2px solid #111;
    box-shadow: 4px 4px 0 #111;
}

.cadtb-hero {
    padding: 28px;
    margin-bottom: 24px;
}

.cadtb-hero h1,
.cadtb-panel h2,
.cadtb-card h2 {
    margin: 0 0 12px;
    line-height: 1.1;
}

.cadtb-hero h1 {
    font-size: 1.75rem;
}

.cadtb-card h2 {
    font-size: 1.5rem;
}

.cadtb-exams-route .cadtb-question h3 {
    font-size: 1.05rem;
    line-height: 1.45;
    margin: 0 0 14px;
}

.cadtb-hero p,
.cadtb-panel p,
.cadtb-card p {
    max-width: 780px;
}

.cadtb-kicker,
.cadtb-muted,
.cadtb-scenario {
    color: #4b5563;
}

.cadtb-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .78rem;
}

.cadtb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.cadtb-card,
.cadtb-panel {
    padding: 22px;
    margin-bottom: 22px;
}

.cadtb-button,
.cadtb-check-answer,
.cadtb-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 2px solid #111;
    background: #111;
    color: #fff;
    padding: 8px 14px;
    text-decoration: none;
    cursor: pointer;
}

.cadtb-button-secondary {
    background: #fff;
    color: #111;
}

.cadtb-actions,
.cadtb-cram-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cadtb-objectives,
.cadtb-days,
.cadtb-module-list,
.cadtb-case-studies {
    display: grid;
    gap: 16px;
}

.cadtb-objectives,
.cadtb-days {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cadtb-objectives article,
.cadtb-days article,
.cadtb-study-block,
.cadtb-question,
.cadtb-module,
.cadtb-case-study,
.cadtb-ebook-intro {
    border: 1px solid #111;
    padding: 16px;
    background: #f8fafc;
}

.cadtb-ebook-intro {
    margin-bottom: 16px;
}

.cadtb-module summary,
.cadtb-case-study summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-weight: 700;
}

.cadtb-module .cadtb-quiz-list {
    margin-top: 16px;
}

.cadtb-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.cadtb-case-grid article {
    background: #fff;
    border: 1px solid #9ca3af;
    padding: 12px;
}

.cadtb-exams-route .cadtb-options {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.cadtb-exams-route .cadtb-options .cadtb-option {
    position: relative;
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    width: 100%;
    max-width: none;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #9ca3af;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
    line-height: 1.35;
    white-space: normal;
}

.cadtb-exams-route .cadtb-options input[type="radio"],
.cadtb-exams-route .cadtb-options input[type="checkbox"] {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.cadtb-exams-route .cadtb-options .cadtb-choice-indicator {
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid #111;
    background: #fff;
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
    box-sizing: border-box;
}

.cadtb-exams-route .cadtb-options input[type="radio"] + .cadtb-choice-indicator {
    border-radius: 999px;
}

.cadtb-exams-route .cadtb-options input:checked + .cadtb-choice-indicator {
    background: #111;
    box-shadow: inset 0 0 0 4px #fff;
}

.cadtb-exams-route .cadtb-options input:focus-visible + .cadtb-choice-indicator {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

.cadtb-exams-route .cadtb-options .cadtb-option.is-selected,
.cadtb-exams-route .cadtb-options .cadtb-option:has(input:checked) {
    border-color: #111;
    background: #eef6ff;
    box-shadow: inset 2px 2px 0 #d1d5db;
}

.cadtb-exams-route .cadtb-options .cadtb-option-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow-wrap: break-word;
    word-break: normal;
}

.cadtb-feedback {
    min-height: 24px;
    margin-bottom: 0;
}

.cadtb-question.is-correct {
    border-color: #15803d;
}

.cadtb-question.is-wrong {
    border-color: #b91c1c;
}

.cadtb-explanation {
    border-left: 4px solid #111;
    padding-left: 12px;
}

.cadtb-sources {
    overflow-wrap: anywhere;
}

@media print {
    header,
    footer,
    .cadtb-actions,
    .cadtb-quiz,
    .cadtb-sources,
    .cadtb-print {
        display: none !important;
    }

    .cadtb-exams-shell {
        max-width: none;
        padding: 0;
    }

    .cadtb-hero,
    .cadtb-panel,
    .cadtb-card {
        border: 0;
        box-shadow: none;
        break-inside: avoid;
    }
}

@media (max-width: 640px) {
    .cadtb-hero,
    .cadtb-panel,
    .cadtb-card {
        padding: 16px;
        box-shadow: 3px 3px 0 #111;
    }
}
