.markdown-body,
body,
button,
input,
select,
textarea {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}

.markdown-body code,
.markdown-body kbd,
.markdown-body pre,
.markdown-body samp {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas,
        "Liberation Mono", monospace;
}

.header {
    z-index: 1000;
    align-items: center;
    height: 76px;
    padding: 0 30px;
    background: linear-gradient(105deg, #031b35 0%, #064e72 52%, #075985 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.24);
    box-shadow: 0 5px 18px rgba(3, 27, 53, 0.28);
}

.spacer {
    padding: 38px;
}

.header .pizza {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 14px 0 0 !important;
    color: #ffffff;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.header .pizza:hover,
.header .pizza:focus-visible {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.18);
    outline: none;
    transform: translateY(-1px);
}

.header .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    max-width: none;
    padding: 0;
}

.title .logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: 214px;
    height: 48px;
    margin: 0;
    float: none;
    overflow: hidden;
}

.title .logo img {
    display: block;
    width: 214px;
    height: auto;
    margin: 0;
    float: none;
    filter: brightness(0) invert(1);
    object-fit: contain;
    object-position: left center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.header .search {
    display: block;
    float: none;
}

.header .search form {
    margin: 0;
}

.header .search input {
    box-sizing: border-box;
    width: min(310px, 22vw);
    height: 38px;
    padding: 8px 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    outline: none;
    transition: background-color 0.18s ease, border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.header .search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.header .search input:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.34);
}

.header .search input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

.header .header-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 10px 18px;
    color: #ffffff;
    background: rgba(3, 27, 53, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 7px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.18s ease, box-shadow 0.18s ease,
        transform 0.18s ease;
}

.header .header-download:hover {
    color: #064e72;
    background: #dff7ff;
    border-color: #dff7ff;
    box-shadow: 0 8px 22px rgba(3, 27, 53, 0.24);
    text-decoration: none;
    transform: translateY(-2px);
}

.header .header-download:focus-visible {
    color: #ffffff;
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.page-toc {
    box-sizing: border-box;
    position: fixed;
    top: 82px;
    left: calc(350px + min(980px, calc(100vw - 700px)) + 28px);
    width: 320px;
    max-height: calc(100vh - 106px);
    padding: 16px 18px;
    overflow-y: auto;
    background: #fafbfc;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

/* Keep the source TOC hidden until JavaScript moves it into the right rail. */
.side > .page-toc-source-heading,
.side > #toc {
    display: none;
}

.page-toc #toc {
    display: block;
}

.page-toc h2 {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d8dee4;
    font-size: 18px;
}

.glossary-search label {
    display: block;
    margin-bottom: 7px;
    color: #172b4d;
    font-size: 13px;
    font-weight: 700;
}

.glossary-search input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    padding: 8px 11px;
    color: #172b4d;
    background: #ffffff;
    border: 1px solid #a8cede;
    border-radius: 7px;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.glossary-search input:focus {
    border-color: #087ca7;
    box-shadow: 0 0 0 3px rgba(22, 184, 233, 0.18);
}

.glossary-search-status {
    margin: 10px 0 0;
    color: #075985;
    font-size: 13px;
    font-weight: 700;
}

.glossary-search-hint {
    margin: 5px 0 0;
    color: #57606a;
    font-size: 12px;
    line-height: 1.45;
}

.glossary-page .page-toc #toc {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #d8dee4;
}

