/*
 * Our overrides on top of the legacy stylesheet (/assets/main-….css).
 *
 * Fonts: the client's licensed Avenir LT W01 / Eurostile LT W01 webfonts are self-hosted
 * from /assets/fonts/fonts.css (generated by tools/build/fonts.py), loaded before this file.
 */

/* Screen-reader-only text. */
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* The icon sprite container must never take up space. */
svg[hidden] { display: none; }

/*
 * Hero: legacy CSS floats the <picture>, so the slide collapsed to 0px and the caption
 * (absolutely positioned in a 100%-height .wrap) jumped to the top. The old carousel JS
 * hid this by setting an explicit height. flow-root makes the slide contain its image.
 */
.slider__slide { display: flow-root; }
.slider__slide picture img { display: block; width: 100%; }

/* Mobile sub-menu toggles are created by nav.js (legacy CSS hides them from 60em up). */
.js-subnav-toggle { background: transparent; border: 0; padding: 0; color: inherit; }
