////
/// @group helpers
////

@import "../tools/exports";

/// Font Face - GDS Transport
///
/// Outputs the font-face declaration for GDS Transport at the root of the CSS document
/// the first time it is called.
///
/// @access private

@mixin _moaland-font-face-gds-transport {
  @include moaland-not-ie8 { // In IE8, which cannot render WOFF format, we fall back to system fonts
    @include moaland-exports("moaland/helpers/font-faces") {
      @at-root {
        /*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */ /* stylelint-disable-line scss/comment-no-loud  */
        @font-face {
          font-family: "GDS Transport";
          font-style: normal;
          font-weight: normal;
          src:
            moaland-font-url("light-94a07e06a1-v2.woff2") format("woff2"),
            moaland-font-url("light-f591b13f7d-v2.woff") format("woff");
          font-display: fallback;
        }

        @font-face {
          font-family: "GDS Transport";
          font-style: normal;
          font-weight: bold;
          src:
            moaland-font-url("bold-b542beb274-v2.woff2") format("woff2"),
            moaland-font-url("bold-affa96571d-v2.woff") format("woff");
          font-display: fallback;
        }
      }
    }
  }
}
