.md-header__button.md-logo :where(img, svg) {
    width: 100%;
    height: 30px;
}

.md-header--shadow {
    box-shadow:
        0px 2px 4px -1px rgba(0, 0, 0, 0.2),
        0px 4px 5px 0px rgba(0, 0, 0, 0.14),
        0px 1px 10px 0px rgba(0, 0, 0, 0.12);
    transition: box-shadow 200ms linear;
}

.md-header__inner {
    height: 72px;
}

.md-header__topic {
    font-size: 24px;
}

.youtube {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 24px;
    row-gap: 24px;
}

.home-grid div {
    border-radius: 4px;
    padding: 24px;
}

.home-grid h3 {
    margin-top: 0;
    font-weight: 700;
}

.image-container p {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1em;
    margin-top: 1em;
    margin-bottom: 1em;
    align-content: stretch;
}

.image-container img {
    flex-grow: 1;
    width: 100%;
}

.image-container::after {
    content: "";
    display: table;
    clear: both;
}

.screenshot {
    /* border: 1px solid var(--md-primary-fg-color--dark); */
    box-shadow: var(--md-shadow-z3);
    margin: 1em;
    max-width: calc(100% - 2em) !important;
}

.nomad-button {
    display: inline-block;
    /* font-size: 14px; */
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 4px !important;
    border: none !important;
    margin: 0;

    /* Additional styles from the original SCSS */
    letter-spacing: normal;
    text-transform: none;
}

.nomad-button--card-action {
    margin: 1em 0 0 0 !important;
}

/* Make a button center itself when it has .center */
.md-typeset .md-button.center,
.md-typeset a.md-button.center {
    display: block; /* become block so margins apply */
    width: fit-content; /* shrink to content (fallback: max-content) */
    margin-left: auto; /* center */
    margin-right: auto; /* center */
    margin-top: 0.75rem; /* optional spacing */
    margin-bottom: 0.75rem;
}

/* Nicer inline alignment when used inside text */
.md-typeset .md-button {
    line-height: 1.25;
    vertical-align: baseline;
}

.category-image {
    display: inline-block;
    vertical-align: middle;
    max-height: 1em;
    border-radius: 10%;
}

/* CSS compenents for creating an image slider on the docs */
/* Slider holding the images */
.image-slider {
    display: flex;
    overflow: hidden;
    position: relative; /* This ensures that arrows are positioned relative to this container */
    width: 100%;
    max-width: 800px; /* Adjust this as necessary */
    margin: 0 auto;
    justify-content: center; /* Center the images horizontally */
    align-items: center;
}

.image-slider img {
    position: absolute;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Active class for displaying one image at a time */
.image-slider img.active {
    opacity: 1;
    position: relative;
}

/* Styling for the navigation arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

/* Left arrow positioning */
.nav-arrow.left {
    left: 10px; /* Position on the left edge of the container */
}

/* Right arrow positioning */
.nav-arrow.right {
    right: 10px; /* Position on the right edge of the container */
}

.click-zoom {
    text-align: center;
}

.click-zoom input[type="checkbox"] {
    z-index: 0;
    display: none;
}

.click-zoom img {
    transition: transform 0.25s ease;
    z-index: 0;
    cursor: zoom-in;
}

.click-zoom input[type="checkbox"]:checked ~ img {
    transform: scale(2);
    z-index: 0;
    cursor: zoom-out;
}

/* =========================================================
   Light scheme
   ========================================================= */

[data-md-color-scheme="default"] {
    --md-primary-fg-color: #2a4cdf;
    --md-primary-fg-color--light: #5f79e8;
    --md-primary-fg-color--dark: #1d38ab;
    --md-accent-fg-color: #008a67;

    --nomad-logo-primary: #192e86;
    --nomad-logo-secondary: #2a4cdf;
}

[data-md-color-scheme="default"] .md-header,
[data-md-color-scheme="default"] .md-header__inner {
    background-color: #ffffff;
    color: #2a4cdf;
}

[data-md-color-scheme="default"] .md-footer {
    background-color: #2a4cdf;
}

[data-md-color-scheme="default"] .md-search__form:hover {
    background-color: rgba(0, 0, 0, 0.13);
}

[data-md-color-scheme="default"] .md-typeset h1 {
    color: #000000;
    font-weight: 700;
}

[data-md-color-scheme="default"] .home-grid div {
    background-color: #f3e9d9;
}

[data-md-color-scheme="default"] .nomad-button {
    background-color: #2a4cdf;
    color: #ffffff !important;
}

[data-md-color-scheme="default"] .category-pill {
    background-color: rgb(248, 248, 248);
}

[data-md-color-scheme="default"] .nav-arrow {
    background-color: rgba(0, 0, 0, 0.5);
}

[data-md-color-scheme="default"] .nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* =========================================================
   Dark scheme
   ========================================================= */

[data-md-color-scheme="slate"] {
    --md-primary-fg-color: #6c8cff;
    --md-primary-fg-color--light: #91a8ff;
    --md-primary-fg-color--dark: #4b6ce6;
    --md-accent-fg-color: #3bc49a;

    --nomad-logo-primary: #6162a5;
    --nomad-logo-secondary: #8b8cec;
}

[data-md-color-scheme="slate"] .md-header,
[data-md-color-scheme="slate"] .md-header__inner {
    background-color: #161b22;
    color: #e6edf3;
}

[data-md-color-scheme="slate"] .md-footer {
    background-color: #11161d;
}

[data-md-color-scheme="slate"] .md-search__form:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-md-color-scheme="slate"] .md-typeset h1 {
    color: #f5f7fa;
    font-weight: 700;
}