.glossary-page .markdown-body h2.glossary-term-highlight {
    margin-left: -14px;
    padding: 9px 12px 9px 10px;
    color: #172b4d;
    background: #fff3c4;
    border-bottom-color: #e5be45;
    border-left: 4px solid #b77900;
    border-radius: 0 7px 7px 0;
    box-shadow: 0 3px 10px rgba(128, 81, 0, 0.1);
    transition: background-color 0.18s ease, border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.page-toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-toc li {
    margin: 7px 0;
    line-height: 1.35;
    white-space: nowrap;
}

.page-toc li.child {
    padding-left: 12px;
}

.page-toc a {
    display: block;
    overflow: hidden;
    padding: 4px 8px;
    color: #087ca7;
    border-left: 2px solid transparent;
    border-radius: 0 5px 5px 0;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-overflow: ellipsis;
    transition: color 0.15s ease, background-color 0.15s ease,
        border-color 0.15s ease, transform 0.15s ease;
}

.page-toc a:hover,
.page-toc a:active,
.page-toc a:focus-visible {
    color: #075985;
    background: rgba(14, 165, 233, 0.09);
    border-left-color: #16b8e9;
    text-decoration: none;
    transform: translateX(2px);
}

.page-toc a.current,
.page-toc a[aria-current="location"] {
    color: #075985;
    background: rgba(14, 165, 233, 0.12);
    border-left-color: #16b8e9;
    font-weight: 700;
}

.markdown-body h1[id],
.markdown-body h2[id],
.markdown-body h3[id],
.markdown-body h4[id] {
    scroll-margin-top: 88px;
}

.side {
    box-sizing: border-box;
    width: 310px;
    padding-top: 78px;
    padding-left: 0;
    padding-right: 0;
    background: #ffffff;
    border-right: 1px solid #d8dee4;
    font-size: 16px;
}

.side h2 {
    margin: 0;
    padding: 18px 24px 14px;
    color: #087ca7;
    border-bottom: 1px solid #d8dee4;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.side > ul {
    margin: 0;
    padding-left: 0;
}

.side ul ul {
    margin: 0;
    padding-left: 0;
}

.side li {
    margin: 0;
    list-style: none;
}

.side .nav-section {
    margin: 0;
    border-bottom: 1px solid #eaeef2;
}

.side details {
    margin: 0;
}

.side summary {
    position: relative;
    min-height: 56px;
    box-sizing: border-box;
    padding: 18px 42px 18px 24px;
    color: #172b4d;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.side summary::-webkit-details-marker {
    display: none;
}

.side .section-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.side .section-toggle::after {
    position: absolute;
    top: 50%;
    right: 24px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6e7781;
    border-bottom: 2px solid #6e7781;
    content: "";
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.18s ease;
}

.side details[open] > summary .section-toggle::after {
    transform: translateY(-35%) rotate(225deg);
}

.side .section-toggle:hover,
.side .section-toggle:focus-visible {
    background: rgba(14, 165, 233, 0.08);
    outline: 2px solid #16b8e9;
    outline-offset: -2px;
}

.side summary:hover,
.side summary:focus-visible {
    color: #075985;
    background: #f6f8fa;
    outline: none;
}

.side summary .section-link {
    position: absolute;
    inset: 0 48px 0 0;
    display: flex;
    align-items: center;
    padding: 0 0 0 24px;
    color: inherit;
    background: transparent;
    border-radius: 0;
    font: inherit;
    line-height: inherit;
}

.side summary .section-link:hover,
.side summary .section-link:focus-visible {
    color: inherit;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
}

.side .active-section > details > summary {
    color: #075985;
}

.side a {
    display: block;
    padding: 10px 24px 10px 38px;
    color: #44546a;
    border-radius: 0;
    font-size: 14px;
    font-weight: 450;
    line-height: 1.35;
    transition: color 0.15s ease, background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.side .course-nav-badge,
.mobile-full-navigation .course-nav-badge {
    display: inline-block;
    margin-left: 7px;
    padding: 2px 7px;
    color: #805100;
    background: #fff3cf;
    border: 1px solid #e5be45;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: 1px;
}

.desktop-section-navigation .course-optional-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.desktop-section-navigation .course-optional-link .course-nav-badge {
    flex: 0 0 auto;
    margin-left: auto;
}

.side .nav-section .nav-section {
    border-bottom: 0;
}

.side .nav-section .nav-section summary {
    padding: 11px 42px 11px 38px;
    font-size: 14px;
    font-weight: 650;
}

.side .nav-section .nav-section a {
    padding-left: 52px;
}

.side a:hover,
.side a:focus-visible {
    color: #075985;
    background: #f6f8fa;
    text-decoration: none;
    outline: none;
}

.side li.active > a,
.side a.current {
    color: #075985;
    background: #e7f6fb;
    box-shadow: inset 4px 0 0 #16b8e9;
    font-weight: 650;
}

.side > ul > li:not(.nav-section) {
    border-bottom: 1px solid #eaeef2;
}

.side > ul > li:not(.nav-section) > a {
    min-height: 56px;
    box-sizing: border-box;
    padding: 18px 24px;
    color: #172b4d;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.side > ul > li:not(.nav-section) > a:hover,
.side > ul > li:not(.nav-section) > a:focus-visible,
.side > ul > li.active:not(.nav-section) > a,
.side > ul > li:not(.nav-section) > a.current {
    color: #075985;
}

.markdown-body a:not(.github-example-button) {
    color: #087ca7;
    font-weight: 600;
    text-decoration-color: rgba(22, 184, 233, 0.45);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.markdown-body a:not(.github-example-button):hover,
.markdown-body a:not(.github-example-button):focus-visible {
    color: #075985;
    text-decoration-color: #16b8e9;
}

.markdown-body .back-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    margin-top: 22px;
    padding: 11px 17px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #075985 0%, #087ca7 48%, #16b8e9 100%);
    border: 1px solid rgba(22, 184, 233, 0.8);
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(8, 124, 167, 0.25), inset 0 1px rgba(255, 255, 255, 0.18);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.markdown-body .back-button:hover,
.markdown-body .back-button:focus-visible {
    color: #ffffff !important;
    box-shadow: 0 9px 22px rgba(8, 124, 167, 0.38), 0 0 0 1px rgba(22, 184, 233, 0.16);
    filter: saturate(1.12) brightness(1.06);
    text-decoration: none !important;
}

.markdown-body .learning-path {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 28px;
}

.markdown-body .learning-path a {
    position: relative;
    display: flex;
    min-height: 122px;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    overflow: hidden;
    color: #24292f;
    background: #ffffff;
    border: 1px solid #d8dee4;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(31, 35, 40, 0.06);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease,
        transform 0.15s ease;
}

.markdown-body .learning-path a::after,
.markdown-body .example-categories a::after,
.markdown-body .course-start-cards > a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #075985, #16b8e9);
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.32s ease;
}

.markdown-body .learning-path a:hover::after,
.markdown-body .learning-path a:focus-visible::after,
.markdown-body .example-categories a:hover::after,
.markdown-body .example-categories a:focus-visible::after,
.markdown-body .course-start-cards > a:hover::after,
.markdown-body .course-start-cards > a:focus-visible::after {
    transform: scaleX(1);
}

.markdown-body .learning-path a:hover,
.markdown-body .learning-path a:focus-visible {
    color: #24292f;
    border-color: #16b8e9;
    box-shadow: 0 6px 16px rgba(8, 124, 167, 0.14);
    text-decoration: none;
    transform: translateY(-2px);
}

.markdown-body .learning-path span {
    color: #087ca7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.markdown-body .learning-path strong {
    font-size: 17px;
    line-height: 1.25;
}

.markdown-body .learning-path small {
    color: #57606a;
    font-size: 14px;
    line-height: 1.4;
}

.markdown-body .example-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    width: 100%;
    gap: 16px;
    margin: 10px 0 28px;
}

.markdown-body .ml-concept-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 30px;
}

.markdown-body .ml-concept-cards .ml-concept-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    padding: 20px;
    color: #24292f;
    background: linear-gradient(145deg, #ffffff, #f7fbfd);
    border: 1px solid #d8e4ea;
    border-top: 3px solid #16b8e9;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(31, 35, 40, 0.07);
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.markdown-body .ml-concept-cards .ml-concept-card:hover,
.markdown-body .ml-concept-cards .ml-concept-card:focus-visible {
    color: #24292f;
    border-color: #38bdf8;
    box-shadow: 0 10px 24px rgba(3, 105, 161, 0.14);
    outline: none;
    text-decoration: none;
    transform: translateY(-3px);
}

.markdown-body .ml-concept-cards .ml-concept-card:focus-visible {
    outline: 3px solid rgba(22, 184, 233, 0.32);
    outline-offset: 3px;
}

.markdown-body .ml-concept-cards .ml-concept-card > span:first-child {
    color: #087ca7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.markdown-body .ml-concept-cards h3,
.markdown-body .ml-concept-cards p,
.markdown-body .ml-concept-cards pre {
    margin: 0;
}

.markdown-body .ml-concept-cards h3 {
    padding: 0;
    border: 0;
    font-size: 19px;
}

.markdown-body .ml-concept-cards p {
    color: #4b5563;
    line-height: 1.55;
}

.markdown-body .ml-concept-cards pre {
    padding: 12px 14px;
    overflow-x: auto;
    background: #eef5f8;
    border: 1px solid #d7e4ea;
    border-radius: 7px;
    box-shadow: none;
    font-size: 13px;
}

.markdown-body .ml-concept-cards .ml-concept-card-action {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 2px;
    color: #087ca7;
    font-weight: 750;
    transition: color 0.18s ease, transform 0.18s ease;
}

.markdown-body .ml-concept-cards .ml-concept-card:hover .ml-concept-card-action,
.markdown-body .ml-concept-cards .ml-concept-card:focus-visible .ml-concept-card-action {
    color: #0369a1;
    transform: translateX(3px);
}

/* Compact comparison table used for classification approaches. */
.markdown-body .classification-comparison {
    margin: 1.35rem 0 1.75rem;
    overflow-x: auto;
    border: 1px solid #c9e5ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 57, 83, 0.07);
}

.markdown-body .classification-comparison:focus-visible {
    outline: 3px solid rgba(0, 183, 221, 0.3);
    outline-offset: 3px;
}

.markdown-body .classification-comparison table {
    width: 100%;
    min-width: 920px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

.markdown-body .classification-comparison th {
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 2px solid #72d4e8;
    background: #073b61;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.035em;
    text-align: left;
    text-transform: uppercase;
}

.markdown-body .classification-comparison td {
    padding: 0.9rem 1rem;
    border: 0;
    border-bottom: 1px solid #dcebf1;
    color: #263f53;
    line-height: 1.45;
    vertical-align: top;
}

.markdown-body .classification-comparison tbody tr:nth-child(even) {
    background: #f4fafc;
}

.markdown-body .classification-comparison tbody tr:last-child td {
    border-bottom: 0;
}

.markdown-body .classification-comparison td:first-child strong {
    color: #073b61;
}

.markdown-body .classification-comparison .target-name {
    color: #183b52;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 400;
}

.markdown-body .classification-comparison .classification-outcomes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0;
}

.markdown-body .classification-comparison .classification-outcomes code {
    padding: 0.16rem 0.46rem;
    border: 1px solid #a9dce8;
    border-radius: 999px;
    background: #eaf8fb;
    color: #075f7d;
    font-size: 0.74rem;
    font-weight: 750;
    white-space: nowrap;
}

.markdown-body .classification-comparison:not(.regression-comparison) table {
    min-width: 1080px;
}

.markdown-body .architecture-comparison table {
    min-width: 1050px;
}

.markdown-body .classification-comparison td:last-child {
    white-space: nowrap;
}

.markdown-body .classification-comparison td:last-child a {
    color: #007ba7;
    font-weight: 700;
    text-decoration: none;
}

.markdown-body .classification-comparison td:last-child a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.markdown-body .classification-comparison td:last-child a:focus-visible {
    border-radius: 3px;
    outline: 3px solid rgba(0, 183, 221, 0.3);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .markdown-body .ml-concept-cards {
        grid-template-columns: 1fr;
    }
}

.markdown-body .example-categories a {
    position: relative;
    display: flex;
    min-height: 154px;
    flex-direction: column;
    gap: 8px;
    padding: 16px 44px 16px 16px;
    overflow: hidden;
    color: #24292f;
    background: #ffffff;
    border: 1px solid #d8dee4;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(31, 35, 40, 0.06);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
        transform 0.2s ease;
}

.markdown-body .example-categories .example-category-featured {
    grid-column: 1 / -1;
    min-height: 118px;
    justify-content: center;
    padding-right: 72px;
    background: #f5fbfd;
    border-color: #b8e7f3;
}

.markdown-body .example-category-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.markdown-body .example-category-heading em {
    padding: 3px 8px;
    color: #805100;
    background: #fff3cf;
    border: 1px solid #e5be45;
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.markdown-body .example-categories a:hover,
.markdown-body .example-categories a:focus-visible {
    color: #24292f;
    border-color: #16b8e9;
    box-shadow: 0 6px 16px rgba(8, 124, 167, 0.14);
    text-decoration: none;
    transform: translateY(-3px);
}

.markdown-body .example-categories strong {
    font-size: 17px;
    line-height: 1.25;
}

.markdown-body .example-categories small {
    color: #57606a;
    font-size: 14px;
    line-height: 1.45;
}

.markdown-body .example-categories .category-arrow {
    position: absolute;
    right: 16px;
    bottom: 14px;
    color: #087ca7;
    font-size: 21px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.markdown-body .example-categories a:hover .category-arrow,
.markdown-body .example-categories a:focus-visible .category-arrow {
    color: #16a8d5;
    transform: translateX(4px);
}

.markdown-body .developer-guides-list {
    overflow: hidden;
    margin: 12px 0 28px;
    background: #ffffff;
    border: 1px solid #d8dee4;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(31, 35, 40, 0.06);
}

.markdown-body .developer-guides-list a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 72px;
    padding: 14px 18px;
    color: #24292f;
    border-bottom: 1px solid #eaeef2;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.markdown-body .developer-guides-list a:last-child {
    border-bottom: 0;
}

.markdown-body .developer-guides-list a:hover,
.markdown-body .developer-guides-list a:focus-visible {
    color: #24292f;
    background: #f6fbfd;
    box-shadow: inset 4px 0 0 #16b8e9;
    text-decoration: none;
}

.markdown-body .developer-guides-list strong {
    color: #075985;
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
}

@media only screen and (max-width: 900px) {
    .markdown-body .learning-path {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 680px) {
    .markdown-body .example-categories {
        grid-template-columns: 1fr;
    }

    .markdown-body .example-categories .example-category-featured {
        grid-column: auto;
    }
}

@media only screen and (max-width: 520px) {
    .markdown-body .learning-path {
        grid-template-columns: 1fr;
    }

    .markdown-body .learning-path a {
        min-height: auto;
    }

    .markdown-body .example-categories a {
        min-height: 128px;
    }

    .markdown-body .developer-guides-list a {
        min-height: 72px;
    }
}

.side .about {
    display: none;
}

.page-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid #d8dee4;
}

.page-navigation .prev,
.page-navigation .next {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    float: none;
    min-width: 126px;
    padding: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #075985 0%, #087ca7 48%, #16b8e9 100%);
    border: 1px solid rgba(22, 184, 233, 0.8);
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(6, 78, 114, 0.32), inset 0 1px rgba(255, 255, 255, 0.2);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.page-navigation .prev a,
.page-navigation .next a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 16px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.page-navigation .page-nav-arrow {
    display: block;
    flex: 0 0 auto;
    width: 23px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-navigation .prev:hover,
.page-navigation .next:hover,
.page-navigation .prev:focus-within,
.page-navigation .next:focus-within,
.page-navigation .prev:focus-visible,
.page-navigation .next:focus-visible {
    color: #ffffff;
    box-shadow: 0 9px 22px rgba(6, 78, 114, 0.42), 0 0 0 1px rgba(22, 184, 233, 0.22);
    filter: saturate(1.12) brightness(1.06);
    text-decoration: none;
}

.page-navigation .prev a:focus-visible,
.page-navigation .next a:focus-visible {
    outline: none;
}

.page-navigation .prev:hover a,
.page-navigation .next:hover a,
.page-navigation .prev:focus-visible a,
.page-navigation .next:focus-visible a {
    color: #ffffff;
}

.code-block {
    position: relative;
    margin-bottom: 18px;
}

.code-block pre {
    padding-top: 42px;
}

.markdown-body pre,
.markdown-body .highlight pre {
    color: #172b4d;
    background: #f3f7fa;
    border: 1px solid #c7d3dc;
    border-left: 4px solid #16a8d5;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(31, 35, 40, 0.08);
}

/* Concept diagrams are explanatory visuals, not executable code. */
.markdown-body pre:has(> code.language-text) {
    color: #374151;
    background: #f7f7f7;
    border: 1px dashed #c9cdd2;
    border-left: 1px dashed #c9cdd2;
    border-radius: 6px;
    box-shadow: none;
}

/* Reusable theory figures use the course palette and remain separate from code. */
.markdown-body .course-figure {
    width: min(100%, 880px);
    margin: 24px auto 30px;
}

.markdown-body .course-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #c9e8f3;
    border-radius: 12px;
    background: #f8fdff;
}

.markdown-body .course-figure figcaption {
    max-width: 760px;
    margin: 10px auto 0;
    color: #52657a;
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: center;
}

@media only screen and (max-width: 600px) {
    .markdown-body .course-figure {
        margin: 20px auto 26px;
    }

    .markdown-body .course-figure figcaption {
        padding: 0 6px;
        font-size: 0.86rem;
        text-align: left;
    }
}

.markdown-body :not(pre) > code {
    color: #075985;
    background: #edf5f8;
    border: 1px solid #d2e2e9;
    border-radius: 4px;
    font-weight: 500;
}

.copy-code-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #24292f;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 7px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease,
        border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.copy-code-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.copy-code-button::after {
    position: absolute;
    right: 0;
    bottom: calc(100% + 7px);
    padding: 5px 8px;
    color: #ffffff;
    background: #24292f;
    border-radius: 4px;
    content: attr(data-tooltip);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.copy-code-button:hover::after,
.copy-code-button:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.copy-code-button:hover {
    color: #087ca7;
    background: #eefaff;
    border-color: #16b8e9;
    box-shadow: 0 4px 12px rgba(8, 124, 167, 0.18);
    transform: translateY(-1px);
}

.copy-code-button:focus-visible {
    outline: 2px solid #0969da;
    outline-offset: 2px;
}

.copy-code-button.copied {
    color: #1a7f37;
    border-color: #1a7f37;
}

.markdown-body .github-example-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    color: #ffffff !important;
    background: #24292f;
    border: 1px solid #24292f;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 1px 0 rgba(27, 31, 36, 0.1);
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.markdown-body .github-example-button:hover {
    background: #32383f;
    border-color: #32383f;
    box-shadow: 0 5px 12px rgba(27, 31, 36, 0.2);
    transform: translateY(-1px);
}

.markdown-body .github-example-button:focus-visible {
    outline: 2px solid #0969da;
    outline-offset: 2px;
}

.markdown-body .github-example-button svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.markdown-body .resource-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 24px;
}

.markdown-body .resource-actions .github-example-button {
    flex: 0 0 auto;
    margin-left: auto;
}

.markdown-body .explanation-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 14px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #075985 0%, #087ca7 48%, #16b8e9 100%);
    border: 1px solid rgba(22, 184, 233, 0.8);
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(8, 124, 167, 0.25), inset 0 1px rgba(255, 255, 255, 0.18);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.markdown-body .explanation-button::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    content: "i";
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.markdown-body .explanation-button:hover,
.markdown-body .explanation-button:focus-visible {
    color: #ffffff !important;
    background: linear-gradient(135deg, #08658b 0%, #0988b2 48%, #20b9e2 100%);
    box-shadow: 0 4px 12px rgba(8, 124, 167, 0.25), inset 0 1px rgba(255, 255, 255, 0.18);
    filter: none;
    text-decoration: none;
}

.markdown-body .explanation-button:focus-visible {
    outline: 3px solid rgba(22, 184, 233, 0.3);
    outline-offset: 2px;
}

.markdown-body :is(.admonition, details.info, details.warning, details.danger) {
    overflow: hidden;
    margin: 24px 0;
    padding: 0 18px 14px;
    border: 1px solid;
    border-left-width: 4px;
    border-radius: 9px;
    box-shadow: 0 3px 10px rgba(31, 35, 40, 0.07);
}

.markdown-body :is(.admonition-title, details.info > summary, details.warning > summary, details.danger > summary) {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 -18px 14px;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 800;
}

.markdown-body :is(details.info, details.warning, details.danger) > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.markdown-body :is(details.info, details.warning, details.danger):not([open]) {
    padding-bottom: 0;
}

.markdown-body :is(details.info, details.warning, details.danger):not([open]) > summary {
    margin-bottom: 0;
}

.markdown-body :is(details.info, details.warning, details.danger) > summary::-webkit-details-marker {
    display: none;
}

.markdown-body :is(details.info, details.warning, details.danger) > summary::after {
    margin-left: auto;
    content: "⌄";
    font-size: 19px;
    line-height: 1;
    transition: transform 0.18s ease;
}

.markdown-body :is(details.info, details.warning, details.danger)[open] > summary::after {
    transform: rotate(180deg);
}

.markdown-body :is(.admonition-title, details.info > summary, details.warning > summary, details.danger > summary)::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    content: "!";
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.markdown-body details.info {
    color: #075985;
    background: #f7fcfe;
    border-color: #67c4e3;
}

.markdown-body details.info > summary {
    color: #075985;
    background: #e3f5fb;
}

.markdown-body details.info > summary::before {
    color: #ffffff;
    background: #087ca7;
    content: "i";
    font-family: Georgia, serif;
}

.markdown-body :is(.admonition.warning, details.warning) {
    color: #4d3a05;
    background: #fffdf4;
    border-color: #e5be45;
}

.markdown-body pre.console-output {
    margin: 12px 0 20px;
    padding: 14px 16px;
    overflow-x: auto;
    color: #24292f;
    background: #eeeeee;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: "Liberation Mono", "DejaVu Sans Mono", Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
}

.markdown-body :is(.admonition.warning .admonition-title, details.warning > summary) {
    color: #4d3a05;
    background: #fff3c4;
}

.markdown-body :is(.admonition.warning .admonition-title, details.warning > summary)::before {
    color: #ffffff;
    background: #b77900;
}

.markdown-body :is(.admonition.danger, details.danger) {
    color: #5f1d1d;
    background: #fff8f8;
    border-color: #e36b6b;
}

.markdown-body :is(.admonition.danger .admonition-title, details.danger > summary) {
    color: #721c24;
    background: #ffe1e1;
}

.markdown-body :is(.admonition.danger .admonition-title, details.danger > summary)::before {
    color: #ffffff;
    background: #c62828;
    content: "▲";
    font-size: 11px;
}

.markdown-body :is(.admonition, details.info, details.warning, details.danger) > :last-child {
    margin-bottom: 0;
}

@media only screen and (max-width: 620px) {
    .markdown-body .resource-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .markdown-body .resource-actions .github-example-button,
    .markdown-body .resource-actions .explanation-button {
        justify-content: center;
        margin-left: 0;
    }
}

/* Course entry cards. */
.markdown-body .course-start-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 30px;
}

.markdown-body .course-start-cards > a {
  position: relative;
  display: flex;
  min-height: 205px;
  padding: 22px;
  overflow: hidden;
  flex-direction: column;
  color: #172b4d;
  background: linear-gradient(150deg, #ffffff 12%, #effaff 100%);
  border: 1px solid #c9e8f3;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(3, 78, 114, 0.09);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.markdown-body .course-start-cards > a:hover,
.markdown-body .course-start-cards > a:focus-visible {
  color: #075985;
  border-color: #38bdf8;
  box-shadow: 0 13px 30px rgba(3, 105, 161, 0.16);
  outline: none;
  text-decoration: none;
  transform: translateY(-3px);
}

.course-start-cards strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.course-start-cards small {
  color: #52657a;
  font-size: 14px;
  line-height: 1.5;
}

.course-start-link {
  margin-top: auto;
  padding-top: 18px;
  color: #087ca7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Dedicated Deep Netts home page. */
.home-page .markdown-body,
.home-page .markdown-body.cake {
  width: auto;
  max-width: none;
  margin: 0 !important;
  padding: 0 0 70px;
}

.home-page .page-toc,
.home-page .markdown-body > hr {
  display: none;
}

.home-page #body {
  width: 100%;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 560px;
  padding: 82px max(7vw, 54px) 140px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 50px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 73% 27%, rgba(56, 189, 248, 0.28), transparent 25%),
    linear-gradient(120deg, #031b35 0%, #064e72 48%, #0798c7 100%);
}

.home-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 80px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 65%, 100% 100%, 0 100%);
  content: "";
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  transform: translateY(-24px);
}

.home-hero-mark {
  position: absolute;
  top: 50%;
  right: max(8vw, 72px);
  z-index: 1;
  width: clamp(280px, 30vw, 480px);
  aspect-ratio: 1;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  transform: translateY(-57%);
}

.markdown-body .home-hero-mark img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  object-fit: contain;
}

.home-eyebrow {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 14px;
  color: #d8f6ff;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.markdown-body .home-hero h1 {
  max-width: 760px;
  margin: 0 0 22px !important;
  padding: 0;
  color: #ffffff;
  border: 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.markdown-body .home-hero p {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.55;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.markdown-body .home-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.markdown-body .home-primary-action {
  color: #064e72;
  background: #ffffff;
}

.markdown-body a.home-secondary-action {
  color: #ffffff !important;
  background: rgba(3, 27, 53, 0.18);
}

.markdown-body .home-hero-actions a:hover,
.markdown-body .home-hero-actions a:focus-visible {
  color: #064e72 !important;
  background: #dff7ff;
  box-shadow: 0 8px 22px rgba(3, 27, 53, 0.24);
  outline: none;
  text-decoration: none;
  transform: translateY(-2px);
}

.markdown-body a.course-next-lesson {
  display: inline-grid;
  align-items: center;
  box-sizing: border-box;
  width: min(430px, 100%);
  margin: 8px 0 12px;
  padding: 13px 16px;
  color: #ffffff;
  background: linear-gradient(105deg, #064e72, #087ca7);
  border: 1px solid #16b8e9;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(3, 27, 53, 0.16);
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

@media only screen and (max-width: 520px) {
  .markdown-body a.course-next-lesson {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }

  .markdown-body .course-next-lesson > span:first-child {
    grid-column: 1 / -1;
  }
}

.markdown-body .course-next-lesson > span:first-child {
  color: #bcefff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.markdown-body .course-next-lesson strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 750;
}

.markdown-body .course-next-lesson strong small {
  margin-left: 6px;
  padding: 2px 6px;
  color: #805100;
  background: #fff3cf;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.markdown-body .course-next-lesson > span:last-child {
  font-size: 22px;
  transition: transform 0.18s ease;
}

.markdown-body a.course-next-lesson:hover,
.markdown-body a.course-next-lesson:focus-visible {
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(3, 27, 53, 0.24);
  outline: 3px solid rgba(56, 189, 248, 0.32);
  outline-offset: 3px;
  text-decoration: none;
  transform: translateY(-2px);
}

.markdown-body .course-next-lesson:hover > span:last-child,
.markdown-body .course-next-lesson:focus-visible > span:last-child {
  transform: translateX(4px);
}

@media only screen and (min-width: 901px) and (max-width: 1280px) {
  .home-hero-content {
    max-width: 60vw;
  }

  .home-hero-mark {
    right: 6vw;
    width: 28vw;
  }
}

.home-neural-visual {
  position: relative;
  z-index: 1;
  width: min(430px, 36vw);
  height: min(430px, 36vw);
  justify-self: center;
  border: 1px solid rgba(186, 230, 253, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.17), rgba(3, 27, 53, 0.06) 64%);
}

.neural-ring,
.neural-node,
.neural-line {
  position: absolute;
  display: block;
}

.neural-ring {
  border: 1px solid rgba(186, 230, 253, 0.28);
  border-radius: 50%;
}

.neural-ring-one { inset: 15%; }
.neural-ring-two { inset: 32%; }

.neural-node {
  z-index: 2;
  width: 24px;
  height: 24px;
  background: #e0f7ff;
  border: 6px solid #16b8e9;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(125, 211, 252, 0.7);
}

.neural-node-one { top: 19%; left: 22%; }
.neural-node-two { top: 29%; right: 18%; }
.neural-node-three { right: 31%; bottom: 18%; }
.neural-node-four { bottom: 27%; left: 17%; }

.neural-line {
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(186, 230, 253, 0.75), transparent);
  transform-origin: left center;
}

.neural-line-one { top: 24%; left: 25%; width: 58%; transform: rotate(12deg); }
.neural-line-two { top: 32%; left: 25%; width: 60%; transform: rotate(67deg); }
.neural-line-three { top: 65%; left: 19%; width: 57%; transform: rotate(-18deg); }

.home-intro {
  max-width: 820px;
  margin: 34px auto 38px;
  padding: 0 28px;
  text-align: center;
}

.home-intro > span,
.home-feature-grid > a > span {
  color: #0783af;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.markdown-body .home-intro h2 {
  margin: 10px 0 14px;
  border: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.markdown-body .home-intro p {
  color: #52657a;
  font-size: 17px;
  line-height: 1.65;
}

.home-feature-grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.markdown-body .home-feature-grid > a {
  display: flex;
  min-height: 190px;
  padding: 24px;
  flex-direction: column;
  color: #172b4d;
  background: #ffffff;
  border: 1px solid #d6e8ef;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(3, 78, 114, 0.08);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.markdown-body .home-feature-grid > a:hover,
.markdown-body .home-feature-grid > a:focus-visible {
  color: #075985;
  border-color: #38bdf8;
  box-shadow: 0 13px 30px rgba(3, 105, 161, 0.14);
  outline: none;
  text-decoration: none;
  transform: translateY(-3px);
}

.home-feature-grid strong {
  margin: 14px 0 9px;
  font-size: 17px;
}

.home-feature-grid small {
  color: #52657a;
  font-size: 14px;
  line-height: 1.55;
}

@media only screen and (max-width: 900px) {
  .markdown-body .course-start-cards,
  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    min-height: auto;
    padding: 68px 34px 140px;
    grid-template-columns: 1fr;
  }

  .home-hero-mark {
    display: none;
  }

  .home-neural-visual {
    display: none;
  }
}

@media only screen and (max-width: 620px) {
  .markdown-body .course-start-cards,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 52px 22px 120px;
  }

  .markdown-body .home-hero h1 {
    font-size: 40px;
  }

  .markdown-body .home-hero p {
    font-size: 17px;
  }

  .home-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.markdown-body a:not(.github-example-button)[href*="github.com/deepnetts/cookbook-examples/"][href*="/examples/"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 3px 0;
    padding: 8px 13px;
    color: #ffffff !important;
    background: #24292f;
    border: 1px solid #24292f;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 1px 0 rgba(27, 31, 36, 0.1);
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.markdown-body a:not(.github-example-button)[href*="github.com/deepnetts/cookbook-examples/"][href*="/examples/"]::before {
    width: 17px;
    height: 17px;
    background: currentColor;
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C3.58 0 0 3.64 0 8.13c0 3.59 2.29 6.64 5.47 7.71.4.08.55-.18.55-.39 0-.19-.01-.83-.01-1.51-2.01.38-2.53-.5-2.69-.96-.09-.23-.48-.96-.82-1.15-.28-.15-.68-.53-.01-.54.63-.01 1.08.59 1.23.83.72 1.23 1.87.88 2.33.67.07-.53.28-.88.51-1.08-1.78-.21-3.64-.9-3.64-4.01 0-.89.31-1.62.82-2.19-.08-.21-.36-1.04.08-2.16 0 0 .67-.22 2.2.84A7.5 7.5 0 0 1 8 3.92a7.5 7.5 0 0 1 2 .27c1.53-1.06 2.2-.84 2.2-.84.44 1.12.16 1.95.08 2.16.51.57.82 1.3.82 2.19 0 3.12-1.87 3.8-3.65 4.01.29.25.54.74.54 1.5 0 1.08-.01 1.95-.01 2.22 0 .21.15.47.55.39A8.16 8.16 0 0 0 16 8.13C16 3.64 12.42 0 8 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C3.58 0 0 3.64 0 8.13c0 3.59 2.29 6.64 5.47 7.71.4.08.55-.18.55-.39 0-.19-.01-.83-.01-1.51-2.01.38-2.53-.5-2.69-.96-.09-.23-.48-.96-.82-1.15-.28-.15-.68-.53-.01-.54.63-.01 1.08.59 1.23.83.72 1.23 1.87.88 2.33.67.07-.53.28-.88.51-1.08-1.78-.21-3.64-.9-3.64-4.01 0-.89.31-1.62.82-2.19-.08-.21-.36-1.04.08-2.16 0 0 .67-.22 2.2.84A7.5 7.5 0 0 1 8 3.92a7.5 7.5 0 0 1 2 .27c1.53-1.06 2.2-.84 2.2-.84.44 1.12.16 1.95.08 2.16.51.57.82 1.3.82 2.19 0 3.12-1.87 3.8-3.65 4.01.29.25.54.74.54 1.5 0 1.08-.01 1.95-.01 2.22 0 .21.15.47.55.39A8.16 8.16 0 0 0 16 8.13C16 3.64 12.42 0 8 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.markdown-body a:not(.github-example-button)[href*="github.com/deepnetts/cookbook-examples/"][href*="/examples/"]:hover {
    color: #ffffff !important;
    background: #32383f;
    border-color: #32383f;
    box-shadow: 0 5px 12px rgba(27, 31, 36, 0.2);
    transform: translateY(-1px);
}

.markdown-body .back-button::after,
.page-navigation .prev::after,
.page-navigation .next::after {
    position: absolute;
    top: -45%;
    left: -70%;
    z-index: 1;
    width: 42%;
    height: 190%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    content: "";
    pointer-events: none;
    transform: rotate(18deg);
    transition: left 0.55s ease;
}

.markdown-body .back-button:hover::after,
.page-navigation .prev:hover::after,
.page-navigation .next:hover::after {
    left: 130%;
}

.markdown-body .back-button:focus-visible,
.page-navigation .prev:focus-visible,
.page-navigation .next:focus-visible {
    outline: 3px solid rgba(22, 184, 233, 0.42);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .markdown-body .back-button,
    .markdown-body .github-example-button,
    .markdown-body a:not(.github-example-button)[href*="github.com/deepnetts/cookbook-examples/"][href*="/examples/"],
    .page-navigation .prev,
    .page-navigation .next,
    .copy-code-button {
        transition: none;
    }

    .markdown-body .back-button::after,
    .page-navigation .prev::after,
    .page-navigation .next::after {
        display: none;
    }
}

@media only screen and (min-width: 1281px) {
    .markdown-body,
    .markdown-body.cake {
        max-width: 980px;
        margin-right: 350px !important;
        margin-left: 350px !important;
    }
}

@media only screen and (max-width: 1280px) {
    .markdown-body,
    .markdown-body.cake {
        margin-right: 0 !important;
        margin-left: 330px !important;
    }

    .page-toc {
        position: static;
        left: auto;
        width: auto;
        max-height: none;
        margin: 82px 25px 20px 340px;
    }
}

@media only screen and (max-width: 480px) {
    .markdown-body,
    .markdown-body.cake {
        margin: 0 auto !important;
    }

    .page-toc {
        margin: 82px 15px 0;
    }
}

/* Let documentation use the extra canvas exposed by wide screens and browser
   zoom-out, while keeping line lengths under control on very large displays. */
@media only screen and (min-width: 1281px) {
    .has-section-sidebar .markdown-body,
    .has-section-sidebar .markdown-body.cake {
        width: calc(100vw - 718px);
        max-width: 1600px;
        margin-right: 0 !important;
        margin-left: 350px !important;
    }

    .no-section-sidebar:not(.home-page) .markdown-body,
    .no-section-sidebar:not(.home-page) .markdown-body.cake {
        width: calc(100vw - 408px);
        max-width: 1600px;
        margin-right: 0 !important;
        margin-left: 40px !important;
    }

    .has-section-sidebar .page-toc {
        right: auto;
        left: calc(378px + min(1600px, calc(100vw - 718px)));
    }

    .no-section-sidebar:not(.home-page) .page-toc {
        right: auto;
        left: calc(68px + min(1600px, calc(100vw - 408px)));
    }
}

/* Example category galleries */
.example-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 30px 0 36px;
}

.markdown-body a.example-gallery-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: #172b4d;
  background: #ffffff;
  border: 1px solid #cddfed;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(6, 56, 91, 0.08);
  text-decoration: none !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.markdown-body a.example-gallery-card:hover {
  color: #172b4d;
  background: #ffffff;
  border-color: #58bde3;
  box-shadow: 0 12px 28px rgba(6, 56, 91, 0.14);
  transform: translateY(-3px);
}

.markdown-body a.example-gallery-card:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.42);
  outline-offset: 3px;
}

.example-gallery-media {
  display: flex;
  height: 210px;
  flex: 0 0 210px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  background: linear-gradient(145deg, #f4faff 0%, #e9f5fb 100%);
  border-bottom: 1px solid #d9e8f2;
}

.example-gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.example-gallery-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.example-gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.example-gallery-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: #006f9f;
  background: #e6f6fc;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.example-gallery-tag-advanced {
  color: #805100;
  background: #fff3cf;
}

.example-gallery-content > strong {
  margin-top: 13px;
  color: #102a43;
  font-size: 19px;
  line-height: 1.3;
}

.example-gallery-content > span:not(.example-gallery-tag):not(.example-gallery-tags):not(.example-gallery-link) {
  margin-top: 9px;
  color: #52677b;
  font-size: 14px;
  line-height: 1.55;
}

.example-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: #007eae;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.example-gallery-link span {
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease;
}

.example-gallery-card:hover .example-gallery-link span {
  transform: translateX(3px);
}

.markdown-body a.example-gallery-card-advanced {
  border-color: #a8cede;
}

@media only screen and (max-width: 760px) {
  .example-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .example-gallery-media {
    height: 190px;
    flex-basis: 190px;
  }
}

.markdown-body .github-action-right {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 4px;
}

.markdown-body #body > p:first-child:has(
  > a[href*="github.com/deepnetts/cookbook-examples/"][href*="/examples/"]
) {
  float: right;
  width: fit-content;
  margin: 0 0 12px 20px;
}

.markdown-body #body > .github-example-button:first-child {
  display: flex;
  float: right;
  width: fit-content;
  margin: 0 0 12px 20px;
}

.markdown-body .github-project-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.markdown-body .example-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
}

.markdown-body .example-footer-actions > p {
  margin: 0;
}

.markdown-body .example-footer-actions .github-project-action > a,
.markdown-body .example-footer-actions .back-button {
  box-sizing: border-box;
  min-height: 40px;
}

.markdown-body .example-footer-actions .back-button {
  margin-top: 0;
}

@media only screen and (max-width: 620px) {
  .markdown-body #body > p:first-child:has(
    > a[href*="github.com/deepnetts/cookbook-examples/"][href*="/examples/"]
  ),
  .markdown-body #body > .github-example-button:first-child {
    float: none;
    margin: 0 0 16px auto;
  }

  .markdown-body .example-footer-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .markdown-body .example-footer-actions > p,
  .markdown-body .example-footer-actions .github-project-action {
    display: flex;
    justify-content: flex-end;
  }
}

