/* ==========================================================================
   Knowledge pages: the article layer of the course page template
   --------------------------------------------------------------------------
   Loaded only when a registry page of type "know" renders. It reshapes the
   Essential Knowledge section into a reading column (860px measure) with
   real subheadings, lists and a numbered facts rhythm, using the landing
   tokens on .lp. Everything else on the page keeps the approved course page
   design. Mobile first numbers scale with --lp-scale on wide monitors.
   ========================================================================== */

.lp .mhDefSection--know .mhDefInner {
    position: relative;
    z-index: 1;
}

/* One reading column instead of the two column intro */
.lp .mhDefSection--know .mhDefTop {
    grid-template-columns: minmax(0, 1fr);
    row-gap: calc(32px * var(--lp-scale));
    max-width: calc(860px * var(--lp-scale));
    margin-left: auto;
    margin-right: auto;
}

.lp .mhDefSection--know .mhDefIntroCol {
    align-items: flex-start;
}

.lp .mhDefSection--know .mhDefTitle {
    max-width: 18ch;
    font-size: clamp(28px, 2.8vw, calc(40px * var(--lp-scale)));
    text-wrap: balance;
}

.lp .mhDefSection--know .mhDefTagline {
    max-width: calc(680px * var(--lp-scale));
}

/* The article card */
.lp .mhDefSection--know .mhDefTextBlock {
    padding: calc(36px * var(--lp-scale)) calc(40px * var(--lp-scale));
}

.lp .mhDefSection--know .mhDefTextBlock p {
    margin: 0 0 calc(16px * var(--lp-scale));
    font-size: calc(17px * var(--lp-scale));
    line-height: 1.72;
}

.lp .mhDefSection--know .mhDefTextBlock > :last-child {
    margin-bottom: 0;
}

/* Subheadings: display face, tight, with a short accent rule */
.lp .mhDefSection--know .kbH3 {
    position: relative;
    margin: calc(34px * var(--lp-scale)) 0 calc(12px * var(--lp-scale));
    padding-top: calc(18px * var(--lp-scale));
    font-family: var(--lp-font-display);
    font-size: calc(22px * var(--lp-scale));
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--lp-ink);
    text-wrap: balance;
}

.lp .mhDefSection--know .kbH3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #059669 0%, #2563eb 100%);
}

.lp .mhDefSection--know .kbH3:first-child {
    margin-top: 0;
}

/* Lists inside the article */
.lp .mhDefSection--know .mhDefTextBlock ol,
.lp .mhDefSection--know .mhDefTextBlock ul {
    margin: 0 0 calc(18px * var(--lp-scale));
    padding: 0 0 0 calc(26px * var(--lp-scale));
}

