{"version":3,"sources":["../../../../src/nhsuk/components/card/_index.scss"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,+BAA+B;AAC/B,4BAA4B;AAC5B,8BAA8B;AAC9B,kCAAkC;;AAElC,GAAG;AACH,iBAAiB;AACjB,EAAE;AACF,iFAAiF;AACjF,kEAAkE;AAClE,uBAAuB;AACvB,qDAAqD;AACrD,sEAAsE;AACtE,sEAAsE;AACtE,iEAAiE;AACjE,4EAA4E;AAC5E,mEAAmE;AACnE,oDAAoD;AACpD,uEAAuE;AACvE,mEAAmE;AACnE,+CAA+C;AAC/C,4DAA4D;AAC5D,uEAAuE;AACvE,6EAA6E;AAC7E,6CAA6C;AAC7C,uFAAuF;AACvF,qGAAqG;AACrG,wFAAwF;AACxF,wFAAwF;AACxF,4EAA4E;AAC5E,EAAE;AACF,yBAAyB;AACzB,GAAG;;AAEH,6BAA6B;AAC7B,uDAAuD;AACvD,+CAA+C;AAC/C,uDAAuD;;AAEvD,oCAAoC;AACpC,4CAA4C;AAC5C,0DAA0D;AAC1D,6CAA6C;AAC7C,8CAA8C;AAC9C,yDAAyD;AACzD,0DAA0D;;AAE1D;EACE;IACE,sBAAsB;IACtB,kBAAkB,EAAE,KAAK;IACzB,WAAW;;IAEX,kGAAkG;EACpG;;EAEA;;IAEE,cAAc;IACd,WAAW;IACX,SAAS;IACT,oEAAoE,EAAE,KAAK;EAC7E;;EAEA;IACE,sBAAsB;IACtB,6BAA6B;IAC7B,oCAAoC;EACtC;;EAEA;IACE,4CAA4C;IAC5C,6CAA6C;EAC/C;;EAEA;IACE,aAAa;IACb,cAAc;;IAEd;MACE,gBAAgB;IAClB;EACF;;EAEA;;;IAGE,oCAAoC;EACtC;;EAEA;IACE;MACE,6BAA6B;IAC/B;;IAEA;MACE,iBAAiB;IACnB;;IAEA;MACE,cAAc;IAChB;;IAEA;MACE,aAAa;MACb,iBAAiB;MACjB,qBAAqB;MACrB,8BAA8B;;MAE9B;QACE,sBAAsB;MACxB;IACF;EACF;;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A;;MAEE,WAAW;;MAEX,cAAc;;MAEd,kBAAkB;MAClB,MAAM;;MAEN,QAAQ;MACR,SAAS;;MAET,wBAAwB,EAAE,MAAM;;MAEhC,uDAAuD,EAAE,KAAK;IAChE;EACF;;EAEA;IACE,2CAA2C;EAC7C;;EAEA;;;IAGE;MACE,4BAA4B;MAC5B,gBAAgB;;MAEhB;QACE,kBAAkB;QAClB,aAAa;MACf;IACF;;IAEA;MACE,iCAAiC;IACnC;EACF;;EAEA;IACE;MACE,0CAA0C;IAC5C;EACF;;EAEA;;IAEE;MACE,kDAAkD;IACpD;EACF;;EAEA;IACE,8EAA8E;;IAE9E;MACE;;QAEE,iCAAiC;MACnC;IACF;EACF;;EAEA;IACE,8EAA8E;;IAE9E;MACE;;QAEE,iCAAiC;MACnC;IACF;;IAEA;MACE,gBAAgB,EAAE,MAAM;MACxB,SAAS;MACT,iCAAiC;MACjC,uCAAuC;;MAEvC;QACE,iCAAiC;MACnC;;MAEA;QACE,+CAA+C;MACjD;IACF;;IAEA;;MAEE,iCAAiC;IACnC;;IAEA;MACE;QACE,iCAAiC;MACnC;;MAEA;QACE,+BAA+B;MACjC;IACF;;IAEA;MACE,iCAAiC;IACnC;EACF;;EAEA,cAAc;;EAEd;;;IAGE;;;;;KAKC;;IAED;MACE,YAAY;IACd;EACF;;EAEA;;;IAGE;MACE,cAAc;;MAEd,kBAAkB;MAClB,QAAQ;;MAER,8CAA8C;MAC9C,+CAA+C;MAC/C,6EAA6E;;MAE7E,oBAAoB;;MAEpB,wBAAwB;MACxB,6CAA6C;;MAE7C;QACE,gBAAgB;MAClB;IACF;EACF;;EAEA,gBAAgB;;EAEhB;IACE,aAAa;IACb,eAAe;IACf,cAAc;IACd,uBAAuB;EACzB;;EAEA;;;;IAIE,cAAc;IACd,gBAAgB;IAChB,eAAe;EACjB;AACF","file":"_index.scss","sourcesContent":["@use \"sass:math\";\n@use \"../../core/settings\" as *;\n@use \"../../core/tools\" as *;\n@use \"../../core/helpers\" as *;\n@forward \"../../core/styles/icons\";\n\n////\n/// Card component\n///\n/// 1. Is needed for the :active top positioning, and invisible clickable overlay.\n/// 2. Border is used to create a divider between the white content\n///    box and an image.\n/// 3. Creates the 'pressed down' effect when clicked.\n/// 4. Removes padding-top from headings directly after the card group.\n/// 5. Includes the border width to achieve the correct left alignment.\n/// 6. Stops the heading from spanning the full width of the card.\n/// 7. Removes padding as added to container by nhsuk-panel-with-label mixin.\n/// 8. Default care card colour set to blue (non-urgent care card) -\n///    using the @mixin care-card tools/_mixins.scss.\n///    The same mixin is used for each care card, setting the background\n///    colour,text colour and print border width with the variables.\n/// 9. 'Random number' for the heading triangle.\n/// 10. 'Random number' for the heading triangle positioning.\n/// 11. 'Random number' used for spacing to compensate for the triangle.\n/// 12. Needed to enable the triangle to show correctly in high contrast mode.\n/// 13. Prevent additional padding on headings\n/// 14. Give the action link icon sufficient contrast when used in the emergency variant\n/// 15. Reset the positioning to the default [1] to display heading triangle on a coloured background.\n/// 16. Emergency care card <a> needs to be white because the background colour is black.\n/// 17. Trick IE10 into rendering the invisible clickable area. Without this it does not.\n/// 18. Increase the clickable area to the border of the card and the shadow.\n///\n/// @group components/card\n////\n\n$nhsuk-card-border-width: 1px;\n$nhsuk-card-border-bottom-width: nhsuk-spacing(1) - 1px;\n$nhsuk-card-border-colour: $nhsuk-border-colour;\n$nhsuk-card-border-hover-colour: nhsuk-colour(\"grey-3\");\n\n// @deprecated To be removed in v11.0\n$card-border-width: $nhsuk-card-border-width;\n$card-border-bottom-width: $nhsuk-card-border-bottom-width;\n$card-border-color: $nhsuk-card-border-colour;\n$card-border-colour: $nhsuk-card-border-colour;\n$card-border-hover-color: $nhsuk-card-border-hover-colour;\n$card-border-hover-colour: $nhsuk-card-border-hover-colour;\n\n@include nhsuk-exports(\"nhsuk/components/card\") {\n  .nhsuk-card {\n    box-sizing: border-box;\n    position: relative; // [1]\n    width: 100%;\n\n    @include nhsuk-panel($nhsuk-card-background-colour, $nhsuk-text-colour, $nhsuk-card-border-colour);\n  }\n\n  .nhsuk-card__img,\n  .nhsuk-card .nhsuk-image {\n    display: block;\n    width: 100%;\n    margin: 0;\n    border-bottom: $nhsuk-card-border-width solid nhsuk-colour(\"grey-5\"); // [2]\n  }\n\n  .nhsuk-card__content {\n    box-sizing: border-box;\n    @include nhsuk-top-and-bottom;\n    @include nhsuk-responsive-padding(5);\n  }\n\n  .nhsuk-card .nhsuk-image__caption {\n    @include nhsuk-responsive-padding(5, \"left\");\n    @include nhsuk-responsive-padding(5, \"right\");\n  }\n\n  .nhsuk-card__heading {\n    flex-basis: 0;\n    flex-grow: 999;\n\n    &:has(+ .nhsuk-icon) {\n      margin-bottom: 0;\n    }\n  }\n\n  .nhsuk-card__heading-container,\n  // Deprecated, to be removed in v11.0\n  .nhsuk-card--care__heading-container {\n    @include nhsuk-responsive-padding(5);\n  }\n\n  .nhsuk-card__heading-container {\n    &:last-child {\n      @include nhsuk-top-and-bottom;\n    }\n\n    &:not(:last-child) {\n      padding-bottom: 0;\n    }\n\n    + .nhsuk-card__content {\n      padding-top: 0;\n    }\n\n    @include nhsuk-media-query($from: tablet) {\n      display: flex;\n      flex-wrap: nowrap;\n      align-items: baseline;\n      justify-content: space-between;\n\n      &:has(.nhsuk-card__actions:only-child) {\n        justify-content: right;\n      }\n    }\n  }\n\n  .nhsuk-card__actions {\n    display: flex;\n\n    flex-wrap: wrap;\n    row-gap: 10px;\n\n    margin: nhsuk-spacing(-1) 0 nhsuk-spacing(3);\n    padding: 0;\n\n    list-style: none;\n    @include nhsuk-font(19, $weight: bold);\n\n    @include nhsuk-media-query($from: tablet) {\n      justify-content: right;\n      margin: 0 0 nhsuk-spacing(3) nhsuk-spacing(3);\n      text-align: right;\n\n      &:only-child {\n        margin-left: 0;\n      }\n    }\n  }\n\n  .nhsuk-card__action {\n    display: inline-block;\n\n    // We use the following media query to target IE11 and 10 only to add margin\n    // between actions.\n    //\n    // We do this because we're using row-gap to create space between actions on\n    // more evergreen browsers which IE doesn't support. @supports currently isn't\n    // a viable solution, see https://github.com/w3c/csswg-drafts/issues/3559.\n    //\n    // Solution taken from https://stackoverflow.com/questions/11173106/apply-style-only-on-ie#answer-36448860\n    // which also includes an explanation of why this works\n    @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n      margin-bottom: nhsuk-spacing(1);\n    }\n  }\n\n  .nhsuk-card__action:last-child {\n    // See above comment for why this is here\n    @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n      margin-bottom: 0;\n    }\n  }\n\n  @include nhsuk-media-query($until: tablet) {\n    .nhsuk-card__action {\n      margin-right: nhsuk-spacing(2);\n      padding-right: nhsuk-spacing(2);\n      border-right: 1px solid $nhsuk-border-colour;\n    }\n\n    .nhsuk-card__action:last-child {\n      margin-right: 0;\n      padding-right: 0;\n      border: 0;\n    }\n  }\n\n  @include nhsuk-media-query($from: tablet) {\n    .nhsuk-card__action {\n      margin-bottom: 0;\n      margin-left: nhsuk-spacing(2);\n      padding-left: nhsuk-spacing(2);\n    }\n\n    .nhsuk-card__action:not(:first-child) {\n      border-left: 1px solid $nhsuk-border-colour;\n    }\n\n    .nhsuk-card__action:first-child {\n      margin-left: 0;\n      padding-left: 0;\n      border: 0;\n    }\n  }\n\n  .nhsuk-card__description {\n    margin-bottom: 0;\n  }\n\n  // Card shadow shared styles\n\n  .nhsuk-card--clickable,\n  .nhsuk-card--secondary {\n    box-shadow: 0 $nhsuk-card-border-bottom-width 0 $nhsuk-border-colour;\n    @include nhsuk-responsive-margin(7, \"bottom\", $adjustment: $nhsuk-card-border-bottom-width); // [18]\n  }\n\n  // Clickable card\n\n  .nhsuk-card--clickable {\n    .nhsuk-card__heading a,\n    .nhsuk-card__link {\n      &::before {\n        content: \"\";\n\n        display: block;\n\n        position: absolute;\n        top: -$nhsuk-card-border-width; // [18]\n        right: -$nhsuk-card-border-width; // [18]\n        bottom: -$nhsuk-card-border-width - $nhsuk-card-border-bottom-width; // [18]\n        left: -$nhsuk-card-border-width; // [18]\n\n        background-color: rgba(255, 255, 255, 0); // [17]\n      }\n    }\n\n    &:hover,\n    &:has(.nhsuk-card__heading a:hover),\n    &:has(.nhsuk-card__link:hover) {\n      border-color: $nhsuk-card-border-hover-colour;\n      box-shadow: 0 $nhsuk-card-border-bottom-width 0 $nhsuk-card-border-hover-colour;\n    }\n\n    &:hover .nhsuk-icon,\n    &:has(.nhsuk-card__heading a:hover) .nhsuk-icon,\n    &:has(.nhsuk-card__link:hover) .nhsuk-icon {\n      fill: $nhsuk-link-hover-colour;\n\n      @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n        fill: LinkText;\n      }\n    }\n\n    &:active,\n    &:has(.nhsuk-card__heading a:active),\n    &:has(.nhsuk-card__link:active) {\n      top: $nhsuk-card-border-bottom-width; // [3]\n      box-shadow: none;\n    }\n\n    &:active .nhsuk-icon,\n    &:has(.nhsuk-card__heading a:active) .nhsuk-icon,\n    &:has(.nhsuk-card__link:active) .nhsuk-icon {\n      fill: $nhsuk-link-active-colour;\n\n      @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n        fill: ActiveText;\n      }\n    }\n  }\n\n  // Card group\n  //\n  // Allows you to have a row of cards.\n  // Flexbox is used to make each card in a row the same height.\n\n  .nhsuk-card-group {\n    margin-bottom: nhsuk-spacing(3);\n    padding: 0;\n\n    @include nhsuk-flex;\n\n    @include nhsuk-media-query($until: desktop) {\n      margin-bottom: nhsuk-spacing(6);\n    }\n\n    + h2,\n    + .nhsuk-heading-l,\n    + h3,\n    + .nhsuk-heading-m {\n      padding-top: 0; // [4]\n    }\n  }\n\n  .nhsuk-card-group__item {\n    margin-bottom: 0;\n    list-style-type: none;\n\n    @include nhsuk-flex-item;\n\n    .nhsuk-card {\n      margin-bottom: nhsuk-spacing(5);\n    }\n\n    .nhsuk-card--clickable,\n    .nhsuk-card--secondary {\n      margin-bottom: nhsuk-spacing(5) + $nhsuk-card-border-bottom-width; // [18]\n    }\n\n    @include nhsuk-media-query($until: desktop) {\n      .nhsuk-card {\n        margin-bottom: nhsuk-spacing(3);\n      }\n\n      .nhsuk-card--clickable,\n      .nhsuk-card--secondary {\n        margin-bottom: nhsuk-spacing(3) + $nhsuk-card-border-bottom-width; // [18]\n      }\n\n      &:last-child .nhsuk-card {\n        margin-bottom: 0;\n      }\n\n      &:last-child .nhsuk-card--clickable,\n      &:last-child .nhsuk-card--secondary {\n        margin-bottom: $nhsuk-card-border-bottom-width; // [18]\n      }\n    }\n  }\n\n  // Card panel shared styles\n\n  .nhsuk-card--feature > .nhsuk-card__heading-container,\n  .nhsuk-card--feature > .nhsuk-card__content,\n  .nhsuk-card--warning > .nhsuk-card__heading-container,\n  .nhsuk-card--warning > .nhsuk-card__content,\n  // Deprecated, to be removed in v11.0\n  .nhsuk-card__content--feature {\n    padding: 0; // [7]\n  }\n\n  .nhsuk-card--feature > .nhsuk-card__heading-container,\n  .nhsuk-card--warning > .nhsuk-card__heading-container {\n    @include nhsuk-media-query($from: tablet) {\n      align-items: flex-start;\n    }\n\n    .nhsuk-card__actions {\n      margin-top: 0;\n\n      @include nhsuk-media-query($from: tablet) {\n        padding-top: nhsuk-spacing(4);\n      }\n    }\n  }\n\n  // Card feature\n\n  .nhsuk-card--feature {\n    @include nhsuk-panel-with-label($nhsuk-card-background-colour, $nhsuk-text-colour, $nhsuk-card-border-colour);\n  }\n\n  .nhsuk-card--feature > .nhsuk-card__heading-container > .nhsuk-card__heading,\n  .nhsuk-card--feature > .nhsuk-card__content > .nhsuk-card__heading,\n  // Deprecated, to be removed in v11.0\n  .nhsuk-card__heading--feature {\n    flex-basis: auto;\n    flex-grow: 0;\n    @include nhsuk-heading-label($nhsuk-brand-colour, $nhsuk-reverse-text-colour);\n  }\n\n  // Card warning\n\n  .nhsuk-card--warning {\n    @include nhsuk-panel-with-label(nhsuk-colour(\"pale-yellow\"), $nhsuk-text-colour, nhsuk-colour(\"yellow\"));\n  }\n\n  .nhsuk-card--warning > .nhsuk-card__heading-container > .nhsuk-card__heading,\n  .nhsuk-card--warning > .nhsuk-card__content > .nhsuk-card__heading {\n    flex-basis: auto;\n    flex-grow: 0;\n    @include nhsuk-heading-label(nhsuk-colour(\"yellow\"), $nhsuk-text-colour);\n  }\n\n  // Care card\n\n  .nhsuk-card--care {\n    @include nhsuk-care-card($nhsuk-brand-colour, $nhsuk-reverse-text-colour, 4px); // [8]\n    @include nhsuk-responsive-margin(7, \"top\");\n  }\n\n  .nhsuk-card--care > .nhsuk-card__heading-container,\n  // Deprecated, to be removed in v11.0\n  .nhsuk-card--care__heading-container {\n    position: relative;\n    padding-top: nhsuk-spacing(3);\n    padding-bottom: nhsuk-spacing(3) - $nhsuk-card-border-width;\n    border-bottom: $nhsuk-card-border-width solid transparent;\n  }\n\n  .nhsuk-card--care > .nhsuk-card__heading-container > .nhsuk-card__heading,\n  // Deprecated, to be removed in v11.0\n  .nhsuk-card--care__heading {\n    margin: 0;\n    padding-top: 0; // [13]\n\n    @include nhsuk-font(26, $weight: bold);\n    @include nhsuk-print-colour;\n  }\n\n  .nhsuk-card--care__arrow {\n    display: block;\n\n    position: absolute;\n    bottom: nhsuk-px-to-rem(-11px); // [9]\n    left: nhsuk-px-to-rem(30px); // [10]\n\n    width: nhsuk-px-to-rem(20px); // [9]\n    height: nhsuk-px-to-rem(20px); // [9]\n\n    overflow: hidden;\n\n    transform: rotate(45deg);\n    @include nhsuk-print-hide;\n\n    @include nhsuk-media-query($from: tablet) {\n      left: nhsuk-px-to-rem(38px); // [10]\n    }\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); // [12]\n\n      border: solid nhsuk-px-to-rem(32px) $nhsuk-brand-colour; // [9]\n    }\n  }\n\n  .nhsuk-card--care .nhsuk-card__content {\n    @include nhsuk-responsive-padding(5, \"top\");\n  }\n\n  .nhsuk-card--care--non-urgent > .nhsuk-card__heading-container,\n  .nhsuk-card--care--urgent > .nhsuk-card__heading-container,\n  .nhsuk-card--care--emergency > .nhsuk-card__heading-container {\n    .nhsuk-card__actions {\n      margin-top: nhsuk-spacing(3);\n      margin-bottom: 0;\n\n      @include nhsuk-media-query($from: tablet) {\n        align-self: center;\n        margin-top: 0;\n      }\n    }\n\n    .nhsuk-card__action a {\n      @include nhsuk-link-style-reverse;\n    }\n  }\n\n  .nhsuk-card--care--non-urgent > .nhsuk-card__heading-container {\n    .nhsuk-card__action {\n      border-color: $nhsuk-reverse-border-colour;\n    }\n  }\n\n  .nhsuk-card--care--urgent > .nhsuk-card__heading-container,\n  .nhsuk-card--care--emergency > .nhsuk-card__heading-container {\n    .nhsuk-card__action {\n      border-color: nhsuk-tint(nhsuk-colour(\"red\"), 20%);\n    }\n  }\n\n  .nhsuk-card--care--urgent {\n    @include nhsuk-care-card(nhsuk-colour(\"red\"), $nhsuk-reverse-text-colour, 6px);\n\n    .nhsuk-card--care__arrow {\n      &::before,\n      &::after {\n        border-color: nhsuk-colour(\"red\");\n      }\n    }\n  }\n\n  .nhsuk-card--care--emergency {\n    @include nhsuk-care-card(nhsuk-colour(\"red\"), $nhsuk-reverse-text-colour, 8px);\n\n    .nhsuk-card--care__arrow {\n      &::before,\n      &::after {\n        border-color: nhsuk-colour(\"red\");\n      }\n    }\n\n    .nhsuk-card__content {\n      position: static; // [15]\n      border: 0;\n      color: $nhsuk-reverse-text-colour;\n      background-color: nhsuk-colour(\"black\");\n\n      a:not(.nhsuk-action-link):not(.nhsuk-button) {\n        @include nhsuk-link-style-reverse;\n      }\n\n      @include nhsuk-print-colour {\n        background-color: $nhsuk-card-background-colour;\n      }\n    }\n\n    .nhsuk-details,\n    .nhsuk-details__summary {\n      color: $nhsuk-reverse-text-colour;\n    }\n\n    .nhsuk-details__summary {\n      &:hover {\n        color: $nhsuk-reverse-text-colour;\n      }\n\n      &:focus {\n        color: $nhsuk-focus-text-colour;\n      }\n    }\n\n    .nhsuk-action-link:not(.nhsuk-action-link--reverse) {\n      @include nhsuk-link-style-reverse;\n    }\n  }\n\n  // Card primary\n\n  .nhsuk-card--primary > .nhsuk-card__content,\n  // Deprecated, to be removed in v11.0\n  .nhsuk-card__content--primary {\n    @include nhsuk-responsive-spacing(\n      5,\n      \"padding\",\n      $direction: \"right\",\n      $adjustment: nhsuk-px-to-rem(nhsuk-spacing(7))\n    );\n\n    @include nhsuk-media-query($from: desktop) {\n      height: 100%;\n    }\n  }\n\n  .nhsuk-card--primary,\n  // Deprecated, to be removed in v11.0\n  .nhsuk-card__content--primary {\n    .nhsuk-icon {\n      display: block;\n\n      position: absolute;\n      top: 50%;\n\n      width: nhsuk-px-to-rem($nhsuk-icon-size-large);\n      height: nhsuk-px-to-rem($nhsuk-icon-size-large);\n      margin-top: nhsuk-px-to-rem(math.floor(math.div($nhsuk-icon-size-large, -2)));\n\n      pointer-events: none;\n\n      fill: $nhsuk-link-colour;\n      @include nhsuk-responsive-spacing(5, \"right\");\n\n      @media screen and (forced-colors: active), (-ms-high-contrast: active) {\n        fill: ButtonText;\n      }\n    }\n  }\n\n  // Card secondary\n\n  .nhsuk-card--secondary {\n    border-top: 0;\n    border-right: 0;\n    border-left: 0;\n    background: transparent;\n  }\n\n  .nhsuk-card--secondary > .nhsuk-card__heading-container,\n  .nhsuk-card--secondary > .nhsuk-card__content,\n  // Deprecated, to be removed in v11.0\n  .nhsuk-card__content--secondary {\n    padding-top: 0;\n    padding-right: 0;\n    padding-left: 0;\n  }\n}\n"]}
