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

.md-header, .md-header__inner {
    background-color: #fff;
    color: #2A4CDF;
}

.md-header[data-md-state=shadow] {
    box-shadow: 0px 2px 4px -1px rgb(0 0 0 / 20%), 0px 4px 5px 0px rgb(0 0 0 / 14%), 0px 1px 10px 0px rgb(0 0 0 / 12%);
    transition: box-shadow 200ms linear;
}

.md-header__inner {
    height: 80px;
}

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

.md-footer {
    background-color: #2A4CDF;
}

.md-search__form:hover {
    background-color: rgba(0,0,0,.13);
}

.md-typeset h1 {
    color: black;
    font-weight: 700;
}

/* Center the logo on the homepage */
.md-typeset h1:has(img) {
    text-align: center;
    margin-bottom: 1.5em;
}

.md-typeset h1 img {
    display: inline-block;
    margin: 0 auto;
}

.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;
    background-color: #f3e9d9;
}

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

/* Framework grid - similar to home-grid but with distinct styling */
.framework-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 24px;
    row-gap: 24px;
    margin-top: 2em;
    margin-bottom: 2em;
}

.framework-grid div {
    border-radius: 8px;
    padding: 24px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.framework-grid div:hover {
    box-shadow: 0 4px 12px rgba(42, 76, 223, 0.15);
    transform: translateY(-2px);
}

.framework-grid h3 {
    margin-top: 0;
    font-weight: 700;
    color: #2A4CDF;
}

.framework-grid p {
    color: #5f6368;
    line-height: 1.6;
}

.framework-grid a {
    color: #2A4CDF;
    text-decoration: none;
    font-weight: 600;
}

.framework-grid a:hover {
    color: #008A67;
    text-decoration: underline;
}

/* Action buttons styling */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 1.5em 0;
    padding: 0;
}

.action-button {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    text-align: center;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    gap: 6px;
    min-height: 34px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.md-button--primary.action-button {
    background-color: #2A4CDF !important;
    color: white !important;
    border: 1px solid #2A4CDF !important;
}

.md-button--primary.action-button:hover {
    background-color: #1e3bb8 !important;
    border-color: #1e3bb8 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 76, 223, 0.25);
}

.md-button.action-button:not(.md-button--primary) {
    background-color: #f5f5f5 !important;
    color: #5f6368 !important;
    border: 1px solid #d0d0d0 !important;
}

.md-button.action-button:not(.md-button--primary):hover {
    background-color: #e8e8e8 !important;
    color: #2A4CDF !important;
    border-color: #2A4CDF !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 76, 223, 0.15);
}

.action-button svg {
    flex-shrink: 0;
    display: block;
    margin: 0;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    .home-grid,
    .framework-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .action-button {
        width: 100%;
    }
}

/* Jupyter notebook and Plotly plot styling */
.plotly-graph-div {
    width: 100% !important;
    height: auto !important;
}

.jp-Cell {
    margin: 1em 0;
}

.jp-InputArea {
    background-color: var(--md-code-bg-color);
    border-radius: 4px;
    padding: 0.5em;
}

.jp-OutputArea {
    margin-top: 0.5em;
}

/* Ensure notebook outputs display properly */
.jupyter-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Hide right TOC sidebar on notebook pages for cleaner layout */
/* Target pages that contain jupyter-wrapper using body:has() */
body:has(.jupyter-wrapper) .md-sidebar--secondary {
    display: none;
}

/* Expand content area when TOC is hidden on notebook pages */
body:has(.jupyter-wrapper) .md-content {
    max-width: 100%;
}

/* Make notebook content use full width */
body:has(.jupyter-wrapper) .md-main__inner {
    max-width: none;
}

.jupyter-wrapper {
    max-width: 100%;
}

/* Screenshot styling with shadows */
.screenshot {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -1px rgb(0 0 0 / 6%);
    margin: 1em;
    max-width: calc(100% - 2em) !important;
    border-radius: 4px;
}

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

/* Center button alignment */
.md-typeset .md-button.center,
.md-typeset a.md-button.center {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Better notebook cell styling */
.jp-Cell {
    max-width: 100%;
    overflow-x: auto;
}

.jp-InputArea-editor {
    border-radius: 4px;
}

/* Code copy button styling */
.md-clipboard {
    color: var(--md-default-fg-color--lighter);
}

.md-clipboard:hover {
    color: var(--md-accent-fg-color);
}