.lp .mhDefSection--know .mhDefTextBlock li {
    margin: 0 0 calc(9px * var(--lp-scale));
    padding-left: 4px;
    font-family: var(--lp-font-body);
    font-size: calc(16.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.65;
    color: var(--lp-ink-2);
    text-wrap: pretty;
}

.lp .mhDefSection--know .mhDefTextBlock li::marker {
    font-family: var(--lp-font-display);
    font-weight: 800;
    color: #2563eb;
}

.lp .mhDefSection--know .mhDefTextBlock ul li::marker {
    color: #059669;
}

.lp .mhDefSection--know .mhDefTextBlock li strong {
    color: var(--lp-ink);
}

/* The definition cards keep their look and share the article's measure */
.lp .mhDefSection--know .mhDefGrid {
    max-width: calc(860px * var(--lp-scale));
    margin: 0 auto;
    gap: calc(18px * var(--lp-scale));
}

.lp .mhDefSection--know .mhDefCard {
    padding: calc(24px * var(--lp-scale));
}

.lp .mhDefSection--know .mhDefTextBlock--bottom {
    max-width: calc(860px * var(--lp-scale));
    margin: calc(28px * var(--lp-scale)) auto 0;
}

.lp .mhDefSection--know .mhDefTextBlock--bottom p {
    font-size: calc(17px * var(--lp-scale));
}

/* Tablets */
@media (max-width: 1024px) {
    .lp .mhDefSection--know .mhDefTop {
        row-gap: 30px;
    }

    .lp .mhDefSection--know .mhDefTextBlock {
        padding: 30px 30px;
    }
}

/* Phones */
@media (max-width: 768px) {
    .lp .mhDefSection--know .mhDefTitle {
        max-width: none;
        font-size: clamp(26px, 6.4vw, 34px);
    }

    .lp .mhDefSection--know .mhDefTextBlock {
        padding: 24px 20px;
    }

    .lp .mhDefSection--know .mhDefTextBlock p,
    .lp .mhDefSection--know .mhDefTextBlock li {
        font-size: 16.5px;
        line-height: 1.68;
    }

    .lp .mhDefSection--know .kbH3 {
        margin: 28px 0 10px;
        padding-top: 16px;
        font-size: 20px;
    }

    .lp .mhDefSection--know .mhDefTextBlock ol,
    .lp .mhDefSection--know .mhDefTextBlock ul {
        padding-left: 22px;
    }
}

@media (max-width: 380px) {
    .lp .mhDefSection--know .mhDefTextBlock {
        padding: 22px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp .mhDefSection--know * {
        transition: none !important;
    }
}

/* ==========================================================================
   Related guides and the hub list
   ========================================================================== */

.lp .kbRelated {
    position: relative;
    padding: var(--lp-sec-pad, 84px) var(--lp-pad-x, 24px);
    background:
        radial-gradient(50% 60% at 0% 0%, rgba(191, 219, 254, 0.55) 0%, rgba(191, 219, 254, 0) 70%),
        radial-gradient(50% 60% at 100% 100%, rgba(167, 243, 208, 0.4) 0%, rgba(167, 243, 208, 0) 70%),
        linear-gradient(180deg, #f5f8ff 0%, #eef3fb 100%);
}

.lp .kbRelatedInner {
    max-width: calc(1180px * var(--lp-scale));
    margin: 0 auto;
}

.lp .kbRelatedHead {
    max-width: calc(680px * var(--lp-scale));
    margin: 0 auto calc(44px * var(--lp-scale));
    text-align: center;
}

.lp .kbRelatedHead .mhDefEyebrow {
    margin: 0 auto;
}

.lp .kbRelatedTitle {
    margin: calc(24px * var(--lp-scale)) 0 0;
    font-family: var(--lp-font-display);
    font-size: clamp(28px, 2.8vw, calc(40px * var(--lp-scale)));
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--lp-ink);
    text-wrap: balance;
}

.lp .kbRelatedIntro {
    margin: calc(20px * var(--lp-scale)) auto 0;
    max-width: calc(620px * var(--lp-scale));
    font-family: var(--lp-font-body);
    font-size: calc(17.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.65;
    color: var(--lp-ink-2);
    text-wrap: pretty;
}

.lp .kbRelatedGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(22px * var(--lp-scale));
}

.lp .kbRelatedCard {
    display: flex;
    flex-direction: column;
    padding: calc(28px * var(--lp-scale));
    background: var(--lp-glass);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--lp-shadow), 0 0 0 1px var(--lp-line);
    border-radius: var(--lp-radius);
    text-decoration: none;
    color: inherit;
    transition: transform 0.28s var(--lp-ease), box-shadow 0.28s var(--lp-ease);
}

.lp .kbRelatedCard:hover,
.lp .kbRelatedCard:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(30, 58, 138, 0.14), 0 0 0 1px rgba(37, 99, 235, 0.22);
    outline: none;
}

.lp .kbRelatedCardTitle {
    display: block;
    font-family: var(--lp-font-display);
    font-size: calc(19px * var(--lp-scale));
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.012em;
    color: var(--lp-ink);
    text-wrap: balance;
}

.lp .kbRelatedCardSub {
    display: block;
    margin: calc(12px * var(--lp-scale)) 0 0;
    font-family: var(--lp-font-body);
    font-size: calc(15.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.6;
    color: var(--lp-ink-2);
    text-wrap: pretty;
}

.lp .kbRelatedCardMore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: calc(22px * var(--lp-scale));
    font-family: var(--lp-font-display);
    font-size: calc(14.5px * var(--lp-scale));
    font-weight: 700;
    color: #1d4ed8;
}

.lp .kbRelatedCard:hover .kbRelatedCardMore svg {
    transform: translateX(4px);
}

.lp .kbRelatedCardMore svg {
    transition: transform 0.25s var(--lp-ease);
}

.lp .kbRelatedFoot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(14px * var(--lp-scale));
    margin-top: calc(36px * var(--lp-scale));
}

.lp .kbRelatedHub,
.lp .kbRelatedCourse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 calc(24px * var(--lp-scale));
    border-radius: 999px;
    font-family: var(--lp-font-display);
    font-size: calc(15.5px * var(--lp-scale));
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s var(--lp-ease), box-shadow 0.25s var(--lp-ease), background 0.25s var(--lp-ease);
}

.lp .kbRelatedHub {
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(37, 99, 235, 0.22);
    box-shadow: 0 8px 22px rgba(30, 58, 138, 0.08);
}

.lp .kbRelatedHub:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(30, 58, 138, 0.14);
}

.lp .kbRelatedCourse {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid rgba(29, 78, 216, 0.6);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.lp .kbRelatedCourse:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.36);
}

/* The hub list inside the article card */
.lp .mhDefSection--know .kbHubList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: calc(12px * var(--lp-scale));
}

.lp .mhDefSection--know .kbHubList li {
    margin: 0;
    padding: calc(16px * var(--lp-scale)) calc(18px * var(--lp-scale));
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 58, 138, 0.08);
}

.lp .mhDefSection--know .kbHubList a {
    display: block;
    font-family: var(--lp-font-display);
    font-size: calc(17.5px * var(--lp-scale));
    font-weight: 800;
    line-height: 1.3;
    color: #1d4ed8;
    text-decoration: none;
}

