/* The HVAC takeoff lab guide: screenshots, colour keys and a printable layout. */
.hvg-toc { columns: 2; column-gap: var(--space-6, 2rem); padding-left: 1.25rem; }
.hvg-toc li { break-inside: avoid; margin-bottom: .35rem; }
@media (max-width: 640px) { .hvg-toc { columns: 1; } }

.hvg-shot { margin: var(--space-4, 1rem) 0; }
.hvg-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; }
.hvg-shot figcaption { margin-top: var(--space-2, .5rem); color: var(--color-text-muted); font-size: var(--font-size-sm); text-align: center; }
.hvg-shot--narrow img { max-width: 36rem; margin: 0 auto; }
.hvg-shot--phone img { max-width: 15rem; margin: 0 auto; }
@media (min-width: 900px) {
    .hvg-shot--side { float: right; width: 17rem; margin: 0 0 var(--space-4, 1rem) var(--space-5, 1.5rem); }
    .hvg-shot--phone { float: right; width: 15rem; margin: 0 0 var(--space-4, 1rem) var(--space-5, 1.5rem); }
    .hvg .panel::after { content: ""; display: block; clear: both; }
}

.hvg-key { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; font-weight: 600; }
.hvg-key::before { content: ""; width: .8em; height: .8em; border-radius: 3px; background: var(--k); }
.hvg-key--supply { --k: #dc2626; } .hvg-key--return { --k: #2563eb; } .hvg-key--exhaust { --k: #16a34a; }
.hvg-key--equipment { --k: #7c3aed; } .hvg-key--unknown { --k: #8a9497; }
.hvg-key--added { --k: #16a34a; } .hvg-key--changed { --k: #d97706; } .hvg-key--removed { --k: #dc2626; }

.hvg kbd { display: inline-block; min-width: 1.6em; padding: 0 .35em; border: 1px solid var(--color-border); border-bottom-width: 2px;
    border-radius: 5px; background: var(--color-surface); font: inherit; font-size: .85em; text-align: center; }

@media print {
    .hvg-shot--side, .hvg-shot--phone { float: none; width: auto; margin: var(--space-4, 1rem) 0; }
    .hvg-shot img { margin: 0 auto; }
    /* the site's print style keeps each panel whole, which suits a report; a long guide should flow */
    .print-page .hvg .panel, .hvg .panel { break-inside: auto; page-break-inside: auto; box-shadow: none; }
    .hvg-shot { break-inside: avoid; page-break-inside: avoid; }
    .hvg-shot img { max-width: 55%; }
    .hvg-shot--side img { max-width: 34%; }
    .hvg-shot--phone img { max-width: 26%; }
    .hvg h2, .hvg h3 { break-after: avoid; }
    .hvg .button { display: none; }
}
