/* Keep legacy Elementor navigation inert when the shared layout is rendered. */
.ti-candidate-body main :is(.ti9-header, .ti8-footer) { display: none !important; }

/* Elementor can render the HTML widget with or without an inner wrapper. */
body.ti-candidate-body[data-candidate-family="508"] .ti7-banners >
.elementor-widget:has(> .ti-candidate-banner-controls, > .elementor-widget-container > .ti-candidate-banner-controls) {
    position: absolute !important;
    inset: 0;
    width: auto !important;
    min-width: 0;
    z-index: 8;
    pointer-events: none;
}

/* The shared pause button also controls the active background video. */
body.ti-candidate-body[data-candidate-family="508"] .ti7-banners .ti2-motion button {
    display: none !important;
}

@media (max-width: 360px) {
    body.ti-candidate-body .ti-candidate-header .ti-candidate-bar { gap: 8px; }
    .ti-candidate-header .ti-candidate-brand { min-inline-size: 0; }
    .ti-candidate-header .ti-candidate-head-actions,
    .ti-candidate-header .ti-candidate-langs {
        min-inline-size: 0;
        max-inline-size: 108px;
    }
    .ti-candidate-header .ti-candidate-langs > summary {
        max-inline-size: 100%;
        overflow-wrap: anywhere;
    }
    .ti-candidate-header .ti-candidate-mobile { flex: 0 0 auto; }
    .ti-candidate-body .ti-candidate-footer section:first-child { gap: 8px; }
    .ti-candidate-body .ti-candidate-footer section:first-child strong {
        min-inline-size: 0;
        font-size: 14px;
    }
}
