/* Navbar brand text */
.logo__title {
    font-family: sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
}

/* Space between logo and menu */
.navbar-header-items__center {
    margin-left: 50px;
}

/* On-page TOC: match normal text size */
.toctree-wrapper li[class^="toctree-l"] > a {
    font-size: 1rem;
}

/* Custom text highlights for GUI text, files, inputs, and URLs */

.gui {
    background-color: #f0f0f0;
    padding: 0px 6px;
    color: #000;
    border-radius: 5px;
    display: inline-block;
    font-size: 90%;
}

code.file {
    color: #aa4100;
    background-color: white;
    border: 1px solid #dee2e6;
    padding: 0px 6px;
    border-radius: 5px;
    display: inline-block;
    font-size: 90%;
}
code.file .pre {
    color: #aa4100;
}

code.input {
    font-family: monospace;
    color: firebrick;
    background-color: white;
    border: 1px solid #dee2e6;
    padding: 0px 6px;
    border-radius: 5px;
    display: inline-block;
    font-size: 90%;
}

/* Format ``inline code`` */
code.docutils.literal.notranslate:not(.input):not(.file) {
    padding: 5px 6px 3px;
    background-color: #f7f7f7;
    border-radius: 5px;
}
code.docutils.literal.notranslate:not(.input):not(.file) .pre {
    color:#4F459D;
    font-size: 100%;
}

/* Format code blocks */
div[class^="highlight"] {
    border-radius: 5px;
}
div[class^="highlight"] pre {
    color: #4453C3;
    font-size: 85%;
    padding: 0.5rem;
}

/* Let table text wrap */
.wy-table-responsive table td {
    text-wrap-mode: normal;
    white-space: normal;
}

a.reference.external code.file span {
    font-family: monospace;
    font-weight: normal;
    color: #aa4100;
    font-size:95%;
    border-color: #2a7ae2;
}

/* ── Start page hero ───────────────────────────────────────────────────── */

.op-hero {
    /*background: linear-gradient(160deg, #fdf8ec 0%, #fef3d0 55%, #fdefc0 100%);*/
    /*text-align: center;*/
    padding-top: 3.5rem;
    padding-bottom: 0;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.op-hero::after {
    content: '';
    display: block;
    width: 40%;
    margin: 2rem auto 0;
    border-bottom: 1px solid #e8ddb0;
}

.op-hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a7340;
    margin-bottom: 0.75rem;
}

.op-hero-title {
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--pst-color-text-base);
    margin-top: 0.25rem;
    margin-bottom: 0.6rem;
    border: none;
    border-bottom: none;
}

.op-hero-tagline {
    font-size: 1.05rem;
    color: var(--pst-color-text-muted);
    max-width: 520px;
    margin: 0 0 1.5rem;
    line-height: 1.65;
}

.op-hero-btns {
    margin-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
}

.op-hero-btns .sd-row {
    justify-content: flex-start;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.op-hero-btns .sd-col {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0;
}

.sd-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* sd-stretched-link::after sits at z-index 1 and covers the whole card;
   footer buttons must sit above it so their href takes effect on click. */
.sd-card-footer .sd-btn {
    position: relative;
    z-index: 2;
}

/* Hide the RST title on the start page — hero renders it instead */
#openplaces > h1,
#openplaces > h2 {
    display: none;
}
/* ── Hero two-column layout ─────────────────────────────────────────────── */

.op-hero-image {
    padding-left: 1.5rem;
    padding-right: 4rem;
}

.op-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    padding-top: 15pt;
}

/* PyData theme sets background-color: #fff on .bd-content img in dark mode,
   which shows through the PNG's transparent pixels — override it. */
html[data-theme="dark"] .bd-content .op-hero-image img {
    background-color: transparent;
}

.op-hero-text {
    text-align: left;
}

/* On wide screens: reverse row so image is visually LEFT, text RIGHT */
@media (min-width: 768px) {
    .op-hero > .sd-row {
        flex-direction: row-reverse;
    }
}

/* On narrow screens: normal source order (text top, image below), center text */
@media (max-width: 767px) {
    .op-hero-image {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .op-hero-text {
        text-align: center;
    }
    .op-hero-tagline {
        margin: 0 auto 1.5rem;
        max-width: 480px;
    }
    .op-hero-image img {
        width: 100%;
        margin: 0 auto;
        display: block;
    }
    .op-hero-btns .sd-row {
        justify-content: center;
    }
}

/* ── Examples gallery ──────────────────────────────────────────────────────── */

.op-example-gallery .sd-card-img-top {
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.op-example-gallery .sd-card-body {
    padding: 0.7rem 0.9rem 0.8rem;
}

.op-example-gallery .sd-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.op-example-gallery .sd-card-text {
    font-size: 0.8rem;
    color: var(--pst-color-text-muted);
    line-height: 1.5;
}

/* ── PyData footer ─────────────────────────────────────────────────────────── */

.bd-footer p,
.bd-footer a {
    font-size: 0.8rem;
    color: #999;
}

.bd-footer a:hover {
    color: var(--pst-color-primary);
}

/* Three equal columns: copyright | sphinx version | pydata theme */
.bd-footer .bd-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem 1rem;
    align-items: center;
}

.bd-footer .footer-items__start,
.bd-footer .footer-items__end {
    display: contents;
}

.bd-footer .footer-item {
    text-align: center;
}

/* Stack on mobile */
@media (max-width: 767px) {
    .bd-footer .bd-footer__inner {
        grid-template-columns: 1fr;
    }
}

img.padded-image {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 10px;
}