.footer {
  color: #ffffff;
  background-color: #34495e;
}

.jumbotron {
  background-color: #ffffff;
}

body {
  font-size: 16px;
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    body {
        padding-top: 80px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    body {
        padding-top: 80px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    body {
        padding-top: 120px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    body {
        padding-top: 80px;
    }
}

/* Make footnote [] visible when multiple refs*/
table.footnote td.label {
  color: inherit;
}

pre {
  color: #262626;
}


.panel-keyword {
    border-color: #2c3e50;
}
.panel-keyword > .panel-heading {
    background: #34495e;
    color: #ffffff;
    border-color: #2c3e50;
}

.thumbnail2 {
    height: 550px;
    overflow: auto;
}

.thumbnail3 {
    height: 650px;
    overflow: auto;
}

/* Documentation version switcher (the navbar version label is a dropdown). */
.navbar-version.dropdown {
    cursor: pointer;
}
.navbar-version .dropdown-toggle {
    color: #ffffff;
    text-decoration: none;
}
.navbar-version .dropdown-toggle:hover,
.navbar-version .dropdown-toggle:focus {
    color: #18bc9c;
}
.navbar-version .dropdown-menu {
    min-width: 190px;
}
.navbar-version .dropdown-menu > li > a {
    color: #2c3e50;
}

/* Give section titles room to breathe in the page body. Scoped to the
   main content (div[role="main"]) so the navbar / footer are untouched.
   Bootstrap 3's default heading top-margins are tight, which crowds a
   title against the text above it; widen them, graduating by level. The
   page H1 sits at the top of the content, so it needs almost none. */
div[role="main"] h1 {
    margin-top: 0.3em;
}
div[role="main"] h2 {
    margin-top: 2em;
}
div[role="main"] h3 {
    margin-top: 1.6em;
}
div[role="main"] h4,
div[role="main"] h5,
div[role="main"] h6 {
    margin-top: 1.3em;
}

:root {
    --py-bg: #f6f8f7;
    --py-surface: #ffffff;
    --py-ink: #17313b;
    --py-muted: #5d6d74;
    --py-border: #dfe8e4;
    --py-teal: #0d9488;
    --py-teal-dark: #0f766e;
    --py-gold: #d99a2b;
    --py-coral: #c2410c;
    --py-shadow: 0 18px 45px rgba(18, 49, 58, 0.12);
}

body {
    background:
        linear-gradient(180deg, rgba(246, 248, 247, 0.96), rgba(246, 248, 247, 1) 420px),
        radial-gradient(circle at 16% 10%, rgba(13, 148, 136, 0.16), transparent 32%),
        radial-gradient(circle at 86% 8%, rgba(217, 154, 43, 0.18), transparent 28%);
    color: var(--py-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.68;
}

body.pyretis-home::before {
    background-image:
        linear-gradient(90deg, rgba(246, 248, 247, 0.96), rgba(246, 248, 247, 0.74)),
        var(--py-home-bg);
    background-position: center;
    background-size: cover;
    content: "";
    inset: 0 0 auto 0;
    height: 520px;
    opacity: 0.42;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

a {
    color: var(--py-teal-dark);
}

a:hover,
a:focus {
    color: var(--py-coral);
}

#navbar.navbar {
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-bottom: 1px solid rgba(23, 49, 59, 0.1);
    box-shadow: 0 10px 28px rgba(23, 49, 59, 0.08);
    min-height: 66px;
}

#navbar .container,
body > .container,
.footer .container {
    width: min(1320px, calc(100% - 32px));
}

.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-text,
.navbar-default .navbar-version .dropdown-toggle {
    color: var(--py-ink);
}

.navbar-default .navbar-brand {
    align-items: center;
    display: inline-flex;
    font-size: 20px;
    font-weight: 800;
    height: 66px;
    padding: 0 18px 0 0;
}

.navbar-default .navbar-nav > li > a {
    font-size: 14px;
    font-weight: 700;
    height: 66px;
    line-height: 36px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    background: rgba(13, 148, 136, 0.1);
    color: var(--py-teal-dark);
}

.navbar-version.dropdown {
    margin: 16px 14px 0 0;
}

.navbar-version .dropdown-toggle {
    align-items: center;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.28);
    border-radius: 999px;
    color: var(--py-ink);
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
    line-height: 1;
    padding: 8px 11px;
}

.navbar-version .dropdown-toggle:hover,
.navbar-version .dropdown-toggle:focus {
    background: rgba(13, 148, 136, 0.18);
    color: var(--py-teal-dark);
}

.dropdown-menu {
    border: 1px solid var(--py-border);
    border-radius: 8px;
    box-shadow: var(--py-shadow);
    padding: 8px;
}

.dropdown-menu > li > a {
    border-radius: 6px;
    color: var(--py-ink);
    font-size: 14px;
    padding: 8px 12px;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus,
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: rgba(13, 148, 136, 0.12);
    color: var(--py-teal-dark);
}

.navbar-form {
    margin-top: 14px;
}

.navbar-form .form-control {
    background: #f8faf9;
    border: 1px solid var(--py-border);
    border-radius: 999px;
    box-shadow: none;
    color: var(--py-ink);
    height: 38px;
    min-width: 210px;
    padding: 8px 14px;
}

.py-site-alert,
.py-dev-note {
    background: #b91c1c;
    border: 1px solid #7f1d1d;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    padding: 12px 16px;
}

.py-site-alert {
    margin: 0 auto 18px;
    width: min(1240px, calc(100% - 32px));
}

.py-site-alert a,
.py-dev-note a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: underline;
}

.body.content {
    background: transparent;
    color: var(--py-ink);
    max-width: none;
    padding: 26px 0 56px;
}

.body.content > section:not(#pyretis),
.body.content > div.section:not(#pyretis) {
    background: var(--py-surface);
    border: 1px solid var(--py-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(23, 49, 59, 0.05);
    margin-left: auto;
    margin-right: auto;
    max-width: 1080px;
    padding: clamp(24px, 4vw, 48px);
}

.body.content h1,
.body.content h2,
.body.content h3,
.body.content h4 {
    color: var(--py-ink);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.16;
}

.body.content h1 {
    font-size: clamp(34px, 5vw, 56px);
    margin-bottom: 22px;
}

.body.content h2 {
    border-bottom: 1px solid var(--py-border);
    font-size: 30px;
    padding-bottom: 10px;
}

#pyretis > h1 {
    display: none;
}

.py-home-hero {
    align-items: stretch;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 244, 0.92)),
        linear-gradient(90deg, rgba(13, 148, 136, 0.15), rgba(217, 154, 43, 0.14));
    border: 1px solid var(--py-border);
    border-radius: 8px;
    box-shadow: var(--py-shadow);
    display: grid;
    gap: clamp(34px, 4vw, 66px);
    grid-template-columns: minmax(520px, 1.12fr) minmax(420px, 0.88fr);
    margin: 8px 0 22px;
    overflow: hidden;
    padding: clamp(34px, 5vw, 66px);
}

.py-home-copy {
    align-self: center;
    min-width: 0;
}

.py-home-copy h1 {
    font-size: 64px;
    line-height: 1.02;
    margin: 16px 0 18px;
    max-width: 780px;
}

.py-home-copy p {
    color: #3d5961;
    font-size: 21px;
    line-height: 1.52;
    max-width: 780px;
}

.py-home-kicker {
    color: var(--py-teal-dark);
    font-size: 13px !important;
    font-weight: 800;
    margin-top: 22px;
    text-transform: uppercase;
}

.py-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.py-partner-logos {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.py-partner-logos span {
    color: var(--py-muted);
    flex-basis: 100%;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.py-partner-logos img {
    background: #ffffff;
    border: 1px solid rgba(23, 49, 59, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(23, 49, 59, 0.07);
    height: 52px;
    max-width: 190px;
    object-fit: contain;
    padding: 9px 12px;
    width: auto;
}

.py-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--py-border);
    border-radius: 999px;
    color: var(--py-ink);
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    text-decoration: none;
}

.py-button.primary {
    background: var(--py-teal-dark);
    color: #ffffff;
}

.py-button:hover,
.py-button:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.py-home-visual {
    align-items: center;
    display: grid;
    gap: 22px;
    justify-self: center;
    max-width: 560px;
    width: 100%;
}

.py-home-logo {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(23, 49, 59, 0.1);
    padding: 22px;
    place-self: center;
    width: 100%;
}

.py-path-visual {
    aspect-ratio: 16 / 7;
    background: #ffffff;
    border: 1px solid var(--py-border);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(23, 49, 59, 0.1);
    min-height: 220px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.py-path-visual::before {
    background:
        linear-gradient(90deg, rgba(13, 148, 136, 0.12) 1px, transparent 1px),
        linear-gradient(180deg, rgba(13, 148, 136, 0.1) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    inset: 0;
    opacity: 0.42;
    position: absolute;
}

.py-path-visual svg {
    inset: 0;
    position: absolute;
    width: 100%;
    height: 100%;
}

.py-path {
    fill: none;
    stroke-linecap: round;
    stroke-width: 4.5;
}

.py-path-one,
.py-path-two {
    stroke: rgba(13, 148, 136, 0.82);
}

.py-path-three {
    stroke: rgba(217, 154, 43, 0.82);
}

.py-path-four {
    stroke: rgba(194, 65, 12, 0.78);
}

.py-bead {
    fill: var(--py-teal);
    stroke: #ffffff;
    stroke-width: 2.5;
}

.py-bead-alt {
    fill: var(--py-gold);
}

.py-state {
    align-items: center;
    background:
        radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.74) 44%, rgba(13, 148, 136, 0.22)),
        rgba(255, 255, 255, 0.92);
    border: 4px solid rgba(13, 148, 136, 0.55);
    border-radius: 50%;
    box-shadow: 0 16px 30px rgba(23, 49, 59, 0.16);
    color: var(--py-ink);
    display: flex;
    font-size: 30px;
    font-weight: 900;
    height: 28%;
    justify-content: center;
    position: absolute;
    top: 36%;
    width: 13%;
}

.py-state-a {
    left: 6.5%;
}

.py-state-b {
    right: 6.5%;
}

.thumbnail.thumbnail2 {
    background: #ffffff;
    border: 1px solid var(--py-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(23, 49, 59, 0.06);
    height: 520px;
    margin: 0 0 20px;
    overflow: hidden;
    padding: 0;
}

.thumbnail.thumbnail2 > a.image-reference,
.thumbnail.thumbnail2 > a.reference {
    background: #f8faf9;
    border-bottom: 1px solid var(--py-border);
    display: block;
    overflow: hidden;
}

.thumbnail.thumbnail2 img.img-responsive {
    aspect-ratio: 1 / 1;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.thumbnail.thumbnail2 .caption {
    padding: 16px 16px 18px;
}

.thumbnail.thumbnail2 .caption .h4 {
    color: var(--py-ink);
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.thumbnail.thumbnail2 .caption p {
    font-size: 14px;
    line-height: 1.48;
    margin: 0 0 10px;
}

.thumbnail.thumbnail2 .caption p:last-child a {
    border: 1px solid rgba(13, 148, 136, 0.28);
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 10px;
    text-decoration: none;
}

.thumbnail.thumbnail3 img.img-responsive {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.pyvisa-paper-strip {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 30px;
}

.pyvisa-paper-strip figure {
    margin: 0;
    min-width: 0;
}

.pyvisa-case-media {
    background: #ffffff;
    border: 1px solid var(--py-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(23, 49, 59, 0.08);
    overflow: hidden;
}

.pyvisa-paper-strip img {
    background: #ffffff;
    display: block;
    object-fit: contain;
    width: 100%;
}

.pyvisa-case-media img + img {
    border-top: 1px solid var(--py-border);
}

.pyvisa-paper-strip figcaption {
    color: var(--py-muted);
    font-size: 13px;
    line-height: 1.45;
    margin-top: 9px;
}

.panel-keyword {
    border-color: var(--py-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(23, 49, 59, 0.05);
}

.panel-keyword > .panel-heading {
    background: #eef5f2;
    border-color: var(--py-border);
    color: var(--py-ink);
    font-weight: 800;
}

pre,
.highlight {
    background: #1e2930;
    border: 0;
    border-radius: 8px;
    color: #eef8f6;
}

pre {
    color: #eef8f6;
    padding: 16px;
}

.footer {
    background: #17313b;
    border-top: 4px solid var(--py-teal);
    color: rgba(255, 255, 255, 0.86);
    margin-top: 40px;
    padding: 28px 0;
}

.footer a {
    color: #9ee7dd;
}

@media (max-width: 991px) {
    .py-home-hero {
        grid-template-columns: 1fr;
    }

    .py-home-copy h1 {
        font-size: 56px;
    }

    .py-state {
        font-size: 28px;
    }

    .py-home-visual {
        max-width: 620px;
    }

    .thumbnail.thumbnail2 {
        height: 500px;
    }
}

@media (max-width: 767px) {
    #navbar .container,
    body > .container,
    .footer .container,
    .py-site-alert {
        width: calc(100% - 20px);
    }

    .navbar-default .navbar-toggle {
        border: 1px solid var(--py-border);
        margin-top: 13px;
    }

    .navbar-collapse {
        background: #ffffff;
        border-top: 1px solid var(--py-border);
    }

    .navbar-default .navbar-nav > li > a {
        height: auto;
        line-height: 1.4;
    }

    .py-home-hero {
        padding: 22px;
    }

    .py-home-copy h1 {
        font-size: 42px;
    }

    .py-home-copy p {
        font-size: 18px;
    }

    .py-partner-logos img {
        height: 46px;
        max-width: 150px;
    }

    .py-state {
        font-size: 24px;
    }

    .py-path-visual {
        aspect-ratio: 4 / 3;
        min-height: 230px;
    }

    .thumbnail.thumbnail2 {
        height: auto;
        min-height: 0;
    }

    .pyvisa-paper-strip {
        grid-template-columns: 1fr;
    }
}
