/* Import Lora and Source Sans 3 - The Heasman fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

/* Font size converted to dvh and rem for responsiveness. Fallbacks for older browsers included. */

/*************** Body Stuff ****************/
html {
  font-size: min(62.5%, 1.15vh);
  font-size: min(62.5%, 1.15dvh);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
*, ::after, ::before {
  box-sizing: inherit;
}
body {
  margin: 0;
  background-color: #FFFFFF;
  /* Change font from base font */
  font-family: 'Source Sans 3', sans-serif;     
  font-size: 1.6rem;
  line-height: 1.4;
  font-weight: 400;
  color: #232021; /* Updated to heasman_text_black */
}
.container {
  margin-right: auto;
  margin-left: auto;
  padding-right: 3rem;
  padding-left: 3rem;
  width: 100%;
  max-width: 120rem;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}
.col {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}
.col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}
.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

/************** Responsiveness******************  */


/******************************* Type ***************************/
h1, h2, h3, h4 {
  /* Change base font */
  font-family: 'Lora', serif;
  font-weight: 500;
  line-height: 1.2;
}
h1 {
  margin: 6rem 0 1.2rem;
  /* Tweak font size to be more aligned to flourish charts */
  font-size: 2.3rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  h1 {
    font-size: 1.6rem;
  }
}

h2 {
    /* Tweak font size to be more aligned to flourish charts */
  margin: 3rem 0 1.2rem;
  font-size: 1.9rem;
}

@media (max-width: 700px) {
  h2 {
    font-size: 1.3rem;
  }
}

/* Style axis labels text */
.axis-y text, .axis-x text {
  font-family: 'Source Sans 3', sans-serif;
  /* Comment out font-size as handled by responsive javascript */
  /* font-size: 1.45rem; */
  font-weight: 400;
  color: #232021; /* Updated to heasman_text_black */
}
/* Style tooltip text */
.tooltip text {
  font-family: 'Source Sans 3', sans-serif;
  /* Comment out font-size as handled by responsive javascript */
  /* font-size: 1.5rem; */            
}
.tooltipHeader, .tooltip-value-label  {
  font-weight: bold;
}




p {
  margin: 1.2rem 0;
}
a {
  color: #232021; /* Updated to heasman_text_black */
  text-decoration: none;
  /* box-shadow: inset 0 -5px 0 0 rgba(117, 72, 94, 0.3); */
  box-shadow: inset 0 -5px 0 0 rgba(179, 71, 125, 0.3); /* Note: 179, 71, 125 is the exact RGB for heasman_main_pink! */
  transition: box-shadow 0.2s ease-out;
}
a:hover, a:focus {
  box-shadow: inset 0 -18px 0 0 rgba(179, 71, 125, 0.3);
  transition-timing-function: ease-in;
}



/*************** Footer source logo area ****************/

/* Footer container */
.chart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5rem 0 3rem;
  width: 100%;
}

/* Sources */
.source {
  font-size: 1.2rem;
}

@media (max-width: 700px) {
  .source {
    font-size: 1rem; 
  }
}

.source p {
  color: #797175;
}

.source a {
  color: #797175;
}

/* Logo */
.logo-container {
  width: 13rem;
  margin-left: 0.25rem;
}

@media (max-width: 700px) {
  .logo-container {
    width: 9rem; 
  }
}

.logo-container img {
  display: block;
  width: 100%;
  height: auto;
}

/************************** Axis Line styling ******************/

/* Axis Lines */
.axis-y path {
  stroke: none;
}

/* Hide grid lines y axis line */
.y-grid-lines .domain {
  stroke-opacity: 0;
}

/* Make grid lines grey */
.y-grid-lines .tick line {
  stroke: #E6E3E5;
}

/* Make y axis ticks grey to match */
.axis-y .tick line {
  stroke: #E6E3E5;
}

/* Lines in chart */
.category-group path {
  stroke-width: 0.28rem;
}


/* .dashed-line {
  stroke-dasharray: 5, 2;
} */


/* .dashed-line {
  stroke-dasharray: 5, 2;
} */