.edexcel-guide {
    --ed-ink: #163342;
    --ed-soft-ink: #425966;
    --ed-teal: #095d59;
    --ed-border: #c9d9dc;
    --ed-tint: #eef5f5;
    color: var(--ed-ink);
}

.edexcel-guide [hidden] {
    display: none;
}

.edexcel-shell {
    max-width: 1080px;
}

.edexcel-guide a {
    color: var(--ed-teal);
    text-underline-offset: .18em;
}

.edexcel-guide a:hover {
    text-decoration-thickness: 2px;
}

.edexcel-guide :focus-visible {
    outline: 2px solid #167b75;
    outline-offset: 3px;
}

.edexcel-hero {
    padding: clamp(25px, 4vw, 54px) 0 0;
    border-bottom: 1px solid var(--ed-border);
    background: linear-gradient(114deg, #eaf2f5, #f5f8f5 82%);
}

.edexcel-hero h1 {
    max-width: 780px;
    margin: 0;
    color: var(--ed-ink);
    font-size: clamp(1.85rem, 4.4vw, 3.55rem);
    letter-spacing: -.035em;
    line-height: 1.07;
}

.edexcel-intro {
    max-width: 75ch;
    margin-top: 14px;
    color: var(--ed-soft-ink);
}

.edexcel-intro p {
    margin: 0 0 9px;
}

.edexcel-intro a,
.edexcel-content a {
    overflow-wrap: anywhere;
}

.edexcel-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 23px;
    padding-bottom: 13px;
}

.edexcel-navigation a {
    display: flex;
    min-height: 41px;
    align-items: center;
    padding: 6px 13px;
    border: 1px solid var(--ed-border);
    border-radius: 7px;
    background: #fff;
    color: var(--ed-ink);
    font-weight: 650;
    text-decoration: none;
}

.edexcel-navigation a[aria-current="page"] {
    border-color: var(--ed-teal);
    background: var(--ed-teal);
    color: #fff;
}

.edexcel-navigation a:hover {
    text-decoration: underline;
}

.edexcel-content {
    display: grid;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 24px;
}

.edexcel-content h2,
.edexcel-content h3 {
    color: var(--ed-ink);
    line-height: 1.2;
}

.edexcel-content h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
}

.edexcel-content h3 {
    margin: 0 0 9px;
    font-size: 1.15rem;
}

.edexcel-content :is(h2, h3)[id],
.edexcel-topic[id] {
    scroll-margin-top: 112px;
}

.edexcel-section,
.edexcel-topic,
.edexcel-topic-grid {
    min-width: 0;
}

.edexcel-section > :last-child,
.edexcel-topic > :last-child {
    margin-bottom: 0;
}

.edexcel-content p {
    margin: 0 0 10px;
}

.edexcel-content ul,
.edexcel-content ol {
    margin: 0 0 13px;
    padding-inline-start: 1.25em;
}

.edexcel-content li + li {
    margin-top: 5px;
}

.edexcel-local-links {
    padding: 11px 15px;
    border-inline-start: 3px solid #9ebfbe;
    background: var(--ed-tint);
}

.edexcel-local-links > p,
.edexcel-local-links > ul {
    margin: 0;
}

.edexcel-local-links > ul {
    columns: 2 270px;
    column-gap: 25px;
}

.edexcel-local-links li {
    break-inside: avoid;
}

.edexcel-section > p,
.edexcel-section > ol,
.edexcel-section > ul {
    max-width: 80ch;
}

.edexcel-section.edexcel-start > ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: none;
    list-style: none;
    padding-inline-start: 0;
}

.edexcel-start > ul > li {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    background: var(--ed-tint);
}

.edexcel-start > ul > li > strong:first-child {
    display: block;
    margin-bottom: 4px;
}

.edexcel-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 11px;
    margin-top: 12px;
}

.edexcel-topic {
    padding: 15px;
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    background: #fff;
}

.edexcel-topic h3 {
    font-size: 1.04rem;
}

.edexcel-topic:target {
    border-color: var(--ed-teal);
    background: #f1f8f7;
}

.edexcel-filter {
    max-width: 570px;
    margin-top: 15px;
}

.edexcel-filter label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.edexcel-filter-controls {
    display: flex;
    gap: 7px;
}

.edexcel-filter input,
.edexcel-filter button {
    min-height: 43px;
    border: 1px solid #9eb6bb;
    border-radius: 6px;
    background: #fff;
    color: var(--ed-ink);
}

.edexcel-filter input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
}

.edexcel-filter button {
    padding: 6px 12px;
}

.edexcel-filter button:disabled {
    color: var(--ed-soft-ink);
    opacity: .75;
}

.edexcel-filter [role="status"]:empty {
    margin: 0;
}

.edexcel-filter [role="status"]:not(:empty) {
    margin: 7px 0 0;
    color: var(--ed-soft-ink);
}

