/*
 * <style> blocks the Sitecore views emit inline, lifted verbatim.
 *
 * Several WSP views end with a <style> element of their own, and the compiled theme does not
 * contain those rules. In the legacy page they sit in the BODY, after the theme's own <link>,
 * so they win every tie on document order. That is why they are here and not in
 * src/styles/globals.css: Next injects the imported stylesheet BEFORE the two <link>s in
 * app/layout.tsx, so a rule in globals.css that ties with the theme on specificity LOSES to it.
 * This file is linked after WSPGlobal.min.css, which restores the legacy order and lets each
 * block be copied across unchanged.
 *
 * Keep the rules byte-identical to the view's, and name the view above each block.
 */

/* Views/PageContent/TitleSummaryTeaser.WSP.cshtml
 * `.thumbnail + .teaser-summary` is what closes the gap under an Image with Text below: the
 * margins of the two siblings collapse to max(20px, 75px) — `.m-b-1{margin-bottom:20px!important}`
 * against `.medium-margin-children>:not(.modal){margin-top:75px}` — and the -20px brings that
 * back to 0. Both renderings that share this view emit the block, so it applies to every
 * `.teaser-summary` on the site. */
.teaser-summary.ft-component.ft-static.ft-project-content-teaser-with-summary a {
  margin-top: 5px;
}

.thumbnail + .teaser-summary {
  margin-top: -20px;
}

/* Views/LanguageEx/LanguageSelector.cshtml
 * The trailing <style> block: the panel's close-button row and its "Worldwide offices" button.
 * (The globe's own block, emitted inside the selector, is in src/styles/globals.css.) */
.padTB10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.ttl-world-link a {
    text-transform: none;
    /*position: static !important;*/
    padding-right: 15px;
    margin-top: 0;
    text-decoration: none;
}

@media (max-width:1199.99px) {

    .text-right.title-country-language {
        padding-left: 3vw;
        padding-right: 3vw;
    }
}

@media (min-width:1200px) {
    .ttl-world-link a.btn.btn-secondary {
        font-size: 11px;
    }
}

@media (min-width:1500px) {
    .ttl-world-link a.btn.btn-secondary {
        font-size: 14px;
    }
}

.ttl-world-link a:hover, .ttl-world-link a:active, .ttl-world-link a:focus {
    text-decoration: none;
    color: #FF372F;
}

.country-language-selector .cls__btn.targetIsHidden + .cls__subnav.gbl-menu,
.language-selector .cls__btn.targetIsHidden + .cls__subnav.gbl-menu {
    height: auto !important;
    z-index: 1000;
}