@media only screen and (max-width: 768px) {
  .header {
    padding: 0 14px;
  }

  .header .pizza {
    margin-right: 8px !important;
  }

  .header .title {
    gap: 14px;
  }

  .title .logo,
  .title .logo img {
    width: 158px;
  }

  .header .search input {
    width: min(220px, 29vw);
  }

  .header .header-download {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media only screen and (max-width: 620px) {
  .header .search {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }
}

@media only screen and (max-width: 400px) {
  .header {
    padding: 0 8px;
  }

  .header .pizza {
    width: 32px;
    height: 34px;
    margin-right: 5px !important;
  }

  .header .title {
    gap: 7px;
  }

  .title .logo,
  .title .logo img {
    width: 126px;
  }

  .header .header-download {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .header .scrh {
    margin-left: 3px;
  }
}

/* Keras-style primary navigation and contextual section sidebar. */
.header-navigation {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: clamp(18px, 1.75vw, 34px);
  margin-left: 18px;
}

.header-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #38c8ef;
  border-radius: 3px 3px 0 0;
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.header-navigation a:hover,
.header-navigation a:focus-visible,
.header-navigation a.active {
  color: #ffffff;
  text-decoration: none;
}

.header-navigation a:hover::after,
.header-navigation a:focus-visible::after,
.header-navigation a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-navigation a:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.9);
  outline-offset: 5px;
}

.mobile-full-navigation {
  display: none;
}

.mobile-navigation-header,
.mobile-navigation-close {
  display: none;
}

.desktop-section-navigation ul {
  margin: 0;
  padding: 8px 0;
}

.desktop-section-navigation li {
  border-bottom: 1px solid #eef2f5;
}

.desktop-section-navigation li:last-child {
  border-bottom: 0;
}

.desktop-section-navigation a {
  min-height: 46px;
  box-sizing: border-box;
  padding: 13px 24px;
}

.desktop-section-navigation .example-context-group.active-section > .example-category-link {
  color: #075985;
  font-weight: 650;
}

.desktop-section-navigation .example-context-group > ul {
  padding: 0;
  background: #fbfdfe;
  border-top: 1px solid #eef2f5;
}

.desktop-section-navigation .example-context-group > ul a {
  min-height: 40px;
  padding: 10px 24px 10px 38px;
  font-size: 13px;
  font-weight: 450;
}

@media only screen and (min-width: 1101px) {
  .header .pizza {
    display: none;
  }

  .has-section-sidebar .side,
  .has-section-sidebar .side.chess {
    display: block;
    visibility: visible;
  }

  .no-section-sidebar .side {
    display: none;
  }

  .no-section-sidebar .markdown-body,
  .no-section-sidebar .markdown-body.cake {
    margin-left: 40px !important;
  }
}

@media only screen and (max-width: 1280px) {
  .header .search {
    display: none;
  }
}

@media only screen and (max-width: 1100px) {
  .header-navigation {
    display: none;
  }

  .header .pizza {
    display: inline-flex;
  }

  .desktop-section-navigation {
    display: none;
  }

  .mobile-full-navigation {
    display: block;
  }

  .side {
    display: none;
    visibility: hidden;
  }

  .side.chess {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: block;
    width: 100vw;
    height: 100dvh;
    padding: 0;
    overflow-y: auto;
    visibility: visible;
    background: #ffffff;
    border: 0;
    box-shadow: none;
  }

  body.mobile-navigation-open {
    overflow: hidden;
  }

  .side.chess .mobile-full-navigation {
    width: 100%;
    margin: 0;
    padding: 0 0 48px;
  }

  .mobile-navigation-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    margin: 0 0 20px;
    padding: 0 clamp(20px, 5vw, 56px);
    color: #ffffff;
    background: linear-gradient(105deg, #031b35 0%, #064e72 52%, #075985 100%);
    box-shadow: 0 5px 18px rgba(3, 27, 53, 0.2);
  }

  .side .mobile-navigation-header h2 {
    margin: 0;
    padding: 0;
    color: #ffffff;
    border: 0;
    font-size: 15px;
  }

  .mobile-navigation-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-navigation-close:hover,
  .mobile-navigation-close:focus-visible {
    background: rgba(56, 189, 248, 0.18);
    border-color: #7dd3fc;
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
  }

  .mobile-full-navigation > ul {
    margin: 0;
    padding: 8px 0;
  }

  .mobile-full-navigation > ul > li {
    margin: 0;
    overflow: visible;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #d8e4eb;
    border-radius: 0;
  }

  .mobile-full-navigation > ul > li:first-child {
    border-top: 1px solid #d8e4eb;
  }

  .mobile-full-navigation > ul > li > a,
  .mobile-full-navigation > ul > li > details > summary {
    min-height: 68px;
  }

  .mobile-full-navigation > ul > li > a {
    display: flex;
    align-items: center;
    padding: 20px clamp(24px, 7vw, 80px);
    font-size: 17px;
  }

  .mobile-full-navigation > ul > li > details > summary {
    padding: 22px calc(clamp(24px, 7vw, 80px) + 48px) 22px clamp(24px, 7vw, 80px);
  }

  .mobile-full-navigation > ul > li > details > summary .section-link {
    padding-left: clamp(24px, 7vw, 80px);
  }

  .mobile-full-navigation > ul > li > details > summary .section-toggle {
    right: clamp(10px, 4vw, 42px);
  }

  .mobile-full-navigation > ul > li + li {
    margin-top: 8px;
    border-top: 1px solid #edf2f5;
  }

  .markdown-body,
  .markdown-body.cake,
  .has-section-sidebar .markdown-body,
  .no-section-sidebar .markdown-body {
    margin-right: 25px !important;
    margin-left: 25px !important;
  }

  .page-toc {
    margin-left: 25px;
  }
}

@media only screen and (max-width: 620px) {
  .header .title {
    min-width: 0;
  }

  .header .header-download {
    flex: 0 0 auto;
  }

  .side.chess {
    width: 100vw;
    box-shadow: none;
  }
}

/* Keep the dedicated home canvas full-width after global layout breakpoints. */
.home-page.no-section-sidebar .markdown-body,
.home-page.no-section-sidebar .markdown-body.cake {
  width: auto;
  max-width: none;
  margin: 0 !important;
  padding-right: 0;
  padding-left: 0;
}

/* Give the standalone Getting Started guide more breathing room on desktop. */
@media only screen and (min-width: 1101px) {
  .getting-started-page.no-section-sidebar .markdown-body,
  .getting-started-page.no-section-sidebar .markdown-body.cake {
    width: calc(100vw - 448px);
    margin-left: 80px !important;
  }

  .getting-started-page.no-section-sidebar .page-toc,
  .getting-started-page.no-section-sidebar .page-toc-rail {
    left: calc(108px + min(1600px, calc(100vw - 448px)));
  }
}

/* Contextual FAQ at the end of relevant sections. */
.page-faq {
  box-sizing: border-box;
  width: 100%;
  margin-top: 38px;
  background: #ffffff;
  border: 1px solid #cbdde5;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(3, 78, 114, 0.08);
  overflow: hidden;
}

.page-faq > summary,
.page-faq-questions details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  cursor: pointer;
}

