/* Images of the content (tutorials): at most half of the width of the page */
.docs-main article img {
    max-width: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* The online calculators (recipes/volume_guesser.md, recipes/free_volume.md) */
.pm-app {
    border: 1px solid rgba(128, 128, 128, 0.4);
    border-radius: 6px;
    padding: 1em;
    margin: 1em 0 1.5em 0;
}
.pm-app input, .pm-app select, .pm-app textarea, .pm-app button {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.6);
    border-radius: 4px;
    padding: 0.25em 0.4em;
}
.pm-app input[type="number"] { width: 8em; }
.pm-app input[type="file"] { border: none; padding: 0; }
.pm-app textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: monospace;
    font-size: 0.9em;
    margin: 0.5em 0;
}
.pm-row { margin: 0.5em 0; display: flex; flex-wrap: wrap; gap: 0.5em; align-items: center; }
.pm-row label { min-width: 11em; font-weight: 600; }
.pm-button { cursor: pointer; }
.pm-button:hover, .pm-remove:hover { border-color: currentColor; }
.pm-remove { cursor: pointer; padding: 0 0.5em; }
.pm-table { margin: 0.75em 0; border-collapse: collapse; }
.pm-table input { width: 100%; box-sizing: border-box; }
.pm-table th, .pm-table td { padding: 0.25em 0.5em; text-align: left; }
.pm-result { margin-top: 1em; line-height: 1.8; }
.pm-result b { font-size: 1.15em; }
.pm-note { opacity: 0.75; font-size: 0.9em; }
.pm-error { color: #d9534f; }
.pm-invalid { border-color: #d9534f !important; }
