main img {
    display: block;
    margin: 0 auto;
    max-width: 85%;
    height: auto;
    border-radius: 8px;
    /* Optional touch of styling */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Optional touch of styling */
}

/* mdbook-blame styling */
main>details:last-child {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--table-border-color);
    font-size: 0.85em;
}

main>details:last-child>summary {
    cursor: pointer;
    font-style: italic;
    color: var(--sidebar-fg);
    opacity: 0.8;
    user-select: none;
    outline: none;
}

main>details:last-child>blockquote {
    margin: 15px 0 0 0;
    padding: 10px 15px;
    background-color: var(--sidebar-bg);
    border-left: 3px solid var(--table-border-color);
    border-radius: 0 4px 4px 0;
}

/* ── Download hero ──────────────────────────────────────────── */
.download-hero {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 2rem;
}

.download-card {
    background: var(--sidebar-bg);
    border: 1px solid var(--table-border-color);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.download-icon {
    display: flex;
    justify-content: center;
    color: var(--links);
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.download-title {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    border: none;
    padding: 0;
}

.download-subtitle {
    margin: 0 0 1.5rem;
    opacity: 0.75;
    font-size: 1.1rem;
}

.download-btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: var(--links);
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    transition: opacity 0.18s, transform 0.18s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.download-version {
    margin: 0.9rem 0 0.3rem;
    font-size: 1rem;
    opacity: 0.55;
    font-family: monospace;
}

.download-note {
    margin: 0.4rem 0 0;
    font-size: 1rem;
    opacity: 0.6;
}

/* ── PaperVision promo card ─────────────────────────────────── */
.promo-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0 1rem;
    padding: 2.2rem 2.5rem;
    background: var(--sidebar-bg);
    border: 1px solid var(--table-border-color);
    border-left: 5px solid var(--links);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    flex-wrap: wrap;
}

.promo-icon {
    font-size: 3.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.promo-body {
    flex: 1;
    min-width: 0;
}

.promo-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
}

.promo-desc {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.75;
    color: var(--fg);
    line-height: 1.4;
}

.promo-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--links);
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    transition: opacity 0.18s, transform 0.18s;
    white-space: nowrap;
}

.promo-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .promo-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.8rem 2rem;
    }

    .promo-icon {
        font-size: 2.8rem;
        align-self: flex-start;
    }

    .promo-btn {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        white-space: normal;
    }
}