/* A formatted shortcode can leave a code element outside the tool or, after
   HTML parsing, inside it. In both cases the surrounding module owns the font. */
body :is(pre, code):has(> :is(.tcf2, .topa-kameratool, .topa-pv-page), > code > :is(.tcf2, .topa-kameratool, .topa-pv-page)),
body :is(.tcf2, .topa-kameratool, .topa-pv-page) :is(pre, code) {
    font: inherit;
    font-family: inherit !important;
    color: inherit;
    letter-spacing: inherit;
    white-space: normal !important;
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
}

/* Preserve the layout when the browser reconstructs a formatting element
   between a grid or flex container and the tool's children. */
body :is(.tcf2, .topa-kameratool, .topa-pv-page) code {
    display: contents;
}
