/* In-wiki technical-manual viewer — emitted by ManualViewerPages.php. */

.manual-viewer {
    display: flex;
    flex-direction: column;
    gap: var(--behnke-basic);
    margin-top: var(--behnke-basic);
}

.manual-viewer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(2 * var(--behnke-basic));
    font-size: var(--behnke-normal-font-size);
}

.manual-viewer__version {
    color: var(--behnke-text-muted, #555);
}

.manual-viewer__download {
    display: inline-flex;
    align-items: center;
    gap: calc(0.5 * var(--behnke-basic));
    padding: calc(0.5 * var(--behnke-basic)) var(--behnke-basic);
    background: var(--behnke-primary, #0064a8);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.manual-viewer__download:hover,
.manual-viewer__download:focus {
    filter: brightness(1.1);
}

/* Iframe height: a real reader inside the wiki layout. dvh on supporting
   browsers so iOS bottom-bar resize doesn't shift things around. */
.manual-viewer__frame {
    width: 100%;
    height: 80vh;
    height: 80dvh;
    min-height: 500px;
    border: 1px solid var(--behnke-border, #ddd);
    border-radius: 4px;
    background: #fafafa;
}

@media (max-width: 700px) {
    .manual-viewer__frame {
        height: 70vh;
        height: 70dvh;
    }
}
