/*
 * Supplement Ingredient Checker.
 *
 * Loads after analyzer-landings.css. Keep every selector beneath
 * .nd-lp--ingredient-checker so this label map cannot affect ingredient
 * guides, editorial posts, or other analyzer landings.
 */

.single-content .nd-lp--ingredient-checker {
  --nd-lp-category-tint: #eaf3ee;
  --nd-lp-section-y: 100px;
}

.single-content .nd-lp--ingredient-checker h1 {
  max-width: 13.5ch;
  font-size: clamp(3rem, 4.4vw, 4.15rem);
}

/* Hero ingredient-list map */

.single-content .nd-lp--ingredient-checker .nd-lp__label-map-figure figcaption {
  max-width: 66ch;
  margin: 15px auto 0;
  color: var(--nd-lp-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.single-content .nd-lp--ingredient-checker .nd-lp__label-map-stage {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: var(--nd-lp-dark);
  box-shadow: 0 24px 60px rgba(20, 37, 29, 0.16);
}

.single-content .nd-lp--ingredient-checker .nd-lp__label-map-bar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.single-content .nd-lp--ingredient-checker .nd-lp__label-map-bar > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
}

.single-content .nd-lp--ingredient-checker .nd-lp__label-map-bar i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #79b291;
  box-shadow: 0 0 0 4px rgba(121, 178, 145, 0.12);
}

.single-content .nd-lp--ingredient-checker .nd-lp__label-map-board {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(170px, 0.6fr);
  min-width: 0;
  margin: 24px;
  overflow: hidden;
  border: 1px solid #d9dfdc;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(2, 12, 7, 0.2);
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-sheet {
  min-width: 0;
  padding: 28px 24px 24px;
  color: #1c2520;
  background: #ffffff;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 5px solid #17221c;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-heading > div {
  min-width: 0;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-heading strong {
  display: block;
  color: #111713;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-heading span {
  display: block;
  margin-top: 5px;
  color: #68736d;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.35;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-heading > span {
  margin: 0;
  color: var(--nd-lp-green);
  font-size: 0.64rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(94px, auto);
  gap: 15px;
  align-items: center;
  padding: 13px 0 13px 10px;
  border-bottom: 1px solid #d9dfdc;
  border-left: 3px solid #78a98e;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-row[data-disclosure="partial"],
.single-content .nd-lp--ingredient-checker .nd-lp__facts-row[data-disclosure="hidden"] {
  border-left-color: #c49748;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-row > div {
  min-width: 0;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-row > div:last-child {
  text-align: right;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-row strong,
.single-content .nd-lp--ingredient-checker .nd-lp__facts-row small,
.single-content .nd-lp--ingredient-checker .nd-lp__facts-row b,
.single-content .nd-lp--ingredient-checker .nd-lp__facts-row span {
  display: block;
  overflow-wrap: anywhere;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-row strong {
  color: #27332c;
  font-size: 0.77rem;
  font-weight: 750;
  line-height: 1.35;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-row small {
  margin-top: 3px;
  color: #69746d;
  font-size: 0.67rem;
  line-height: 1.38;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-row b {
  color: #111713;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.3;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-row span {
  margin-top: 4px;
  color: #6b756f;
  font-size: 0.59rem;
  font-weight: 650;
  line-height: 1.3;
}

.single-content .nd-lp--ingredient-checker .nd-lp__facts-row[data-disclosure="partial"] span,
.single-content .nd-lp--ingredient-checker .nd-lp__facts-row[data-disclosure="hidden"] span {
  color: var(--nd-lp-warning);
}

.single-content .nd-lp--ingredient-checker .nd-lp__other-ingredients {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid #17221c;
}

.single-content .nd-lp--ingredient-checker .nd-lp__other-ingredients strong {
  color: #27332c;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
}

.single-content .nd-lp--ingredient-checker .nd-lp__other-ingredients p {
  margin-top: 5px;
  color: #657069;
  font-size: 0.68rem;
  line-height: 1.5;
}

.single-content .nd-lp--ingredient-checker .nd-lp__label-key {
  min-width: 0;
  padding: 29px 22px 24px;
  border-left: 1px solid #d9dfdc;
  color: #27332c;
  background: #f1f5f2;
}

.single-content .nd-lp--ingredient-checker .nd-lp__label-key-title {
  color: var(--nd-lp-green);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.single-content .nd-lp--ingredient-checker .nd-lp__label-key dl {
  margin-top: 16px;
}

.single-content .nd-lp--ingredient-checker .nd-lp__label-key dl > div {
  padding-block: 12px;
  border-top: 1px solid #d4ddd8;
}

.single-content .nd-lp--ingredient-checker .nd-lp__label-key dt {
  color: #28342d;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.35;
}

.single-content .nd-lp--ingredient-checker .nd-lp__label-key dd {
  margin-top: 4px;
  color: #68736d;
  font-size: 0.64rem;
  line-height: 1.45;
}

/* Disclosure comparison refinements */

.single-content .nd-lp--ingredient-checker .nd-lp__proof-row--head {
  background: #f5f7f6;
}

.single-content .nd-lp--ingredient-checker .nd-lp__proof-row--head > :not(:first-child) {
  font-size: 0.88rem;
}

.single-content .nd-lp--ingredient-checker .nd-lp__proof-row > span strong {
  color: var(--nd-lp-green);
  font-weight: 750;
}

@media (max-width: 860px) {
  .single-content .nd-lp--ingredient-checker {
    --nd-lp-section-y: 80px;
  }
}

@media (max-width: 720px) {
  .single-content .nd-lp--ingredient-checker .nd-lp__label-map-board {
    grid-template-columns: 1fr;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__label-key {
    border-top: 1px solid #d9dfdc;
    border-left: 0;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__label-key dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }
}

@media (max-width: 640px) {
  .single-content .nd-lp--ingredient-checker {
    --nd-lp-section-y: 64px;
  }

  .single-content .nd-lp--ingredient-checker h1 {
    max-width: 11.2ch;
    font-size: clamp(2.48rem, 12vw, 3.25rem);
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__hero {
    padding-block: 58px 62px;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__hero-grid {
    gap: 43px;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__label-map-stage {
    border-radius: 20px;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__label-map-bar {
    min-height: 0;
    flex-wrap: wrap;
    gap: 7px 14px;
    padding: 14px 16px;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__label-map-bar > span:last-child {
    width: 100%;
    padding-left: 17px;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__label-map-board {
    margin: 14px;
    border-radius: 11px;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__facts-sheet,
  .single-content .nd-lp--ingredient-checker .nd-lp__label-key {
    padding: 22px 17px 19px;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__facts-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__facts-heading > span {
    text-align: left;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__label-key dl {
    grid-template-columns: 1fr;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__proof-row--head {
    display: none;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__proof-row > [data-formula]::before {
    display: block;
    margin-bottom: 3px;
    color: var(--nd-lp-muted);
    content: attr(data-formula);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media (max-width: 380px) {
  .single-content .nd-lp--ingredient-checker .nd-lp__facts-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .single-content .nd-lp--ingredient-checker .nd-lp__facts-row > div:last-child {
    text-align: left;
  }
}