.page-faq summary::-webkit-details-marker {
  display: none;
}

.page-faq > summary {
  min-height: 62px;
  padding: 0 22px;
  color: #075985;
  background: linear-gradient(110deg, #f8fdff, #edfaff);
  font-size: 17px;
  font-weight: 800;
}

.page-faq > summary:hover,
.page-faq > summary:focus-visible {
  color: #064e72;
  background: #e5f7fc;
  outline: none;
}

.page-faq > summary:focus-visible,
.page-faq-questions details > summary:focus-visible {
  box-shadow: inset 0 0 0 2px #16b8e9;
}

.page-faq-toggle,
.page-faq-questions details > summary > span:last-child {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.page-faq-toggle::before,
.page-faq-toggle::after,
.page-faq-questions details > summary > span:last-child::before,
.page-faq-questions details > summary > span:last-child::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease;
}

.page-faq-toggle::after,
.page-faq-questions details > summary > span:last-child::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-faq[open] > summary .page-faq-toggle::after,
.page-faq-questions details[open] > summary > span:last-child::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.page-faq-questions {
  padding: 8px 20px 18px;
  border-top: 1px solid #dcecf2;
}

.page-faq-questions details {
  border-bottom: 1px solid #e5edf1;
}

.page-faq-questions details:last-child {
  border-bottom: 0;
}

.page-faq-questions details > summary {
  min-height: 52px;
  padding: 0 4px;
  color: #263b50;
  font-size: 15px;
  font-weight: 700;
}

.page-faq-questions details > summary:hover,
.page-faq-questions details > summary:focus-visible {
  color: #087ca7;
  outline: none;
}

.page-faq-questions details > p {
  margin: -2px 34px 17px 4px !important;
  color: #52657a;
  font-size: 14px;
  line-height: 1.6;
}

/* Lightweight per-page feedback. */
.page-feedback.awaiting-placement {
  visibility: hidden;
}

.page-feedback {
  width: fit-content;
  min-width: 210px;
  margin-top: 34px;
  padding: 2px 0 4px;
}

.page-feedback.in-page-toc-rail {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 18px 0 0;
  padding: 0 18px 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.page-feedback.in-page-toc-rail .page-feedback-form {
  box-sizing: border-box;
  width: 100%;
}

@media only screen and (min-width: 1281px) {
  .page-toc-rail {
    box-sizing: border-box;
    position: fixed;
    z-index: 10;
    top: 82px;
    left: calc(350px + min(980px, calc(100vw - 700px)) + 28px);
    width: 320px;
    max-height: calc(100vh - 106px);
    overflow-y: auto;
  }

  .page-toc-rail .page-toc {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
  }
}

@media only screen and (max-width: 1280px) {
  .page-toc-rail {
    display: contents;
  }
}

.page-feedback-title {
  margin: 0 0 9px !important;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
}

.page-feedback-choices {
  display: inline-flex;
  padding: 2px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 999px;
}

.page-feedback-choices button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  padding: 0;
  color: #7d8590;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.page-feedback-choices button:hover,
.page-feedback-choices button:focus-visible {
  color: #075985;
  background: #e7f6fb;
  outline: none;
}

.page-feedback-choices button:focus-visible {
  box-shadow: inset 0 0 0 2px #16b8e9;
}

.page-feedback-choices button.selected,
.page-feedback-choices button[data-feedback-value="not-helpful"].selected {
  color: #7a271a;
  background: #fee4e2;
}

.page-feedback-choices button[data-feedback-value="helpful"].selected {
  color: #067647;
  background: #d1fadf;
}

.page-feedback-choices button[data-feedback-value="neutral"].selected {
  color: #475467;
  background: #f2f4f7;
}

.page-feedback-choices button:disabled {
  cursor: default;
  opacity: 0.72;
}

.page-feedback-choices svg {
  width: 22px;
  height: 22px;
  fill: #e4e7ec;
  stroke: currentColor;
  stroke-width: 1.25;
}

.page-feedback-choices .face-eye {
  fill: currentColor;
  stroke: none;
}

.page-feedback-choices .face-mouth {
  fill: none;
  stroke-linecap: round;
}

.page-feedback-form {
  position: relative;
  width: 280px;
  margin-top: 12px;
  padding: 12px 12px 48px;
  background: #ffffff;
  border: 2px solid #fda29b;
  border-radius: 18px;
}

.page-feedback-form label {
  display: block;
  margin-bottom: 7px;
  color: #475467;
  font-size: 13px;
  font-weight: 600;
}

.page-feedback-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  padding: 0;
  resize: vertical;
  color: #172b4d;
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 14px;
}

.page-feedback-form button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 7px 14px;
  color: #ffffff;
  background: #e11d48;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.page-feedback-form button:hover,
.page-feedback-form button:focus-visible {
  background: #be123c;
  outline: 2px solid rgba(225, 29, 72, 0.3);
  outline-offset: 2px;
}

.page-feedback-thanks {
  margin: 12px 0 0 !important;
  color: #039855;
  font-size: 14px;
  font-weight: 600;
}

.page-feedback-thanks span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-right: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
}

