/*
* Global button styling
*/
/*
* MEDIA QUERIES
* Breakpoints for responsive sites
*/
/*
* Breakpoint debugging
*/
/*
* SASS Parent append
* Useful if you want to add an append to the parent without writing it out again
* Usage: @include parent-append(":hover")
* Source: https://codepen.io/imkremen/pen/RMVBvq
*/
/*
* Skew
* Useful mixing to create skewed edges
* Usage: @include angle-edge(bottomright, 3deg, topleft, 3deg, #fff);
* Source: http://www.hongkiat.com/blog/skewed-edges-css/
*/
.kpi-chart {
  gap: var(--wp--preset--spacing--medium);
  margin-top: var(--wp--preset--spacing--normal);
  margin-bottom: var(--wp--preset--spacing--normal);
}
.kpi-chart__title {
  font-size: var(--wp--preset--font-size--normal);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--wp--preset--color--black);
  margin: 0;
}
.kpi-chart__latest-figure {
  letter-spacing: -3px;
  line-height: 1;
  font-size: var(--wp--preset--font-size--feature);
  font-weight: 900;
  color: var(--kpi-color);
  margin: 0;
  margin-top: 0.2em;
}
.kpi-chart__data {
  padding: var(--wp--preset--spacing--small);
  background: var(--wp--preset--color--light-grey);
  -ms-flex-item-align: start;
      align-self: flex-start;
  width: 100%;
}
.kpi-chart__bars {
  padding-left: 0;
  margin-left: 1.5em;
  margin-top: 1em;
  border-left: 1px solid var(--wp--preset--color--black);
}
.kpi-chart__bars.has-negatives {
  border-left: none;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-left: 0;
}
.kpi-chart__bars.has-negatives::before {
  content: "";
  position: absolute;
  left: var(--offset-low, 50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--wp--preset--color--black);
  z-index: 1;
}
.kpi-chart__bar {
  list-style: none;
  position: relative;
  width: var(--bar-value);
  text-align: right;
  color: var(--kpi-color);
  white-space: nowrap;
}
.has-negatives .kpi-chart__bar:not(.negative) {
  left: var(--offset-low);
}
.has-negatives .kpi-chart__bar.negative {
  right: var(--offset-high);
  left: auto;
  -ms-flex-item-align: end;
      align-self: flex-end;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  padding-left: 0;
}
.has-negatives .kpi-chart__bar.negative .kpi-chart__bar__year {
  left: auto;
  right: 0;
  -webkit-transform: translateX(calc(100% + 0.5rem));
          transform: translateX(calc(100% + 0.5rem));
}
.has-negatives .kpi-chart__bar.negative .kpi-chart__bar__value {
  margin-right: auto;
  text-align: left;
}
.has-negatives .kpi-chart__bar.negative .kpi-chart__bar__figure {
  padding-right: 0.5em;
}
.kpi-chart__bar:first-child::after {
  opacity: 1;
}
.kpi-chart__bar:first-child .kpi-chart__bar__year, .kpi-chart__bar:first-child .kpi-chart__bar__value {
  font-weight: 800;
}
.kpi-chart__bar__value {
  padding-bottom: 0.5em;
}
.kpi-chart__bar__value::after {
  content: "";
  position: absolute;
  inset: 0;
  top: auto;
  height: 10px;
  width: 100%;
  background: currentColor;
  opacity: 0.5;
  z-index: 0;
}
.kpi-chart__bar__year {
  position: absolute;
  left: 0;
  -webkit-transform: translateX(calc(-100% - 0.5rem));
          transform: translateX(calc(-100% - 0.5rem));
  color: var(--wp--preset--color--black);
  z-index: 2;
}
.kpi-chart__bar__figure {
  padding-left: 0.5em;
}
.kpi-chart__bar.has-additional {
  width: 100%;
}
.kpi-chart__bar.has-additional .kpi-chart__bar__value {
  position: relative;
  width: var(--bar-value);
}
.kpi-chart__bar__additional {
  position: absolute;
  height: 100%;
  left: var(--bar-value);
  width: var(--additional-value);
  top: 0;
}
.kpi-chart__bar__additional::after {
  content: "";
  position: absolute;
  inset: 0;
  top: auto;
  height: 10px;
  width: 100%;
  background: currentColor;
  opacity: 0.2;
  z-index: 0;
}
.kpi-chart__links {
  padding: 0;
  margin: 0;
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.3em;
}
.kpi-chart__links__title {
  font-weight: 700;
  color: var(--wp--preset--color--black);
}
.kpi-chart .kpi-key__risk-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.3em;
}