
:root {
  --color-news-red: #c70000;
  --color-feature-red: #880105;
  --color-inverted-red: #ff4e36;
  --color-live-pink: #ffbac8;
  --color-live-red: #ad0006;
  --color-opinion-orange: #e05e00;
  --color-feature-orange: #bd5318;
  --color-inverted-orange: #ff7f0f;
  --color-background-orange: #fef9f5;
  --color-sport-blue: #0084c6;
  --color-feature-blue: #005689;
  --color-inverted-blue: #00b2ff;
  --color-live-blue: #90dcff;
  --color-culture-gold: #a1845c;
  --color-feature-gold: #6b5840;
  --color-inverted-gold: #eacca0;
  --color-live-gold: #e7d4b9;
  --color-lifestyle-pink: #bb3b80;
  --color-feature-pink: #7d0068;
  --color-inverted-pink: #ffabdb;
  --color-live-pink: #ffbac8;
  --color-gray-7: #121212;
  --color-gray-20: #333333;
  --color-gray-46: #767676;
  --color-gray-60: #999999;
  --color-gray-86: #dcdcdc;
  --color-gray-92: #eaeaea;
  --color-gray-96: #f6f6f6;
  --color-gray-100: #ffffff;

  --font-family-sans: "Guardian Text Sans Web", Helvetica, Arial, sans-serif;
  --font-family-serif: GuardianTextEgyptian, Guardian Text Egyptian Web, Georgia,serif;
  --font-family-headline: GH Guardian Headline, Guardian Egyptian Web, Georgia,serif;
  --font-size-13: 0.8125rem; /* 13px */
  --font-size-14: 0.875rem; /* 14px */
  --font-size-15: 0.9375em; /* 15px */
  --font-size-16: 1rem; /* 16px */
  --font-size-17: 1.0625rem; /* 17px */
  --font-size-20: 1.25rem; /* 20px */
  --font-size-32: 2rem; /* 32px */
}

