/* Pyde brand styling — sidebar mark + book chrome accents */

/* Sidebar header: put the Pyde mark above the title list */
.sidebar .sidebar-scrollbox::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    margin: 20px auto 12px auto;
    background-image: url("../assets/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.95;
    filter: brightness(1.05);
}

/* Centered logo block used inside chapter pages (the .pyde-logo-hero class) */
.pyde-logo-hero {
    display: block;
    margin: 32px auto 16px auto;
    max-width: 220px;
    height: auto;
}

/* Caption that sits beneath an inline logo or diagram */
.pyde-figure-caption {
    text-align: center;
    font-style: italic;
    opacity: 0.7;
    font-size: 0.92em;
    margin-top: -8px;
    margin-bottom: 28px;
}

/* Factory loop SVG container */
.pyde-factory-loop {
    display: block;
    margin: 32px auto;
    max-width: 720px;
    width: 100%;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
}

/* ============ SITE-WIDE FOOTER ============ */

.pyde-footer {
    margin-top: 64px;
    padding: 28px 0 40px;
    border-top: 1px solid rgba(127, 127, 127, 0.18);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: inherit;
    opacity: 0.85;
}

.pyde-footer-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.pyde-footer-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88em;
    opacity: 0.75;
    line-height: 1.4;
}

.pyde-footer-mark {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("../assets/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.pyde-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    font-size: 0.86em;
}

.pyde-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    opacity: 0.72;
    transition: opacity 0.15s ease;
}

.pyde-footer-links a:hover {
    opacity: 1;
    text-decoration: none;
}

.pyde-footer-links a svg {
    flex-shrink: 0;
}

.pyde-footer-copy {
    font-size: 0.78em;
    opacity: 0.5;
    letter-spacing: 0.02em;
}

@media (max-width: 540px) {
    .pyde-footer-tagline {
        flex-direction: column;
        gap: 8px;
    }
    .pyde-footer-links {
        gap: 12px;
        font-size: 0.82em;
    }
}
