/* Shared Learn-tab presentation. Demo styles must not override this layer. */
.learn-key-members {
    padding-top: 15px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
}

.learn-explanation {
    padding-top: 15px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.article-reference {
    margin: 18px 0 0;
    padding: 13px 15px;
    color: #536176;
    background: #fff8fc;
    border: 1px solid #efb8d4;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.55;
}

.article-reference a {
    color: #b80c68;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: #dd5b9e;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.article-reference a::after {
    content: " \2197";
    display: inline-block;
    font-size: .9em;
    text-decoration: none;
    transition: transform .15s ease;
}

.article-reference a:hover,
.article-reference a:focus-visible {
    color: #8e084f;
}

.article-reference a:hover::after,
.article-reference a:focus-visible::after {
    transform: translate(1px, -1px);
}

.learn-key-members h3,
.learn-explanation h3,
.learn-packages h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.learn-key-members .api-note {
    margin: 10px 0;
}

.learn-packages {
    padding-top: 15px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.learn-package-list {
    display: grid;
    gap: 10px;
}

.learn-package {
    min-width: 0;
    padding: 12px;
    background: #f7f9fc;
    border: 1px solid #dce3ed;
    border-radius: 6px;
}

.learn-package__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.learn-package__heading a {
    min-width: 0;
    color: #a80b60;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #dd78ac;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.learn-package__heading a::after {
    content: " \2197";
    display: inline-block;
    font-size: .85em;
    text-decoration: none;
}

.learn-package__heading a code {
    color: inherit;
    font-size: 10px;
}

.learn-package__name {
    min-width: 0;
    color: #253b57;
    font-size: 10px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.learn-package__heading > span {
    flex: 0 0 auto;
    padding: 3px 6px;
    color: #46698f;
    background: #e7f0fb;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 750;
}

.learn-package p {
    margin: 8px 0 10px;
    color: #69778b;
    font-size: 9px;
    line-height: 1.5;
}

.learn-package__command {
    display: block;
    padding: 8px 9px;
    color: #253b57;
    background: #fff;
    border: 1px solid #e1e6ee;
    border-radius: 4px;
    font-size: 8px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
}

.learn-step + .learn-step,
.learn-code-block + .learn-step {
    margin-top: 22px;
}

.learn-step h4,
.learn-generated-snippets > h4 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.learn-step p {
    margin: 0;
}

.learn-callout {
    margin: 18px 0 0;
}

.learn-generated-snippets {
    margin-top: 20px;
}

.learn-generated-snippets .learn-code-intro {
    margin: 0 0 10px;
}

.learn-generated-snippets .learn-code-block + .learn-code-block {
    margin-top: 12px;
}

.learn-code-block {
    max-width: 100%;
    margin: 10px 0 0;
    overflow: hidden;
    background: #f7f8fb;
    border: 1px solid #e5e8ed;
    border-radius: 6px;
}

.learn-code-header {
    min-height: 38px;
    padding: 7px 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    background: #fff;
    border-bottom: 1px solid #e5e8ed;
    font-size: 11px;
    font-weight: 700;
}

.learn-code-header img {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    object-fit: contain;
}

.learn-code {
    max-width: 100%;
    margin: 0;
    padding: 12px 13px;
    overflow: auto;
    background: transparent;
    border: 0;
}

.learn-code code.hljs {
    display: block;
    padding: 0;
    background: transparent;
    color: #242529;
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 10px;
    line-height: 1.65;
    white-space: pre;
}