[data-md-color-scheme="slate"] .home-grid div {
    background-color: #242b36;
    color: #e6edf3;
}

[data-md-color-scheme="slate"] .nomad-button {
    background-color: #6c8cff;
    color: #08111f !important;
}

[data-md-color-scheme="slate"] .category-pill {
    background-color: #2b3240;
    color: #e6edf3;
}

[data-md-color-scheme="slate"] .nav-arrow {
    background-color: rgba(255, 255, 255, 0.18);
}

[data-md-color-scheme="slate"] .nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.28);
}

[data-md-color-scheme="default"] .md-header,
[data-md-color-scheme="default"] .md-header__inner {
    background-color: #ffffff;
    color: #2a4cdf;
}

[data-md-color-scheme="default"] .md-footer {
    background-color: #2a4cdf;
}

[data-md-color-scheme="default"] .md-search__form:hover {
    background-color: rgba(0, 0, 0, 0.13);
}

[data-md-color-scheme="default"] .md-typeset h1 {
    color: #000000;
    font-weight: 700;
}

[data-md-color-scheme="default"] .home-grid div {
    background-color: #f3e9d9;
}

[data-md-color-scheme="default"] .nomad-button {
    background-color: #2a4cdf;
    color: #ffffff !important;
}

[data-md-color-scheme="default"] .category-pill {
    background-color: rgb(248, 248, 248);
}

[data-md-color-scheme="default"] .nav-arrow {
    background-color: rgba(0, 0, 0, 0.5);
}

[data-md-color-scheme="default"] .nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* =========================================================
   Dark scheme
   ========================================================= */

[data-md-color-scheme="slate"] {
    --md-primary-fg-color: #6c8cff;
    --md-primary-fg-color--light: #91a8ff;
    --md-primary-fg-color--dark: #4b6ce6;
    --md-accent-fg-color: #3bc49a;

    --nomad-logo-primary: #6162a5;
    --nomad-logo-secondary: #8b8cec;
}

[data-md-color-scheme="slate"] .md-header,
[data-md-color-scheme="slate"] .md-header__inner {
    background-color: #161b22;
    color: #e6edf3;
}

[data-md-color-scheme="slate"] .md-footer {
    background-color: #11161d;
}

[data-md-color-scheme="slate"] .md-search__form:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-md-color-scheme="slate"] .md-typeset h1 {
    color: #f5f7fa;
    font-weight: 700;
}

[data-md-color-scheme="slate"] .home-grid div {
    background-color: #242b36;
    color: #e6edf3;
}

[data-md-color-scheme="slate"] .nomad-button {
    background-color: #6c8cff;
    color: #08111f !important;
}

[data-md-color-scheme="slate"] .category-pill {
    background-color: #2b3240;
    color: #e6edf3;
}

[data-md-color-scheme="slate"] .nav-arrow {
    background-color: rgba(255, 255, 255, 0.18);
}

[data-md-color-scheme="slate"] .nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.28);
}

.training-resources-list {
    display: flex;
    flex-direction: column;
}

.tr-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="slate"] .tr-item {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.tr-item:first-child {
    padding-top: 0.5rem;
}

.tr-date {
    color: var(--md-default-fg-color--light);
    font-size: 0.9em;
    margin-bottom: 0.2rem;
}

.tr-title a {
    font-weight: 700;
    text-decoration: none;
}

.tr-title a:hover {
    text-decoration: underline;
}

.tr-meta-line {
    margin-top: 0.35rem;
    font-size: 0.9em;
    color: var(--md-default-fg-color--light);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.tr-meta-label {
    font-weight: 700;
    color: var(--md-default-fg-color);
}

.tr-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tr-pill {
    display: inline-block;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.03);
    font-size: 0.85em;
    color: var(--md-default-fg-color--light);
    white-space: nowrap;
}

[data-md-color-scheme="slate"] .tr-pill {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--md-default-fg-color--light);
}

.tr-desc-static {
    margin-top: 0.55rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-family: inherit !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: var(--md-default-fg-color--light) !important;
    line-height: 1.55 !important;
}

[data-md-color-scheme="slate"] .tr-desc-static {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.md-typeset details.tr-desc.tr-desc-inline {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0.55rem 0 0 0 !important;
}

.md-typeset details.tr-desc.tr-desc-inline > summary {
    padding: 0.45rem 0.6rem !important;
    margin: 0 !important;
    border-radius: 0.5rem !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;

    font-family: inherit !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: var(--md-default-fg-color--light) !important;
    line-height: 1.55 !important;
}

[data-md-color-scheme="slate"] .md-typeset details.tr-desc.tr-desc-inline > summary {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.md-typeset details.tr-desc.tr-desc-inline > summary::before,
.md-typeset details.tr-desc.tr-desc-inline > summary::after {
    display: none !important;
}

.tr-desc-inline summary {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    cursor: pointer;
    list-style: none;
}

.tr-desc-inline summary::-webkit-details-marker {
    display: none;
}

.tr-text {
    flex: 1 1 auto;
    min-width: 0;

    font-family: inherit !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: inherit !important;
    line-height: inherit !important;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

details.tr-desc-inline[open] .tr-text {
    display: block;
    overflow: visible;
}

.tr-more {
    flex: 0 0 auto;
    margin-left: auto;
    font-weight: 800;
    color: var(--md-primary-fg-color);
    line-height: 1.2;
}

.tr-more-open {
    display: none;
}

details.tr-desc-inline[open] .tr-more-closed {
    display: none;
}

details.tr-desc-inline[open] .tr-more-open {
    display: inline;
}