.edexcel-table-wrap {
    max-width: 100%;
    margin-bottom: 12px;
    overflow-x: auto;
}

.edexcel-table-wrap table {
    width: 100%;
    min-width: 470px;
    border-collapse: collapse;
    background: #fff;
}

.edexcel-table-wrap :is(th, td) {
    padding: 8px;
    border: 1px solid var(--ed-border);
    text-align: start;
    vertical-align: top;
}

.edexcel-table-wrap th {
    background: var(--ed-tint);
}

@media (max-width: 680px) {
    .edexcel-topic-grid,
    .edexcel-section.edexcel-start > ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .edexcel-content {
        gap: 23px;
    }
}

@media (max-width: 390px) {
    .edexcel-navigation a {
        padding-inline: 9px;
        font-size: .92rem;
    }
}
.edexcel-home-link {
    margin: 0;
    font-size: 0.9rem;
}

.edexcel-home-link a {
    color: #fff;
}

.edexcel-home-link a:hover,
.edexcel-home-link a:focus-visible {
    text-decoration-thickness: 0.13em;
}

.edexcel-course-map {
    background: #f3f7f7;
}

.edexcel-course-map .edexcel-shell {
    max-width: 1180px;
}

.edexcel-course-map .edexcel-hero {
    padding: clamp(20px, 4vw, 58px) 0 0;
    border-bottom: 0;
    background: linear-gradient(120deg, #102d41, #174555 66%, #235965);
}

.edexcel-course-banner {
    display: grid;
    grid-template-columns: 1.04fr 1fr;
    align-items: center;
    gap: clamp(22px, 4vw, 62px);
}

.edexcel-course-banner h1 {
    color: #fff;
    font-size: clamp(2.18rem, 4.8vw, 4.65rem);
    line-height: 1.02;
}

.edexcel-course-banner .edexcel-intro {
    max-width: 47ch;
    color: #dfedf1;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.edexcel-course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
    align-items: center;
    margin-top: 20px;
}

.edexcel-course-actions > a {
    color: #fff;
    font-weight: 700;
}

.edexcel-course-actions > .button {
    border-color: #cce7e6;
    background: #fff;
    color: #124755;
}

.edexcel-course-actions > .button:hover {
    background: #e5f4f3;
}

.edexcel-course-map .edexcel-hero :focus-visible {
    outline-color: #f3c69f;
}

.edexcel-course-art {
    overflow: hidden;
    margin: 0;
    border: 1px solid #bcd1d366;
    border-top: 4px solid #c2845e;
    border-radius: 15px;
    background: #265c68;
    box-shadow: 0 18px 40px #061d2e66;
}

.edexcel-course-art img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.edexcel-course-map .edexcel-navigation {
    gap: 8px;
    margin-top: clamp(19px, 3vw, 33px);
    padding: 12px 0 14px;
    border-top: 1px solid #e6f8f640;
}

.edexcel-course-map .edexcel-navigation a {
    border-color: #dcebef5c;
    background: #e6f3f314;
    color: #fff;
}

.edexcel-course-map .edexcel-navigation a[aria-current] {
    border-color: #fff;
    background: #fff;
    color: #124755;
}

.edexcel-course-map .edexcel-content {
    gap: clamp(24px, 4vw, 46px);
    padding-block: clamp(24px, 4vw, 48px);
}

.edexcel-course-map .edexcel-start > ul {
    gap: 14px;
}

.edexcel-course-map .edexcel-start > ul > li,
.edexcel-course-map .edexcel-topic {
    border-color: #cbdcdf;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 16px #1032440a;
}

.edexcel-course-map .edexcel-start > ul > li {
    border-top: 3px solid #2a7580;
    padding: 17px 18px;
}

.edexcel-course-map .edexcel-topic-grid {
    gap: 14px;
    margin-top: 16px;
}

.edexcel-course-map .edexcel-topic {
    padding: clamp(13px, 2vw, 19px);
}

.edexcel-course-map .edexcel-topic h3 {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: 1.13rem;
}

.edexcel-topic-number {
    min-width: 1.85em;
    padding: 3px 4px;
    border-radius: 5px;
    background: #e7f1f3;
    color: #174f60;
    font-size: .88em;
    text-align: center;
}

.edexcel-course-map .edexcel-topic:target {
    border-color: #287782;
    box-shadow: 0 0 0 2px #28778240;
}

.edexcel-course-map .edexcel-filter {
    max-width: 670px;
    padding: 13px 15px;
    border: 1px solid #cbdcdf;
    border-radius: 12px;
    background: #e8f1f3;
}

@media (max-width: 720px) {
    .edexcel-course-banner {
        grid-template-columns: minmax(0, 1fr);
    }

    .edexcel-course-art img {
        max-height: 154px;
        object-position: 50% 45%;
    }
}

@media (max-width: 470px) {
    .edexcel-course-map .edexcel-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .edexcel-course-map .edexcel-navigation a {
        justify-content: center;
        text-align: center;
    }
}