/********************************************************
Base styles and typography
********************************************************/
html,
body {
  color: var(--color-gray-7);
  background-color: var(--color-gray-100);
  font-feature-settings: 'kern';
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-size: var(--font-size-16);
  font-family: var(--font-family-serif);
  margin: 0;
  padding: 0;
  height: auto;
  width: auto;
  max-width: 620px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.body-with-rules {
  padding: 10px 0;
  border-top: 1px solid var(--color-gray-86);
  border-bottom: 1px solid var(--color-gray-86);
}

.headline {
  font-family: var(--font-family-headline);
  font-size: var(--font-size-20);
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 10px;
}

.standfirst {
  font-size: var(--font-size-14);
  line-height: 1.35;
  margin-bottom: 10px;
}

.subhead {
  font-size: var(--font-size-14);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 8px;
}

.source {
  color: var(--color-gray-46);
  font-size: var(--font-size-13);
  font-family: var(--font-family-sans);
  line-height: 1.2;
  padding-top: 10px;
}

.note {
  color: var(--color-gray-46);
  font-size: var(--font-size-13);
  font-family: var(--font-family-sans);
  line-height: 1.2;
  padding-top: 10px;
}
/********************************************************
Button and expanding container styles
********************************************************/

/** Expanding container **/
.expanding-wrapper {
  display: flex;
  flex-direction: column;
}

.expanding-wrapper.is-open .inner {
  max-height: 100%;
}

.inner {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  min-height: 540px;
  position: relative;
  max-width: 620px;
}

.fade-container {
  bottom: 0;
  opacity: 1;
  position: absolute;
  text-align: center;
  transition: opacity 0.5s ease;
  width: 100%;
  z-index: 2;
}

.fade-button {
  align-items: flex-start;
  background-color: var(--color-gray-7);
  border: none;
  border-radius: 26px;
  bottom: 20px;
  color: var(--color-gray-100);
  cursor: pointer;
  font-family: var(--font-family-sans);
  font-weight: 600;
  font-size: var(--font-size-15);
  height: unset;
  padding: 13px 20px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 1;
}

.fade-button svg {
  fill: var(--color-gray-100);
  height: 20px;
  width: 20px;
  margin-right: 5px;
  margin-top: -5px;
  transform: translateY(4px);
}

.fade {
  background: linear-gradient(0deg,#fff,rgba(255,255,255,0));
  height: 200px;
}

/********************************************************
Project specific styles
********************************************************/
.row {
  border-bottom: 1px dotted var(--color-gray-86);
  display: flex;
  flex-direction: row;
  padding: 6px 0;
  justify-content: space-between;
  align-items: center;
}

.row:last-child {
  border: none;
}

.circle {
  height: 20px;
  width: 20px;
  display:inline-block;
  border-radius:100%;
  margin: 0 auto;
  background-position: center;
  background-size: 90%;
}
/* 
.very_low {
  background-color: #009a49;
  background-image: url("./img/very_low.png")
}

.low {
  background-color: #96bb33;
  background-image: url("./img/low.png")
}

.moderate {
  background-color: #f1b70e;
  background-image: url("./img/moderate.png")
}

.high {
  background-color: #f37920;
  background-image: url("./img/high.png")
}

.very_high {
  background-color: #d71921;
  background-image: url("./img/very_high.png")
} */


.very_low {
  background-color: #4dac26;
}

.low {
  background-color: #b8e186;
}

.moderate {
  background-color: #cbcbcb;
}

.high {
  background-color: #f1b6da;
}

.very_high {
  background-color: #d01c8b;
}
.NA {
  border:1px solid #c8c8c8;
  position: relative;
}


.table-header-section {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.table-header-section.bottom {
  margin-top: 5px;
  border-bottom: 1px solid var(--color-gray-7);
  padding-bottom: 7px;
}

.table-header-category {
  font-weight: bold;
  font-family: var(--font-family-sans);
  width: calc((100% - 200px) /2);
}

.table-header-subcategory {
  font-size: var(--font-size-13);
  font-family: var(--font-family-sans);
  text-align: center;
  width: calc((100% - 200px) /4);
}

.table-header-section .textcontainer {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-13);
  text-align: left;
}

.textcontainer {
  width: 200px;
}

.food_name {
  font-size: var(--font-size-14);
  font-weight: bold;
}

.serving_size {
  font-size: 13px;
  font-family: var(--font-family-sans);
  margin-top: 4px;
}

.table {
  display: none;
}

.table.show {
  display: block;
}

.view {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-13);
  margin-bottom: 4px;
}

button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #121212;
  background-color: #fff;
  color: #121212;
  cursor: pointer;
  transition: .1s ease-in-out;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  font-family: var(--font-family-serif);
  font-size: var(--font-size-14);
  line-height: 1.3;
  font-weight: 700;
  height: 24px;
  min-height: 24px;
  padding: 1px 12px 0 12px;
  border-radius: 24px;
}

button.active {
  color: #FFFFFF;
  background-color: #121212;
  border-color: #121212;
}
 
span.legendtext {
  display: inline-block;
  font-size: 11px; 
  font-family: var(--font-family-sans);
  color: var(--color-gray-46);
  text-align: center;
  margin-top: 2px;
  width: 100%;
}

.legend li {
  display: inline-block;
}

.legend li .circle {
  display: block;
}

.legend:before{
  content: "Lower risk";
  font-size: var(--font-size-15);
  font-family: var(--font-family-sans);
  font-weight: bold;
  position:absolute;
  top: -20px; 
  left: 0;
}

.legend:after{
  content: "Higher risk";
  font-size: var(--font-size-15);
  font-family: var(--font-family-sans);
  font-weight: bold;
  position:absolute;
  top: -20px; 
  right: 40px;
}

.legend {
  position:relative;
  max-width: 240px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
}

.legend_wrapper {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin: 15px 0 20px;
  gap: 20px;
}

@media (max-width: 430px) {
  .textcontainer {
    width: 120px;
  }
  .table-header-category {
    width: calc((100% - 120px) /2);
  }
  
  .table-header-subcategory {
    width: calc((100% - 120px) /4);
  }
  .button_container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }

  .view {
    flex: 100%;
    margin-bottom: 0;
  }
}


@media (max-width: 320px) {
  .text-container {
    width: 100px;
  }
  .legend_wrapper {
    flex-direction: column;
    align-items: start;
  }

  .button_container {
    align-items: center;
  }

  .view {
    flex: unset;
    margin-right: 10px;
  }
}

.note a{
  color: var(--color-news-red);
}