.course-guide,
.course-entry,
.course-blue-page #consult {
    --course-ink: #112042;
    --course-copy: #394b67;
    --course-blue: #2455d7;
    --course-line: #d4e1f8;
    --course-surface: #f8fbff;
    --course-width: min(1352px, calc(100% - 88px));
    color: var(--course-ink);
}

.course-blue-page,
.course-guide {
    background: #edf3ff;
}

.course-blue-page .site-header {
    background: #f1f5fe;
}

.course-guide-hero {
    padding: clamp(20px, 3vw, 42px) 0 clamp(24px, 4vw, 55px);
    background:
        radial-gradient(ellipse at -14% 118%, #cfdef8 0 31%, transparent 31.2%),
        radial-gradient(ellipse at 108% 108%, #dce9ff 0 48%, transparent 48.2%),
        linear-gradient(120deg, #ecf3ff, #dce9ff 80%);
}

.course-guide-hero > .wrap,
.course-guide-content,
.course-blue-page #consult > .wrap {
    width: var(--course-width);
}

.guide-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .48em;
    color: #52627c;
    font-size: .9rem;
}

.guide-breadcrumbs a {
    text-decoration: underline;
    text-underline-offset: .18em;
}

.guide-breadcrumbs [aria-current] {
    color: var(--course-blue);
    font-weight: 700;
}

.course-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(24px, 4vw, 58px);
    margin-top: clamp(12px, 1.9vw, 26px);
}

.course-hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(37px, 4.15vw, 64px);
    line-height: 1.13;
    font-weight: 850;
    letter-spacing: -.025em;
}

.course-hero-copy h1::after,
.course-section-title::after {
    content: "";
    display: block;
    margin-top: 12px;
    width: 46px;
    height: 4px;
    border-radius: 4px;
    background: #f5c646;
}

.course-hero-copy h1::after {
    width: clamp(54px, 8vw, 108px);
    margin-top: 12px;
}

.course-hero-copy p {
    max-width: 32ch;
    margin: 0 0 20px;
    color: var(--course-copy);
    font-size: clamp(16px, 1.65vw, 24px);
    line-height: 1.55;
}

.course-hero-art {
    display: block;
    width: 100%;
    height: auto;
    border-radius: clamp(18px, 3vw, 48px);
    background: #d9e8ff;
}

.course-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.course-action,
.course-link {
    color: var(--course-blue);
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.course-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 8px clamp(14px, 2vw, 24px);
    border: 1px solid transparent;
    border-radius: 999px;
    line-height: 1.4;
    text-align: center;
}

.course-action-primary {
    background: var(--course-blue);
    color: #fff;
}

.course-action-primary:hover {
    background: #1644bb;
}

.course-action-outline {
    border-color: #8babef;
    background: #f8fbff;
}

.course-action-outline:hover {
    background: #e7efff;
}

.course-link:hover {
    text-decoration: underline;
    text-underline-offset: .16em;
}

.course-guide a:focus-visible,
.course-entry a:focus-visible,
.course-blue-page #consult a:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 4px;
}

.course-guide-content {
    display: grid;
    gap: clamp(25px, 4vw, 50px);
    padding-block: clamp(24px, 4vw, 54px);
    line-height: 1.72;
}

.course-guide-content section[id],
.course-blue-page #consult {
    scroll-margin-top: 100px;
}

.course-section-title,
.course-guide-content h2 {
    margin: 0 0 14px;
    color: var(--course-ink);
    font-size: clamp(23px, 2.65vw, 38px);
    font-weight: 800;
    line-height: 1.27;
}

.course-guide-content h3,
.course-entry h3 {
    margin: 0 0 7px;
    color: var(--course-ink);
    font-size: clamp(17px, 1.55vw, 22px);
    line-height: 1.35;
}

.course-guide-content p,
.course-entry p {
    margin: .65em 0 0;
    color: var(--course-copy);
}

.course-guide-content :is(p, ul) a:not([class]) {
    color: var(--course-blue);
    text-decoration: underline;
    text-underline-offset: .17em;
}

.course-panel,
.course-entry-card,
.guide-chapter-cards > a {
    min-width: 0;
    border: 1px solid var(--course-line);
    border-radius: clamp(14px, 1.5vw, 22px);
    background: var(--course-surface);
    box-shadow: 0 8px 22px #2856a508;
}

.course-panel,
.course-entry-card {
    padding: clamp(17px, 2.25vw, 32px);
}

.course-placement {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(0, 4fr);
    align-items: center;
    gap: clamp(21px, 3.5vw, 52px);
    background: linear-gradient(115deg, #e4edff, #f7faff 53%);
}

.course-placement strong,
.guide-chapter > p > strong {
    color: #2048ab;
}

.course-placement-mark,
.course-icon {
    display: grid;
    place-items: center;
    color: var(--course-blue);
    font-family: ui-monospace, Menlo, monospace;
    font-weight: 800;
    line-height: 1;
}

.course-placement-mark {
    width: min(100%, 174px);
    aspect-ratio: 1.33;
    justify-self: center;
    border: 1px solid #bfd3fb;
    border-bottom: 6px solid #a8c3f7;
    border-radius: 22px;
    background: linear-gradient(145deg, #faffff, #c7dbff);
    box-shadow: 0 12px 23px #2856a521;
    font-size: clamp(26px, 5vw, 60px);
}

.course-icon {
    width: 47px;
    height: 47px;
    border-radius: 13px;
    background: #e6efff;
    font-size: 19px;
}

.course-capabilities,
.course-topic-grid,
.guide-course-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.course-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}

.course-capabilities li {
    padding: 3px 11px;
    border: 1px solid #c1d5fb;
    border-radius: 9px;
    color: #1b438f;
    font-weight: 650;
}

.course-topic-grid,
.course-entry-grid,
.guide-chapter-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.7vw, 24px);
}

