/* Learning screens: the same palette, typography and simple controls as the homepage. */
.hlh.hlh-learning {
    --hlh-cream: #f6f3eb;
    --hlh-charcoal: #25343b;
    --hlh-orange: #ffb332;
    --hlh-blue: #26abdc;
    background: var(--hlh-cream);
    color: var(--hlh-charcoal);
    max-width: 1180px;
    padding: clamp(20px, 3vw, 40px);
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.65;
    border-radius: 0;
}
.hlh-learning *,
.hlh-learning *::before,
.hlh-learning *::after {
    box-sizing: border-box;
}
.hlh-learning :is(h2, h3, h4, h5, p) {
    font-family: inherit;
    color: inherit;
}
.hlh-learning :is(h2, h3, h4, h5) {
    text-transform: none;
    line-height: 1.3;
    letter-spacing: -0.025em;
}
.hlh-learning h2 {
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 700;
    margin: 0 0 28px;
}
.hlh-learning h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 30px 0 18px;
}
.hlh-learning h4 {
    font-size: 23px;
    font-weight: 600;
    margin: 0 0 16px;
}
.hlh-learning :is(a, button, summary, select):focus-visible {
    outline: 3px solid #08719c;
    outline-offset: 5px;
}
.hlh-learning .hlh-family-bar {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #d6d8d5;
    border-radius: 0;
    padding: 0 0 20px;
    margin: 0 0 30px;
    font-size: 14px;
    color: var(--hlh-charcoal);
}
.hlh-learning .hlh-family-bar strong {
    font-size: 16px;
    font-weight: 600;
}
.hlh-learning .hlh-family-bar a {
    padding: 8px 0;
    text-underline-offset: 4px;
}
.hlh-learning .hlh-library-filters {
    gap: 18px;
    margin: 0 0 38px;
}
.hlh-learning .hlh-library-filters label {
    min-width: 160px;
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    gap: 8px;
}
.hlh-learning .hlh-library-filters select {
    display: block;
    width: 100%;
    height: 50px;
    padding: 10px 14px;
    margin: 0;
    background: #fff;
    border: 1px solid #a3acae;
    border-radius: 8px;
    font-size: 16px;
    color: var(--hlh-charcoal);
}
.hlh-learning button,
.hlh-learning .hlh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid var(--hlh-charcoal);
    border-radius: 8px;
    background: var(--hlh-charcoal);
    color: var(--hlh-cream);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: normal;
}
.hlh-learning .hlh-library-filters button {
    background: var(--hlh-orange);
    color: var(--hlh-charcoal);
    border-color: var(--hlh-orange);
    margin: 0;
}
.hlh-learning .hlh-library-year > h3 {
    margin-top: 0;
}
.hlh-learning details.hlh-library-topic {
    padding: 0;
    border: 0;
    margin: 0 0 34px;
}
.hlh-learning .hlh-library-topic > summary {
    padding: 8px 0 18px;
    font-size: 17px;
    font-weight: 400;
}
.hlh-learning ol.hlh-learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hlh-learning .hlh-learning-grid > li {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.hlh-learning a.hlh-learning-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 230px;
    padding: 30px;
    border-radius: 28px;
    background: var(--hlh-charcoal);
    color: var(--hlh-cream);
    text-decoration: none;
}
.hlh-learning .hlh-learning-card :is(h3, h5) {
    margin: 0 0 20px;
    color: var(--hlh-cream);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}
