.hm-report-benchmark {
    display: block;
    margin-top: 0.55rem;
}

.hm-report-benchmark-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.3rem;
}

.hm-report-benchmark-label {
    width: 2.9rem;
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.hm-report-benchmark-track {
    flex: 1;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(171, 184, 208, 0.28);
}

.hm-report-benchmark-fill {
    display: block;
    height: 100%;
    width: var(--benchmark-width, 0%);
    transform-origin: left center;
    transform: scaleX(0);
    animation: hm-report-bar-grow 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--benchmark-delay, 0ms);
}

.hm-report-benchmark-fill--student {
    background: linear-gradient(90deg, #0d6efd, #5aa6ff);
}

.hm-report-benchmark-fill--average {
    background: linear-gradient(90deg, #94a3b8, #c2cfdd);
}

.hm-report-benchmark-fill--highest {
    background: #687384;
}

.hm-report-benchmark-value {
    min-width: 3.5rem;
    text-align: right;
    font-size: 0.72rem;
    color: #5b6778;
}

.hm-report-comparison {
    display: block;
    line-height: 1.4;
}

.hm-report-comparison--amber {
    color: #173b61;
    font-weight: 700;
}

.hm-report-comparison--green {
    color: #146c43;
}

.hm-report-comparison--red {
    color: #b02a37;
}


/* One title accent; neutral cohort sections; performance colours belong to values. */
.hm-report-class-cell, .hm-report-year-cell { background: transparent !important; color: inherit; }
.hm-report-year-comparison { display: block; margin-top: .35rem; color: #475569; font-weight: 600; }
.hm-report-year-unavailable { color: #64748b; font-size: .82em; font-weight: 400; }
.hm-report-assessment-table .hm-report-section-start, .hm-report-assessment-table [data-section-start],
.hm-report-shell td.hm-report-section-start, .hm-report-shell th.hm-report-section-start { border-left: 2px solid #858b94 !important; }
.hm-report-section-headings th { background: #f1f3f5; color: #334155; text-align: center; }
.hm-report-test-spacer > td { height: .6rem; padding: 0 !important; border: 0 !important; background: #fff !important; }
.hm-report-assessment-table .hm-report-test-title > td { background: #173b61; color: #fff; border: 2px solid #737373 !important; padding: .6rem .75rem !important; }
.hm-report-test-heading { display: flex; align-items: center; justify-content: flex-start; gap: .5rem 1rem; flex-wrap: wrap; max-width: min(56rem, calc(100vw - 9rem)); }
.hm-report-test-heading strong { font-size: 1rem; }
.hm-report-test-feedback { background: #fff; color: #253246 !important; border: 1px solid #cbd5e1; font-size: .82rem; font-weight: 600; white-space: normal; max-width: 100%; }
.hm-report-test-feedback:hover, .hm-report-test-feedback:focus-visible { background: #f1f5f9; outline: 2px solid #fff; outline-offset: 2px; }
.hm-report-test-result > th { white-space: nowrap; font-weight: 400; }
.hm-report-test-result > :first-child { border-left: 2px solid #737373 !important; }
.hm-report-test-result > :last-child { border-right: 2px solid #737373 !important; }
.hm-report-assessment-detail-row > td { background: #fff; border: 2px solid #737373 !important; border-top: 1px solid #d1d5db !important; padding: .25rem .5rem !important; }
.hm-report-test-end > * { border-bottom: 2px solid #737373 !important; }
.hm-report-assessment-detail-row .hm-parent-data-details { padding: 0; border: 0; border-radius: 0; background: transparent; }
.hm-report-assessment-detail-row summary { padding: 0; color: #334155; font-weight: 600; line-height: 1.5; max-width: min(60rem, calc(100vw - 9rem)); white-space: normal; }
.hm-report-assessment-detail-row details[open] [data-parent-marking-detail-content] { padding-top: .75rem; }
.hm-report-starter-table thead th { background: #e9edf2; color: #334155; padding: .6rem; }
.hm-report-starter-table tbody tr:nth-child(odd) > td { background: #f8fafc; }
.hm-report-starter-table tbody tr:nth-child(even) > td { background: #fff; }
.hm-report-starter-table td { padding: .6rem; border-color: #d7dde5; }
.hm-starter-accuracy { font-weight: 600; }
.hm-report-shell .hm-report-benchmark-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(2rem, 1.8fr) minmax(1.8rem, .65fr); gap: .5rem; }
.hm-report-shell .hm-report-benchmark-value { min-width: 0; }
.hm-report-shell .hm-report-benchmark-label { width: auto; min-width: 0; text-transform: none; letter-spacing: 0; white-space: normal; font-size: .71rem; }
.hm-report-benchmark-fill--year-average { background: #94a3b8; }
.hm-report-benchmark-fill--year-highest { background: #475569; }
.hm-report-topic-evidence .hm-report-result--green, .hm-report-topic-evidence .hm-report-result--red,
.hm-report-topic-evidence .hm-report-result--amber { background: transparent !important; color: inherit !important; }
@media print {
    .hm-report-test-title td { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .hm-report-test-feedback { color: #253246 !important; background: #fff; }
}

.hm-report-shell .badge.text-bg-success, .hm-report-shell .badge.text-bg-warning { background: #e9edf2 !important; color: #334155 !important; }

.hm-report-shell .hm-report-question-feedback-table .hm-report-www-heading,
.hm-report-shell .hm-report-question-feedback-table .hm-report-ebi-heading,
.hm-report-shell .hm-report-feedback-cell--www, .hm-report-shell .hm-report-feedback-cell--ebi,
.hm-report-shell .hm-report-feedback-code--www, .hm-report-shell .hm-report-feedback-code--ebi {
    --bs-table-bg: #f8fafc; background: #f8fafc; color: #334155; border-color: #cbd5e1;
}

.hm-report-assessment-table .hm-report-sortable-header { white-space: normal; vertical-align: middle; }

/* Classroom evidence is class-specific; the shared navy denotes section headings. */
.hm-report-shell .hm-report-test-title > td,
.hm-report-shell .hm-report-classroom-source > .hm-parent-source-heading,
.hm-report-shell .hm-report-starter-source > .hm-parent-source-heading,
.hm-report-shell .hm-report-classroom-table thead th,
.hm-report-shell .hm-report-starter-table thead th { background: #173b61; color: #fff; }
.hm-report-shell .hm-report-classroom-table thead .text-muted,
.hm-report-shell .hm-report-starter-table thead .text-muted { color: #dbeafe !important; }
.hm-report-shell .hm-report-classroom-table thead th:hover,
.hm-report-shell .hm-report-starter-table thead th:hover { background: #244b74; color: #fff; }
.hm-report-shell .hm-parent-glance-metric--amber,
.hm-report-shell .hm-parent-glance-metric--amber .hm-report-comparison,
.hm-report-shell .hm-report-result--amber,
.hm-report-shell .hm-report-comparison--amber { color: #173b61 !important; }
.hm-report-shell .hm-parent-colour-key-item--amber { color: #173b61; }
.hm-report-shell .hm-parent-colour-key-item--amber i { background: #d99500; }
.hm-report-shell .hm-report-sortable-header { white-space: normal; overflow-wrap: break-word; vertical-align: middle; line-height: 1.4; }
.hm-report-shell table thead th { white-space: normal; overflow-wrap: break-word; padding: .5rem .6rem; }
.hm-report-shell .hm-report-ao-skills-table { table-layout: auto; min-width: 68rem; width: 100%; }
.hm-report-ao-skills-table thead th[scope="colgroup"] { text-align: center; background: #edf2f7; color: #173b61; }
.hm-report-ao-skills-table thead th:first-child[rowspan] { min-width: 12rem; }
.hm-report-ao-skills-table thead th:nth-child(2)[rowspan] { min-width: 7rem; }