.lp .mhDefSection--know .kbHubList a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp .mhDefSection--know .kbHubList span {
    display: block;
    margin-top: 6px;
    font-family: var(--lp-font-body);
    font-size: calc(15.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.55;
    color: var(--lp-ink-2);
}

@media (max-width: 1024px) {
    .lp .kbRelatedGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .lp .kbRelatedHead {
        margin-bottom: 32px;
    }

    .lp .kbRelatedTitle {
        font-size: clamp(26px, 6.4vw, 34px);
    }

    .lp .kbRelatedGrid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .lp .kbRelatedCard {
        padding: 22px 18px;
    }

    .lp .kbRelatedFoot {
        flex-direction: column;
        align-items: stretch;
    }

    .lp .kbRelatedHub,
    .lp .kbRelatedCourse {
        justify-content: center;
    }

    .lp .mhDefSection--know .kbHubList li {
        padding: 14px 16px;
    }
}

/* ==========================================================================
   Free Guides module on the course pages (inside Essential Knowledge)
   ========================================================================== */

.lp .kbGuides {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: clamp(32px, 4vw, calc(56px * var(--lp-scale)));
    row-gap: calc(24px * var(--lp-scale));
    align-items: start;
    margin: calc(28px * var(--lp-scale)) 0 0;
    padding: calc(32px * var(--lp-scale)) calc(36px * var(--lp-scale));
    background: var(--lp-glass);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--lp-shadow), 0 0 0 1px var(--lp-line);
    border-radius: var(--lp-radius);
    box-sizing: border-box;
}

.lp .kbGuidesIntro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lp .kbGuidesTitle {
    margin: calc(20px * var(--lp-scale)) 0 0;
    font-family: var(--lp-font-display);
    font-size: clamp(22px, 2vw, calc(28px * var(--lp-scale)));
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--lp-ink);
    text-wrap: balance;
}

.lp .kbGuidesText {
    margin: calc(14px * var(--lp-scale)) 0 0;
    font-family: var(--lp-font-body);
    font-size: calc(16.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.65;
    color: var(--lp-ink-2);
    text-wrap: pretty;
}

.lp .kbGuidesHub {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin-top: calc(22px * var(--lp-scale));
    padding: 0 calc(22px * var(--lp-scale));
    border-radius: 999px;
    font-family: var(--lp-font-display);
    font-size: calc(15px * var(--lp-scale));
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid rgba(29, 78, 216, 0.6);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
    transition: transform 0.25s var(--lp-ease), box-shadow 0.25s var(--lp-ease);
}

.lp .kbGuidesHub:hover,
.lp .kbGuidesHub:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
    outline: none;
}

.lp .kbGuidesList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: calc(10px * var(--lp-scale));
}

.lp .kbGuidesList li {
    margin: 0;
}

.lp .kbGuidesList a {
    position: relative;
    display: block;
    padding: calc(16px * var(--lp-scale)) calc(52px * var(--lp-scale)) calc(16px * var(--lp-scale)) calc(18px * var(--lp-scale));
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(30, 58, 138, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s var(--lp-ease), box-shadow 0.25s var(--lp-ease), border-color 0.25s var(--lp-ease);
}

.lp .kbGuidesList a:hover,
.lp .kbGuidesList a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 14px 30px rgba(30, 58, 138, 0.1);
    outline: none;
}

.lp .kbGuidesItemTitle {
    display: block;
    font-family: var(--lp-font-display);
    font-size: calc(16.5px * var(--lp-scale));
    font-weight: 800;
    line-height: 1.3;
    color: #1d4ed8;
}

.lp .kbGuidesItemSub {
    display: block;
    margin-top: 5px;
    font-family: var(--lp-font-body);
    font-size: calc(14.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.55;
    color: var(--lp-ink-2);
    text-wrap: pretty;
}

.lp .kbGuidesItemArrow {
    position: absolute;
    top: 50%;
    right: calc(18px * var(--lp-scale));
    transform: translateY(-50%);
    color: #2563eb;
    transition: transform 0.25s var(--lp-ease);
}

.lp .kbGuidesList a:hover .kbGuidesItemArrow {
    transform: translate(4px, -50%);
}

@media (max-width: 1024px) {
    .lp .kbGuides {
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 28px;
    }
}

@media (max-width: 768px) {
    .lp .kbGuides {
        margin-top: 22px;
        padding: 22px 18px;
        row-gap: 20px;
    }

    .lp .kbGuidesTitle {
        font-size: clamp(21px, 5.6vw, 26px);
    }

    .lp .kbGuidesText,
    .lp .kbGuidesItemTitle {
        font-size: 16px;
    }

    .lp .kbGuidesItemSub {
        font-size: 14.5px;
    }

    .lp .kbGuidesHub {
        width: 100%;
        justify-content: center;
    }

    .lp .kbGuidesList a {
        padding: 14px 44px 14px 16px;
    }
}