{"version":3,"sources":["../../../../src/nhsuk/components/hero/_index.scss"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,4BAA4B;AAC5B,8BAA8B;;AAE9B,GAAG;AACH,iBAAiB;AACjB,EAAE;AACF,kDAAkD;AAClD,+BAA+B;AAC/B,4DAA4D;AAC5D,EAAE;AACF,yBAAyB;AACzB,EAAE;;AAEF;EACE;IACE,sBAAsB;IACtB,kBAAkB,EAAE,KAAK;IACzB,iCAAiC;IACjC,qCAAqC;;IAErC,2BAA2B;;IAE3B;;MAEE,iCAAiC;IACnC;;IAEA;MACE,KAAK;MACL,iEAAiE;IACnE;EACF;;EAEA;IACE,yCAAyC;IACzC,4CAA4C;EAC9C;;EAEA;IACE,2CAA2C;EAC7C;;EAEA,8BAA8B;EAC9B,CAAC;EACD,iCAAiC;EACjC,iDAAiD;EACjD,mDAAmD;EACnD,8EAA8E;EAC9E,iDAAiD;EACjD,mEAAmE;;EAEnE;IACE,4BAA4B;IAC5B,iCAAiC,EAAE,KAAK;IACxC,sBAAsB;;IAEtB;MACE,KAAK;MACL,kCAAkC;IACpC;;IAEA;MACE;QACE,KAAK;QACL,kCAAkC,EAAE,KAAK;;QAEzC;UACE,8BAA8B,EAAE,KAAK;QACvC;MACF;IACF;;IAEA;MACE,aAAa,EAAE,MAAM;IACvB;;IAEA;MACE,kEAAkE,EAAE,KAAK;;MAEzE;QACE,KAAK;QACL,kCAAkC,EAAE,KAAK;MAC3C;;MAEA;QACE,YAAY,EAAE,MAAM;QACpB,aAAa,EAAE,MAAM;MACvB;IACF;EACF;;EAEA,qCAAqC;EACrC,CAAC;EACD,sCAAsC;EACtC,kDAAkD;EAClD,4EAA4E;EAC5E,2CAA2C;EAC3C,qDAAqD;EACrD,2EAA2E;EAC3E,uDAAuD;EACvD,0EAA0E;;EAE1E;IACE,8DAA8D,EAAE,MAAM;;IAEtE;MACE,8DAA8D,EAAE,MAAM;IACxE;;IAEA;MACE,kBAAkB;MAClB,0BAA0B;;MAE1B,oCAAoC;MACpC,yBAAyB;;MAEzB,iCAAiC;MACjC,qCAAqC;;MAErC;QACE,cAAc;;QAEd,kBAAkB;QAClB,8BAA8B,EAAE,KAAK;QACrC,2BAA2B,EAAE,KAAK;;QAElC,4BAA4B,EAAE,KAAK;QACnC,6BAA6B,EAAE,KAAK;;QAEpC,gBAAgB;;QAEhB,wBAAwB;QACxB,yBAAyB;MAC3B;;MAEA;;QAEE,WAAW;;QAEX,cAAc;;QAEd,kBAAkB;QAClB,MAAM;;QAEN,QAAQ;QACR,SAAS;;QAET,wBAAwB,EAAE,MAAM;;QAEhC,uDAAuD,EAAE,KAAK;MAChE;;MAEA;QACE,eAAe;QACf,UAAU;MACZ;IACF;;IAEA;MACE;QACE,UAAU,EAAE,MAAM;MACpB;IACF;;IAEA;MACE;QACE,sBAAsB;;QAEtB,kBAAkB;QAClB,SAAS;QACT,8BAA8B,EAAE,KAAK;;QAErC,wBAAwB,EAAE,MAAM;QAChC,gBAAgB;QAChB,0CAA0C;;QAE1C,6BAA6B;MAC/B;;MAEA;QACE,2BAA2B,EAAE,KAAK;MACpC;IACF;;IAEA;MACE;QACE,kBAAkB;QAClB,MAAM;QACN,MAAM;QACN,SAAS;;QAET,aAAa;QACb,gBAAgB;QAChB,6BAA6B;MAC/B;;MAEA;QACE,aAAa,EAAE,MAAM;MACvB;IACF;EACF;AACF","file":"_index.scss","sourcesContent":["@use \"../../core/settings\" as *;\n@use \"../../core/tools\" as *;\n@use \"../../core/helpers\" as *;\n\n////\n/// Hero component\n///\n/// 1. Position relative to support the description\n///    appearing over the image.\n/// 2. Adds a border between the header and hero, if required\n///\n/// @group components/hero\n///\n\n@include nhsuk-exports(\"nhsuk/components/hero\") {\n  .nhsuk-hero {\n    box-sizing: border-box;\n    position: relative; // [1]\n    color: $nhsuk-reverse-text-colour;\n    background-color: $nhsuk-brand-colour;\n\n    @include nhsuk-print-colour;\n\n    .nhsuk-link,\n    a:not(.nhsuk-button) {\n      @include nhsuk-link-style-reverse;\n    }\n\n    .nhsuk-hero--border {\n      // [2]\n      border-top: $nhsuk-hero-border solid $nhsuk-reverse-border-colour;\n    }\n  }\n\n  .nhsuk-hero__wrapper {\n    @include nhsuk-responsive-padding(8, top);\n    @include nhsuk-responsive-padding(8, bottom);\n  }\n\n  .nhsuk-hero__heading {\n    @include nhsuk-responsive-margin(3, bottom);\n  }\n\n  //  Hero component image styles\n  //\n  // 3. Center the background image.\n  // 4. Stop the height affecting print stylesheets.\n  // 5. Show more of the image for larger screen sizes\n  // 6. Overlay must be min same height as .nhsuk-hero--image to cover the image.\n  // 7. Darken the background image with an overlay.\n  // 12. Remove any heights/min heights in Windows high contrast mode.\n\n  .nhsuk-hero--image {\n    background-repeat: no-repeat;\n    background-position: center right; // [3]\n    background-size: cover;\n\n    @media only screen {\n      // [4]\n      min-height: nhsuk-px-to-rem(200px);\n    }\n\n    @include nhsuk-media-query($from: tablet) {\n      @media only screen {\n        // [4]\n        min-height: nhsuk-px-to-rem(320px); // [5]\n\n        .nhsuk-hero__overlay {\n          height: nhsuk-px-to-rem(320px); // [6]\n        }\n      }\n    }\n\n    @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n      min-height: 0; // [12]\n    }\n\n    .nhsuk-hero__overlay {\n      background-color: rgba(nhsuk-shade($nhsuk-brand-colour, 50%), 0.1); // [7]\n\n      @media only screen {\n        // [4]\n        min-height: nhsuk-px-to-rem(200px); // [6]\n      }\n\n      @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n        height: auto; // [12]\n        min-height: 0; // [12]\n      }\n    }\n  }\n\n  //  Hero component description styles.\n  //\n  // 8. 'Random number' for the triangle.\n  // 9. 'Random number' for the triangle positioning.\n  // 10. Needed to enable the triangle to show correctly in high contrast mode.\n  // 11. Give the description box a max width.\n  // 13. Remove the arrow in Windows high contrast mode.\n  // 14. Reduce spacing and change positioning for Windows high contrast mode.\n  // 15. Prevent text breaking out of box on smaller sizes\n  // 16. Prevent overlap using safe area: box offset + arrow height + spacing\n\n  .nhsuk-hero--image-description {\n    margin-bottom: nhsuk-px-to-rem(70px + 20px + nhsuk-spacing(3)); // [16]\n\n    @include nhsuk-media-query($from: tablet) {\n      margin-bottom: nhsuk-px-to-rem(48px + 20px + nhsuk-spacing(4)); // [16]\n    }\n\n    .nhsuk-hero-content {\n      position: relative;\n      top: nhsuk-px-to-rem(70px);\n\n      margin-bottom: nhsuk-px-to-rem(24px);\n      padding: nhsuk-spacing(4);\n\n      color: $nhsuk-reverse-text-colour;\n      background-color: $nhsuk-brand-colour;\n\n      .nhsuk-hero__arrow {\n        display: block;\n\n        position: absolute;\n        bottom: nhsuk-px-to-rem(-10px); // [8]\n        left: nhsuk-px-to-rem(32px); // [9]\n\n        width: nhsuk-px-to-rem(20px); // [8]\n        height: nhsuk-px-to-rem(20px); // [8]\n\n        overflow: hidden;\n\n        transform: rotate(45deg);\n        @include nhsuk-print-hide;\n      }\n\n      .nhsuk-hero__arrow::before,\n      .nhsuk-hero__arrow::after {\n        content: \"\";\n\n        display: block;\n\n        position: absolute;\n        top: 0;\n\n        width: 0;\n        height: 0;\n\n        transform: rotate(45deg); // [10]\n\n        border: solid nhsuk-px-to-rem(32px) $nhsuk-brand-colour; // [8]\n      }\n\n      @include nhsuk-print-colour {\n        max-width: 100%;\n        padding: 0;\n      }\n    }\n\n    @include nhsuk-media-query(375px) {\n      .nhsuk-hero-content {\n        width: 85%; // [15]\n      }\n    }\n\n    @include nhsuk-media-query($from: tablet) {\n      .nhsuk-hero-content {\n        box-sizing: border-box;\n\n        position: absolute;\n        top: auto;\n        bottom: nhsuk-px-to-rem(-48px); // [8]\n\n        max-width: nhsuk-em(560); // [11]\n        margin-bottom: 0;\n        padding: nhsuk-spacing(5) nhsuk-spacing(6);\n\n        @include nhsuk-top-and-bottom;\n      }\n\n      .nhsuk-hero__arrow {\n        left: nhsuk-px-to-rem(46px); // [9]\n      }\n    }\n\n    @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n      .nhsuk-hero-content {\n        position: relative;\n        top: 0;\n        // [14]\n        bottom: 0;\n\n        min-height: 0;\n        margin-bottom: 0;\n        padding: nhsuk-spacing(5) 0 0;\n      }\n\n      .nhsuk-hero__arrow {\n        display: none; // [13]\n      }\n    }\n  }\n}\n"]}