.hlh-learning .hlh-learning-card p {
    color: var(--hlh-cream);
    font-size: 16px;
    margin: 0 0 24px;
    line-height: 1.65;
}
.hlh-learning .hlh-card-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    min-height: 48px;
    padding: 11px 22px;
    border-radius: 8px;
    background: var(--hlh-cream);
    color: var(--hlh-charcoal);
    font-size: 15px;
    font-weight: 600;
}
.hlh-learning .hlh-learning-card:hover .hlh-card-open {
    background: var(--hlh-orange);
}
.hlh-learning video {
    display: block;
    border-radius: 18px;
    background: var(--hlh-charcoal);
}
.hlh-learning > details,
.hlh-learning [data-hlh-lesson-session] > details {
    padding: 18px 22px;
    border: 1px solid #c8d3d6;
    border-radius: 12px;
    background: #fffdf8;
}
.hlh-learning .hlh-lesson-quiz {
    margin-top: 36px;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 28px;
    background: #fffdf8;
}
.hlh-learning .hlh-lesson-quiz > h3 {
    margin-top: 0;
}
.hlh-learning .hlh-lesson-quiz .hlh-sample-quiz {
    max-width: 740px;
}
.hlh-learning .hlh-quiz-actions .hlh-quiz-secondary {
    background: transparent;
    color: var(--hlh-charcoal);
}
@media (max-width: 700px) {
    .hlh.hlh-learning {
        padding: 20px;
        font-size: 17px;
    }
    .hlh-learning .hlh-library-filters label {
        min-width: calc(50% - 10px);
    }
    .hlh-learning .hlh-library-filters label:last-of-type {
        min-width: 100%;
    }
    .hlh-learning .hlh-library-filters button {
        width: 100%;
    }
}
@media (max-width: 420px) {
    .hlh.hlh-learning {
        padding: 14px;
    }
    .hlh-learning .hlh-family-bar {
        gap: 6px;
        margin-bottom: 24px;
    }
    .hlh-learning .hlh-family-bar a {
        margin: 0 16px 0 0;
    }
    .hlh-learning a.hlh-learning-card {
        padding: 26px;
        border-radius: 24px;
    }
}

/* Assessment content uses the same learning palette and controls. */
.hlh-assessments .hlh-questions label {
    margin: 0;
    border-color: #a3acae;
    border-radius: 12px;
    background: #fffdf8;
}
.hlh-assessments .hlh-questions label:has(input:checked) {
    background: #ffedc7;
    border-color: #93630c;
}
.hlh-assessments .hlh-questions input {
    accent-color: var(--hlh-charcoal);
}
.hlh-assessments .hlh-questions + p {
    margin-top: 24px;
}
.hlh-assessments .hlh-scores article {
    padding: 24px;
    border-color: #d6d8d5;
    border-radius: 22px;
    background: #fffdf8;
}

/* Shared compact header for lessons, papers and progress. */
.hlh-learning .hlh-learning-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin: 0 0 30px;
}
.hlh-learning-header > div {
    min-width: 0;
}
.hlh-learning .hlh-learning-header h2 {
    margin: 0 0 8px;
}
.hlh-learning .hlh-learning-header p {
    font-size: 19px;
    margin: 0;
}
.hlh-learning a.hlh-profile-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 48px;
    padding: 6px 14px 6px 6px;
    border: 1px solid #ded9cf;
    border-radius: 40px;
    background: #fffdf8;
    color: #25343b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.hlh-profile-control > span:not(.hlh-profile-avatar) {
    overflow-wrap: anywhere;
}
.hlh-learning .hlh-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffb332;
    color: #25343b;
    font-weight: 700;
    font-size: 16px;
}
.hlh-profile-control svg {
    flex: 0 0 16px;
}
.hlh-learning a.hlh-profile-control:hover {
    border-color: #25343b;
    background: #fff8e9;
}
.hlh-learning .hlh-library-filters {
    padding: 24px;
    border: 1px solid #ded9cf;
    border-radius: 24px;
    background: #fffdf8;
}
.hlh-learning .hlh-library-filters label {
    flex: 1 1 160px;
}
.hlh-learning .hlh-library-filters button {
    flex: 0 0 auto;
}
.hlh-learning .hlh-learning-panel {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid #ded9cf;
    border-radius: 26px;
    background: #fffdf8;
}
.hlh-learning-panel > h3:first-child {
    margin-top: 0;
}
.hlh-learning .hlh-learning-back {
    margin: 0 0 22px;
    font-size: 15px;
}
.hlh-learning .hlh-lesson-quiz {
    border: 1px solid #ded9cf;
    background: #f6f3eb;
}
/* The old editable name banners are retained in BeBuilder but no longer displayed. */
.section:has(.hlh-retired-name-banner),
.mcb-section:has(.hlh-retired-name-banner) {
    display: none !important;
}
@media (max-width: 600px) {
    .hlh-learning .hlh-learning-header {
        gap: 16px;
        flex-wrap: wrap;
    }
    .hlh-learning .hlh-learning-header h2 {
        font-size: 34px;
    }
    .hlh-learning .hlh-library-filters {
        padding: 20px;
    }
    .hlh-learning .hlh-library-filters label {
        flex-basis: calc(50% - 10px);
        min-width: 0;
    }
    .hlh-learning .hlh-library-filters label:last-of-type {
        flex-basis: 100%;
    }
    .hlh-learning .hlh-library-filters button {
        width: 100%;
    }
}

