{"version":3,"sources":["../../../../src/nhsuk/components/hero/_index.scss"],"names":[],"mappings":"AAAA,+CAA+C;;AAE/C,gBAAgB;AAChB,+BAA+B;AAC/B,4BAA4B;AAC5B,8BAA8B;;AAE9B,GAAG;AACH,iBAAiB;AACjB,EAAE;AACF,kDAAkD;AAClD,+BAA+B;AAC/B,4DAA4D;AAC5D,kCAAkC;AAClC,kDAAkD;AAClD,oDAAoD;AACpD,+EAA+E;AAC/E,kDAAkD;AAClD,uCAAuC;AACvC,mDAAmD;AACnD,6EAA6E;AAC7E,6DAA6D;AAC7D,oEAAoE;AACpE,sDAAsD;AACtD,mEAAmE;AACnE,yDAAyD;AACzD,4EAA4E;AAC5E,gFAAgF;AAChF,EAAE;AACF,yBAAyB;AACzB,EAAE;;AAEF;EACE;IACE,sBAAsB;IACtB,kBAAkB,EAAE,KAAK;IACzB,iCAAiC;IACjC,qCAAqC;;IAErC;MACE,+BAA+B;IACjC;;IAEA;;MAEE,iCAAiC;IACnC;;IAEA;MACE,sDAAsD;MACtD,sDAAsD;IACxD;EACF;;EAEA;IACE,6DAA6D;IAC7D,eAAe;;IAEf;MACE,uCAAuC,EAAE,MAAM;IACjD;EACF;;EAEA,KAAK;EACL;;;IAGE,oCAAoC;EACtC;;EAEA;;;IAGE,uDAAuD;IACvD,6BAA6B;;IAE7B;MACE,gCAAgC;MAChC,+BAA+B;IACjC;EACF;;EAEA;IACE;;;MAGE,cAAc;;MAEd,WAAW;MACX,eAAe;MACf,YAAY;MACZ,kBAAkB;MAClB,iBAAiB;;MAEjB;QACE,cAAc,EAAE,MAAM;MACxB;;MAEA;QACE,0CAA0C;MAC5C;IACF;;IAEA;MACE;;;QAGE,2CAA2C,EAAE,MAAM;MACrD;IACF;EACF;;EAEA;IACE,6CAA6C;EAC/C;;EAEA,8BAA8B;;EAE9B;IACE,4BAA4B;IAC5B,iCAAiC,EAAE,KAAK;IACxC,sBAAsB;EACxB;;EAEA;IACE,kCAAkC;;IAElC;MACE,aAAa,EAA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1C;IACE,iBAAiB;EACnB;AACF","file":"_index.scss","sourcesContent":["// stylelint-disable selector-no-qualifying-type\n\n@use \"sass:math\";\n@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/// 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/// 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. Apply three quarters width between tablet and desktop.\n/// 12. Remove any heights/min heights in Windows high contrast mode.\n/// 13. Remove the arrow in Windows high contrast mode.\n/// 14. Add border or adjust colours 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/// 17. Remove padding top from nhsuk-hero__content with images on small screens.\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    @media print {\n      color: $nhsuk-print-text-colour;\n    }\n\n    .nhsuk-link,\n    a:not(.nhsuk-button) {\n      @include nhsuk-link-style-reverse;\n    }\n\n    .nhsuk-u-secondary-text-colour {\n      // stylelint-disable-next-line declaration-no-important\n      color: $nhsuk-reverse-secondary-text-colour !important;\n    }\n  }\n\n  .nhsuk-hero .nhsuk-width-container {\n    border: $nhsuk-hero-border solid $nhsuk-reverse-border-colour;\n    border-width: 0;\n\n    @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n      border-bottom-width: $nhsuk-hero-border; // [14]\n    }\n  }\n\n  // [2]\n  .nhsuk-hero--border .nhsuk-width-container,\n  // Deprecated, to be removed in v11.0\n  .nhsuk-hero .nhsuk-hero--border {\n    border-top-width: $nhsuk-hero-border;\n  }\n\n  .nhsuk-hero__content,\n  // Deprecated, to be removed in v11.0\n  .nhsuk-hero__wrapper {\n    @include nhsuk-responsive-padding(8, (\"top\", \"bottom\"));\n    @include nhsuk-top-and-bottom;\n\n    [class^=\"nhsuk-caption\"] {\n      color: nhsuk-colour(\"pale-blue\");\n      @include nhsuk-font-weight-bold;\n    }\n  }\n\n  .nhsuk-hero__content {\n    svg:not(.nhsuk-image__img),\n    img:not(.nhsuk-image__img),\n    .nhsuk-image {\n      display: block;\n\n      width: 100%;\n      max-width: 100%;\n      height: auto;\n      margin-right: auto;\n      margin-left: auto;\n\n      @media #{nhsuk-from-breakpoint(375px)} and #{nhsuk-until-breakpoint(tablet)} {\n        max-width: 85%; // [15]\n      }\n\n      @media #{nhsuk-from-breakpoint(tablet)} and #{nhsuk-until-breakpoint(desktop)} {\n        max-width: math.percentage(math.div(3, 4));\n      }\n    }\n\n    @media #{nhsuk-until-breakpoint(desktop)} {\n      > svg:not(.nhsuk-image__img):first-child,\n      > img:not(.nhsuk-image__img):first-child,\n      > .nhsuk-image:first-child {\n        @include nhsuk-responsive-margin(-8, \"top\"); // [17]\n      }\n    }\n  }\n\n  .nhsuk-hero__heading {\n    @include nhsuk-responsive-margin(3, \"bottom\");\n  }\n\n  //  Hero component image styles\n\n  .nhsuk-hero--image {\n    background-repeat: no-repeat;\n    background-position: center right; // [3]\n    background-size: cover;\n  }\n\n  .nhsuk-hero--image:not(.nhsuk-hero--image-description) {\n    min-height: nhsuk-px-to-rem(192px);\n\n    @media print {\n      min-height: 0; // [4]\n    }\n\n    @media #{nhsuk-from-breakpoint(tablet)} {\n      min-height: nhsuk-px-to-rem(264px); // [5]\n    }\n  }\n\n  .nhsuk-hero--image .nhsuk-width-container {\n    @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n      border-width: 0;\n    }\n  }\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\n    &::before,\n    &::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    @media print {\n      display: none;\n    }\n\n    @media #{nhsuk-from-breakpoint(tablet)} {\n      left: nhsuk-px-to-rem(32px); // [9]\n    }\n\n    @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n      display: none; // [13]\n    }\n  }\n\n  .nhsuk-hero__overlay {\n    position: absolute;\n    top: 0;\n    right: 0;\n    bottom: 0; // [6]\n    left: 0;\n\n    width: 100%;\n\n    background-color: rgba(nhsuk-shade($nhsuk-brand-colour, 50%), 0.1); // [7]\n\n    @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n      display: none;\n    }\n  }\n\n  //  Hero component image description styles\n\n  .nhsuk-hero--image-description {\n    margin-bottom: nhsuk-spacing(5, $adjustment: nhsuk-px-to-rem(24px)); // [16]\n\n    @media #{nhsuk-from-breakpoint(tablet)} {\n      margin-bottom: nhsuk-spacing(8, $adjustment: nhsuk-px-to-rem(24px)); // [16]\n    }\n\n    .nhsuk-hero__content,\n    // Deprecated, to be removed in v11.0\n    .nhsuk-hero-content {\n      box-sizing: border-box;\n\n      position: relative;\n      z-index: 1;\n      bottom: 0;\n      bottom: nhsuk-spacing(-4);\n\n      margin-top: nhsuk-spacing(5);\n      margin-bottom: nhsuk-px-to-rem(24px); // [8]\n\n      color: $nhsuk-reverse-text-colour;\n      background-color: $nhsuk-brand-colour;\n\n      @include nhsuk-responsive-padding(5);\n      @include nhsuk-top-and-bottom;\n\n      @media print {\n        max-width: 100%;\n        padding: 0;\n        color: $nhsuk-print-text-colour;\n      }\n\n      @media #{nhsuk-from-breakpoint(375px)} and #{nhsuk-until-breakpoint(desktop)} {\n        width: 85%; // [15]\n      }\n\n      @media #{nhsuk-from-breakpoint(tablet)} and #{nhsuk-until-breakpoint(desktop)} {\n        width: math.percentage(math.div(3, 4)); // [11]\n      }\n\n      @media #{nhsuk-from-breakpoint(tablet)} {\n        bottom: nhsuk-spacing(-6);\n        margin-top: nhsuk-spacing(8);\n      }\n\n      @media #{nhsuk-from-breakpoint(desktop)} {\n        bottom: nhsuk-spacing(-9);\n      }\n\n      @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n        color: CanvasText; // [14]\n        background-color: HighlightText;\n        forced-color-adjust: none;\n      }\n    }\n  }\n\n  // Prevent hero content margin-top collapse\n  .nhsuk-hero--image-description .nhsuk-width-container {\n    padding-top: 10px;\n  }\n}\n"]}