.course-grid-two,
.guide-course-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-topic-grid .course-icon,
.course-entry-card .course-icon {
    margin-bottom: 12px;
}

.course-topic-grid a.course-link {
    display: inline-block;
    margin-top: 10px;
}

.guide-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 26px;
    padding: clamp(17px, 2.4vw, 34px);
    border: 1px solid var(--course-line);
    border-radius: 20px;
    background: linear-gradient(117deg, #e5eeff, #dbe8ff);
}

.guide-next h2 {
    margin: 0;
    font-size: clamp(22px, 2.25vw, 30px);
}

.guide-next a {
    max-width: 100%;
}

.guide-chapter-cards {
    margin-top: clamp(18px, 2.1vw, 30px);
}

.guide-chapter-cards > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 1.15vw, 16px);
    min-height: 78px;
    padding: clamp(10px, 1.7vw, 22px);
    color: var(--course-ink);
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 750;
    line-height: 1.4;
}

.guide-chapter-cards > a:hover {
    border-color: #86a8ec;
    background: #fff;
}

.course-arrow {
    color: var(--course-blue);
}

.course-guide-layout {
    grid-template-columns: clamp(160px, 20%, 236px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(14px, 2vw, 28px);
}

.course-guide-layout .guide-next {
    grid-column: 1 / -1;
}

.guide-index {
    position: sticky;
    top: 100px;
    padding: 15px;
}

.guide-index h2 {
    margin-bottom: 12px;
    padding-inline: 8px;
    font-size: 22px;
}

.guide-index a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
}

.guide-index a:hover {
    background: #e6efff;
}

.guide-index a[aria-current="location"] {
    background: var(--course-blue);
    color: #fff;
}

.guide-chapters {
    display: grid;
    gap: clamp(14px, 2vw, 26px);
    min-width: 0;
}

.guide-chapter h3 {
    margin-top: 18px;
}

.guide-chapter .course-actions,
.guide-chapter > .course-action {
    margin-top: 14px;
}

.guide-course-options {
    display: grid;
    gap: 12px;
    margin: 14px 0;
}

.guide-course-options li,
.guide-chapter p.guide-example {
    padding: 12px 15px;
    border: 1px solid #dbe7fb;
    border-radius: 12px;
    background: #edf4ff;
}

.guide-course-options p {
    margin-top: 3px;
}

.course-entry {
    padding-block: clamp(24px, 4vw, 52px) 14px;
}

.course-entry-card {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.course-entry-card p {
    margin: 0 0 16px;
}

.course-entry-card .course-link {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    margin-top: auto;
}

.course-blue-page #consult {
    background: #e2edff;
}

.course-blue-page #consult .contact-inner {
    gap: clamp(20px, 4vw, 56px);
}

.course-blue-page #consult h2 {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.25;
}

@media (max-width: 880px) {
    .course-guide,
    .course-entry,
    .course-blue-page #consult {
        --course-width: calc(100% - 40px);
    }

    .guide-index {
        display: none;
    }

    .course-guide-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .course-hero-inner {
        gap: 18px;
    }

    .course-hero-copy h1 {
        font-size: clamp(32px, 5.1vw, 48px);
    }

    .guide-chapter-cards > a {
        gap: 8px;
    }

    .guide-chapter-cards .course-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .course-guide,
    .course-entry,
    .course-blue-page #consult {
        --course-width: calc(100% - 32px);
    }

    .course-hero-inner,
    .course-topic-grid,
    .course-entry-grid,
    .guide-chapter-cards,
    .guide-course-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .course-hero-copy p {
        margin-bottom: 12px;
    }

    .course-hero-art {
        max-height: 220px;
        object-fit: cover;
    }

    .course-guide-content section[id],
    .course-blue-page #consult {
        scroll-margin-top: 82px;
    }

    .course-placement {
        grid-template-columns: minmax(0, 1fr);
    }

    .course-placement-mark {
        display: none;
    }

    .course-guide-content,
    .guide-chapters {
        gap: 20px;
    }

    .guide-chapter-cards > a {
        min-height: 55px;
    }

    .course-entry-card {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: center;
        column-gap: 12px;
    }

    .course-entry-card .course-icon {
        width: 40px;
        height: 40px;
        margin: 0 0 8px;
    }

    .course-entry-card :is(p, .course-link) {
        grid-column: 2;
    }

    .course-entry-card p {
        margin-bottom: 4px;
    }

    .course-entry-card .course-link {
        margin: 0;
    }
}

@media (max-width: 360px) {
    :is(.course-blue-page, body:has(.course-entry)) .site-header .bar {
        column-gap: 8px;
        padding-inline: 12px;
    }

    :is(.course-blue-page, body:has(.course-entry)) .header-actions .button {
        min-width: 0;
        padding-inline: 10px;
    }
}