@media only screen and (max-width: 480px) {
  .page-faq > summary {
    min-height: 58px;
    padding: 0 16px;
    font-size: 15px;
  }

  .page-faq-questions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .page-feedback-form {
    box-sizing: border-box;
    width: min(280px, calc(100vw - 30px));
  }
}

@media only screen and (min-width: 1281px) {
  .has-section-sidebar .page-toc-rail {
    right: auto;
    left: calc(378px + min(1600px, calc(100vw - 718px)));
  }

  .no-section-sidebar:not(.home-page) .page-toc-rail {
    right: auto;
    left: calc(68px + min(1600px, calc(100vw - 408px)));
  }
}

/* Compact header used on narrow viewports and at high browser zoom. */
@media only screen and (max-width: 1100px) {
  .header {
    position: fixed;
    justify-content: space-between;
  }

  .header .title {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .title .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 56px;
    height: 56px;
    margin: 0;
    overflow: hidden;
    transform: translate(-50%, -50%);
  }

  .title .logo img {
    position: absolute;
    top: 50%;
    left: 3px;
    display: block;
    width: 248px;
    max-width: none;
    height: auto;
    margin: 0;
    transform: translateY(-50%);
  }

  .header .header-download {
    display: none;
  }

  .header .scrh {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0;
    color: #ffffff;
    border-radius: 7px;
    cursor: pointer;
  }

  .header .scrh:hover,
  .header .scrh:focus-visible {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.18);
    outline: 2px solid rgba(125, 211, 252, 0.9);
    outline-offset: 2px;
  }

  .header .scrh svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .header .search.show {
    position: fixed;
    top: 84px;
    right: 16px;
    display: block !important;
    z-index: 1100;
    padding: 8px;
    background: #064e72;
    border: 1px solid rgba(125, 211, 252, 0.45);
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(3, 27, 53, 0.3);
  }

  .header .search.show input {
    display: block;
    width: min(360px, calc(100vw - 48px));
  }
}

@media only screen and (max-width: 400px) {
  .title .logo {
    width: 48px;
    height: 48px;
  }

  .title .logo img {
    left: 3px;
    width: 214px;
  }
}

/* Keep the complete documentation canvas centered after it reaches its
   maximum width, which is especially noticeable at strong zoom-out. */
@media only screen and (min-width: 2299px) {
  .header .title {
    max-width: 2298px;
    margin-right: auto;
    margin-left: auto;
  }

  .has-section-sidebar .side {
    left: calc(50vw - 1149px);
  }

  .has-section-sidebar .markdown-body,
  .has-section-sidebar .markdown-body.cake {
    margin-left: calc(50vw - 799px) !important;
  }

  .has-section-sidebar .page-toc,
  .has-section-sidebar .page-toc-rail {
    left: calc(50vw + 829px);
  }

  .no-section-sidebar:not(.home-page) .markdown-body,
  .no-section-sidebar:not(.home-page) .markdown-body.cake {
    margin-left: calc(50vw - 974px) !important;
  }

  .no-section-sidebar:not(.home-page) .page-toc,
  .no-section-sidebar:not(.home-page) .page-toc-rail {
    left: calc(50vw + 654px);
  }
}