.hlh-learning .hlh-continue-learning,
.hlh-learning .hlh-lesson-completion {
    padding: 26px;
    margin: 24px 0;
    border: 1px solid #ded9cf;
    border-radius: 22px;
    background: #fffdf8;
}
.hlh-learning .hlh-continue-learning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-left: 5px solid #ffb332;
}
.hlh-learning .hlh-continue-learning h3,
.hlh-learning .hlh-lesson-completion h3 {
    margin: 0 0 10px;
    color: #25343b;
    font-size: 24px;
    line-height: 1.3;
}
.hlh-learning .hlh-continue-learning p {
    margin: 0;
}
.hlh-learning .hlh-continue-learning .hlh-learning-kicker {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hlh-learning .hlh-continue-learning > a {
    flex-shrink: 0;
}
.hlh-learning .hlh-lesson-completion form {
    margin: 16px 0 0;
}
.hlh-learning .hlh-lesson-completion .hlh-button {
    white-space: normal;
}
.hlh-tutor-preview-note {
    padding: 14px 18px;
    margin: 0 0 22px;
    border: 1px solid #ded9cf;
    border-radius: 12px;
    background: #fffdf8;
    color: #25343b;
}
.hlh-paper-walkthrough {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #ded9cf;
    border-radius: 18px;
    background: #fffdf8;
}
.hlh-paper-walkthrough summary {
    cursor: pointer;
    color: #25343b;
    font-weight: 700;
}
.hlh-paper-walkthrough[open] summary {
    margin-bottom: 20px;
}
@media (max-width: 600px) {
    .hlh-learning .hlh-continue-learning {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }
}
.hlh-year-choice { margin: 28px 0; }
.hlh-year-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.hlh-paper-walkthrough-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.hlh-paper-walkthrough[data-hlh-chapters-ready] .hlh-paper-walkthrough-layout, .hlh-lesson-video[data-hlh-chapters-ready] .hlh-paper-walkthrough-layout { grid-template-columns: minmax(0, 1fr) minmax(210px, 30%); }
.hlh-paper-walkthrough-video { min-width: 0; }
.hlh-paper-chapters[hidden] { display: none !important; }
.hlh-paper-chapters h4 { margin: 0 0 6px; color: #25343b; }
.hlh-paper-chapters > p { margin: 0 0 12px; font-size: .9rem; }
.hlh-paper-chapters ol { list-style: none; max-height: 380px; overflow-y: auto; margin: 0; padding: 0; border: 1px solid #ded9cf; border-radius: 10px; }
.hlh-paper-chapters li + li { border-top: 1px solid #ded9cf; }
.hlh-learning .hlh-paper-chapters button { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 10px 12px; min-height: 44px; border: 0; border-radius: 0; background: #fffdf8; color: #25343b; text-align: left; font: inherit; cursor: pointer; }
.hlh-learning .hlh-paper-chapters button:hover, .hlh-learning .hlh-paper-chapters button:focus-visible { background: #eaf2f2; color: #12536c; }
.hlh-paper-chapter-time { flex-shrink: 0; color: #51656d; font-variant-numeric: tabular-nums; }
.hlh-paper-chapter-status:empty { display: none; }
@media (max-width: 760px) { .hlh-paper-walkthrough[data-hlh-chapters-ready] .hlh-paper-walkthrough-layout, .hlh-lesson-video[data-hlh-chapters-ready] .hlh-paper-walkthrough-layout { grid-template-columns: minmax(0, 1fr); } .hlh-paper-chapters ol { max-height: 240px; } }

/* Lessons: visible catalogue with quick filters and a responsive card grid. */
.hlh-learning .hlh-lesson-explore { margin: 38px 0 0; }
.hlh-learning .hlh-explore-heading { margin-bottom: 18px; }
.hlh-learning .hlh-explore-heading .hlh-explore-kicker { margin: 0 0 8px; color: #9b5500; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.hlh-learning .hlh-explore-heading h3 { margin: 0 0 7px; font-size: clamp(27px, 2.5vw, 34px); font-weight: 700; }
.hlh-learning .hlh-explore-heading p { margin: 0; font-size: 16px; color: #526267; }
.hlh-learning .hlh-lesson-explore .hlh-library-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 0 0 30px; padding: 20px; background: #fffdf8; border: 1px solid #e4ddd0; border-radius: 20px; }
.hlh-learning .hlh-lesson-explore .hlh-library-filters label { display: flex; flex-direction: column; flex: 1 1 155px; min-width: 0; gap: 7px; color: #25343b; font-size: 14px; font-weight: 700; }
.hlh-learning .hlh-lesson-explore .hlh-library-filters select { border-color: #c2cac7; background-color: #fff; }
.hlh-learning .hlh-lesson-explore .hlh-library-filters button { flex: 0 0 auto; }
.hlh-learning .hlh-filter-clear { align-self: center; color: #315968; font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.hlh-learning .hlh-lesson-results-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 16px; }
.hlh-learning .hlh-lesson-results-heading h4 { margin: 0; font-size: 23px; font-weight: 700; }
.hlh-learning .hlh-lesson-results-heading p { margin: 0; color: #58696b; font-size: 14px; }
.hlh-learning ol.hlh-lesson-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); gap: 18px; }
.hlh-learning .hlh-lesson-grid > li[hidden], .hlh-learning .hlh-lesson-empty[hidden], .hlh-learning .hlh-show-more[hidden] { display: none !important; }
.hlh-learning a.hlh-lesson-card { min-height: 225px; padding: 22px; border: 1px solid #e2dbcf; border-top: 5px solid #d4a14a; border-radius: 18px; background: #fffdf8; color: #25343b; box-shadow: 0 4px 14px rgba(37, 52, 59, .04); transition: transform .15s ease, box-shadow .15s ease; }
.hlh-learning a.hlh-lesson-card.hlh-lesson-english { border-top-color: #e37f55; }
.hlh-learning a.hlh-lesson-card.hlh-lesson-maths { border-top-color: #3c8da0; }
.hlh-learning a.hlh-lesson-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(37, 52, 59, .1); }
.hlh-learning .hlh-lesson-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin: 0 0 18px; }
.hlh-learning .hlh-lesson-subject { color: #42616b; font-size: 12px; line-height: 1.3; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hlh-learning .hlh-lesson-years { flex-shrink: 0; padding: 4px 9px; border-radius: 20px; background: #f3ede0; color: #4c5553; font-size: 12px; line-height: 1.4; font-weight: 700; }
.hlh-learning .hlh-lesson-card h5 { margin: 0 0 10px; color: #25343b; font-size: 20px; line-height: 1.3; font-weight: 700; }
.hlh-learning .hlh-lesson-topic { margin: 0 0 14px; color: #657675; font-size: 14px; line-height: 1.4; }
.hlh-learning .hlh-lesson-card p { margin: 0 0 16px; color: #526267; font-size: 14px; line-height: 1.5; }
.hlh-learning .hlh-lesson-card .hlh-card-open { min-height: 0; margin-top: auto; padding: 0; border-radius: 0; background: transparent; color: #075d79; font-size: 14px; font-weight: 700; }
.hlh-learning .hlh-lesson-card:hover .hlh-card-open { background: transparent; color: #9b5500; }
.hlh-learning .hlh-show-more { display: flex; margin: 26px auto 0; background: #fffdf8; color: #25343b; border-color: #aab5b1; }
@media (max-width: 600px) {
    .hlh-learning .hlh-lesson-explore .hlh-library-filters label { flex: 1 1 calc(50% - 8px); }
    .hlh-learning .hlh-lesson-explore .hlh-library-filters label:last-of-type { flex-basis: 100%; }
    .hlh-learning .hlh-lesson-explore .hlh-library-filters button { flex: 1 1 auto; }
    .hlh-learning ol.hlh-lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hlh-learning a.hlh-lesson-card { min-height: 200px; padding: 16px; border-radius: 15px; }
    .hlh-learning .hlh-lesson-card-top { flex-wrap: wrap; margin-bottom: 14px; }
    .hlh-learning .hlh-lesson-card h5 { font-size: 17px; }
}
@media (max-width: 360px) { .hlh-learning ol.hlh-lesson-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hlh-learning a.hlh-lesson-card { transition: none; } }

/* Lesson library: the subject determines the colour and illustration. */
.hlh-learning .hlh-explore-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 180px; }
.hlh-learning .hlh-explore-heading > div { flex: 1 1 340px; }
.hlh-learning .hlh-explore-heading h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; }
.hlh-learning .hlh-lesson-reading { display: block; flex: 0 1 310px; width: min(35%, 310px); height: auto; align-self: end; object-fit: contain; }
.hlh-learning .hlh-lesson-explore .hlh-library-filters { border-radius: 14px; }
.hlh-learning .hlh-lesson-explore .hlh-library-filters button { background: #f5ad35; color: #182f3c; border: 0; }
.hlh-learning .hlh-lesson-explore .hlh-library-filters button:hover { background: #e49a22; color: #182f3c; }
.hlh-learning ol.hlh-lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.hlh-learning ol.hlh-lesson-grid > li { margin: 0; padding: 0; min-width: 0; }
.hlh-learning a.hlh-lesson-card { display: flex; flex-direction: column; min-height: 190px; height: 100%; padding: 0 18px 18px; overflow: hidden; border: 1px solid #d8d8d2; border-radius: 12px; background: #fff; box-shadow: none; color: #20343e; text-decoration: none; }
.hlh-learning a.hlh-lesson-card:hover { transform: none; border-color: #91a4aa; box-shadow: 0 4px 12px rgba(37, 52, 59, .08); }
.hlh-learning .hlh-lesson-card-top { align-self: stretch; min-height: 48px; width: auto; margin: 0 -18px 12px; padding: 6px 16px; background: #f1f1ed; justify-content: space-between; flex-wrap: nowrap; }
.hlh-learning .hlh-lesson-english .hlh-lesson-card-top { background: #fff1d8; }
.hlh-learning .hlh-lesson-maths .hlh-lesson-card-top { background: #e4eff3; }
.hlh-learning .hlh-lesson-subject { display: inline-block; padding: 4px 10px; border-radius: 6px; background: #354f59; color: #fff; font-size: 13px; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.hlh-learning .hlh-lesson-english .hlh-lesson-subject { background: #a65100; color: #fff; }
.hlh-learning .hlh-lesson-maths .hlh-lesson-subject { background: #24647f; color: #fff; }
.hlh-learning .hlh-lesson-icon { display: block; width: 38px; height: 38px; flex: 0 0 38px; }
.hlh-learning .hlh-lesson-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: #203f50; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.hlh-learning .hlh-lesson-icon .hlh-icon-detail { stroke: #bc6a00; stroke-width: 2.8; }
.hlh-learning .hlh-lesson-maths .hlh-icon-detail { stroke: #287a9d; stroke-width: 3; }
.hlh-learning .hlh-lesson-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; color: #334952; font-size: 13px; line-height: 1.4; }
.hlh-learning .hlh-lesson-years, .hlh-learning .hlh-lesson-topic { display: inline; margin: 0; padding: 0; border: 0; background: none; color: inherit; font-size: inherit; font-weight: 400; }
.hlh-learning .hlh-lesson-years + .hlh-lesson-topic { padding-left: 10px; border-left: 1px solid #b6bfc0; }
.hlh-learning .hlh-lesson-card h5 { margin: 0 0 12px; color: #20343e; font-size: 19px; line-height: 1.3; }
.hlh-learning .hlh-lesson-card p { margin: 0 0 12px; }
.hlh-learning .hlh-lesson-card .hlh-card-open { align-self: flex-start; margin-top: auto; padding: 8px 12px; border-radius: 6px; background: #f5ad35; color: #182f3c; font-size: 14px; line-height: 1.3; }
.hlh-learning .hlh-lesson-maths .hlh-card-open { background: #24647f; color: #fff; }
.hlh-learning .hlh-lesson-card:hover .hlh-card-open { background: #e49a22; color: #182f3c; }
.hlh-learning .hlh-lesson-maths:hover .hlh-card-open { background: #1a5067; color: #fff; }
.hlh-learning a.hlh-lesson-card:focus-visible { outline: 3px solid #245a70; outline-offset: 3px; }
@media (max-width: 800px) { .hlh-learning ol.hlh-lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .hlh-learning .hlh-explore-heading { min-height: 0; gap: 12px; }
    .hlh-learning .hlh-explore-heading > div { flex-basis: 65%; }
    .hlh-learning .hlh-lesson-reading { width: 32%; flex-basis: 32%; }
    .hlh-learning a.hlh-lesson-card { min-height: 185px; padding: 0 14px 14px; }
    .hlh-learning .hlh-lesson-card-top { margin: 0 -14px 10px; padding: 6px 12px; }
    .hlh-learning .hlh-lesson-card h5 { font-size: 17px; }
}
@media (max-width: 420px) { .hlh-learning ol.hlh-lesson-grid { grid-template-columns: minmax(0, 1fr); } }

/* Pupil home: use the same visual language as the lesson library. */
.hlh-pupil-home .hlh-home-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 18px 0 30px; padding: 24px 30px 0; background: #fffdf8; border: 1px solid #e4ddd0; border-radius: 16px; }
.hlh-pupil-home .hlh-home-welcome > div { flex: 1; padding-bottom: 24px; }
.hlh-pupil-home .hlh-home-kicker { margin: 0 0 8px; color: #8b4b00; font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.hlh-pupil-home .hlh-home-welcome h3 { margin: 0 0 8px; color: #20343e; font-size: clamp(30px, 3vw, 42px); }
.hlh-pupil-home .hlh-home-welcome p:not(.hlh-home-kicker) { margin: 0; }
.hlh-pupil-home .hlh-home-welcome img { display: block; width: min(35%, 260px); height: auto; align-self: end; }
.hlh-pupil-home .hlh-home-continue, .hlh-pupil-home .hlh-home-explore { margin: 0 0 34px; }
.hlh-pupil-home .hlh-continue-learning { border-left: 1px solid #dedbd3; }
.hlh-pupil-home .hlh-home-continue > h3, .hlh-pupil-home .hlh-home-explore > h3 { margin: 0 0 16px; font-size: 25px; }
.hlh-pupil-home .hlh-home-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hlh-pupil-home a.hlh-home-link { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid #dedbd3; border-top: 5px solid #f5ad35; border-radius: 12px; background: #fff; color: #20343e; text-decoration: none; }
.hlh-pupil-home a.hlh-home-assessments { border-top-color: #286581; }
.hlh-pupil-home a.hlh-home-progress { border-top-color: #e18a45; }
.hlh-pupil-home .hlh-home-link > span { color: #555f62; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.hlh-pupil-home .hlh-home-link strong { display: block; margin: 8px 0; font-size: 20px; line-height: 1.3; }
.hlh-pupil-home .hlh-home-link p { flex: 1; margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.hlh-pupil-home .hlh-home-link b { color: #205c76; font-size: 15px; }
.hlh-pupil-home .hlh-home-link:hover { border-color: #81979e; }
.hlh-pupil-home .hlh-home-more { margin-top: 12px; }
@media (max-width: 700px) { .hlh-pupil-home .hlh-home-links { grid-template-columns: 1fr; } .hlh-pupil-home .hlh-home-welcome { padding: 20px 20px 0; gap: 12px; } .hlh-pupil-home .hlh-home-welcome img { width: 32%; } }

/* Topic insights use the same clear bars on results and progress. */
ul.hlh-topic-bars{list-style:none;padding:0;margin:16px 0 26px;display:grid;gap:16px}
.hlh-topic-bars li{list-style:none;border:1px solid #e0ddd3;background:#fffdf8;border-radius:14px;padding:14px 16px}
.hlh-topic-bar-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;color:#25343b}
.hlh-topic-bar-heading b{font-size:20px;color:#286581}.hlh-topic-bars progress{display:block;width:100%;height:10px;margin:9px 0 5px;border:0;border-radius:12px;overflow:hidden;accent-color:#286581;background:#e6ece8}
.hlh-topic-bars progress::-webkit-progress-bar{background:#e6ece8;border-radius:12px}.hlh-topic-bars progress::-webkit-progress-value{background:#286581;border-radius:12px}.hlh-topic-bars progress::-moz-progress-bar{background:#286581;border-radius:12px}.hlh-topic-bars li>span{font-size:13px;color:#526064}

.hlh-learning .hlh-lesson-resume-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}
.hlh-learning .hlh-lesson-resume-grid .hlh-continue-learning {
    margin: 0;
    align-items: flex-start;
    flex-direction: column;
}
.hlh-learning .hlh-lesson-resume-grid .hlh-continue-learning > a {
    margin-top: auto;
    white-space: normal;
}
@media (max-width: 700px) {
    .hlh-learning .hlh-lesson-resume-grid { grid-template-columns: 1fr; }
}

/* Make lesson filters recognisable and reduce the gap below the public hero. */
.hlh-learning .hlh-lesson-explore .hlh-library-filters select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2325343b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
}
.hlh-public-hero:has(+ .hlh-public-catalogue) { padding-bottom: 12px; }
.hlh-public .hlh-public-catalogue .hlh-lesson-explore { margin-top: 0; }
