/* Last updated CM 2025-01-28 */

/* Bold condensed open sans text for percentages and titles */

.ca-bold {
font-family: 'Open Sans Condensed',Arial,Helvetica,sans-serif;
    font-weight: 100;
    font-size: 2.8rem;
    line-height: 1.2;
}

/* Legend - left-aligned flexbox for aligning side-by-side text or images and text */

.ca-legend-wrap {
  max-width: fit-content;
   margin: 1rem auto;
 }
 
 .ca-legend {
 display: flex;
 flex-wrap: wrap;
 justify-content: flex-start;
 align-items: center;
 gap: 1rem;
 margin:1rem 1rem;
 text-align: left;
 }

 /* Legend key boxes and text to match */

.keybox {height: 1rem; width: 2rem; height: 2rem;}
.keytext {font-size: 2rem; margin-right: 3rem;}


/* Horizontal bar graph with left, center, right columns, centred on the middle column */

.ca-hbar {
zoom: 1;
margin: 2rem 0rem;
font-size: 1.8rem;
}

.ca-hbar .row {
  display: flex;
  margin-bottom: .5em;
  align-items: center;
}

.ca-hbar .content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: .5rem;
text-align: right;
}

.ca-hbar .col {
  flex: 1;
  display: flex;
}

.ca-hbar .center {
  flex: 0 0 5px;
  display: flex;
  margin: 0 0em;
}

.ca-hbar .center .content {
  flex: 1 1 100%;
}

.ca-hbar .left {
  justify-content: flex-end;
}

.ca-hbar .left .content {
  flex: 0 1 auto;
}

.ca-hbar .right .content {
  flex: 0 1 auto;
}

/* Consistent spacing when adding a stat % to the right (outside) of a horizontal bar */

.endstat { width:3rem; }  


/* Style 2 - Even bars are narrow and gray with stat to the right */

.style2 .ca-hbar .left { justify-content: space-between;}
.style2 .ca-hbar .row:nth-child(even) { height: 1rem; font-size: 2.1rem;}

/* Style 5 - Stacked bars in right column with justify-content: space-evenly to center % */
.style5 .ca-hbar .left { max-width: 20%;}
.style5 .ca-hbar .right .content {justify-content: space-evenly; height:4.5rem; }

