/* 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');


/*************** Body Stuff ****************/
html {
  font-size: 62.5%;
  -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: #272626;
}
.container {
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
  width: 100%;
  max-width: 1200px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
.col {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
  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: 0.1;
}
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;
  /* font-size: 1.45rem; */
  font-weight: 400;
  color: #272626;
}
/* Style tooltip text */
.tooltip text {
  font-family: 'Source Sans 3', sans-serif;
  /* font-size: 1.5rem; */
}
.tooltipHeader, .tooltip-value-label  {
  font-weight: bold;
}


p {
  margin: 1.2rem 0;
}
a {
  color: #222323;
  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);
  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: 50px 0 30px;
  width: 100%;
}

/* Sources */
.source {
  font-size: 1.2rem;
}

.source p {
  color: #797175;
}

.source a {
  color: #797175;
}

@media (max-width: 700px) {
  .source {
    font-size: 1rem; 
  }
}

/* Logo */
.logo-container {
  width: 130px;
  margin-left: 0.25rem;
}

@media (max-width: 700px) {
  .logo-container {
    width: 90px; 
  }
}

.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 */
.region-group path {
  stroke-width: 0.28rem;
}

/* .dashed-line {
  stroke-dasharray: 5, 2;
} */