/* ============================================================
   itk-lc - "Our read": the two editorial sections on a product page.

   The data on the page lives in boxes (1px ink frame or the panel fill).
   Our voice does not: these two sections are open chapters, opened by a
   3px ink rule and an uppercase headline, so the eye can tell measurement
   from opinion without reading a word.

   A  .itk-lc--ingredients  the pack's signature feature on a brick slab,
                            our grade on a three-step meter, and the whole
                            ingredient list drawn as a barcode.
   B  .itk-lc--label        one big contextual number, two label tests,
                            and a feed-it / skip-it split.

   Tokens only. No --itk-* variables are defined (that namespace belongs
   to the plugins); the few local custom properties are --lc-*.
   ============================================================ */

.itk-lc {
  --lc-rule: var(--border-w, 3px);
  margin: 64px 0 0;
  padding-top: 18px;
  border-top: var(--lc-rule) solid var(--ink);
  color: var(--ink);
}
.itk-lc :where(*, *::before, *::after) { box-sizing: border-box; }
/* Reset at single-class weight, declared first, so every component rule
   below (also single-class) wins by order instead of losing to it. */
.itk-lc :where(p, h2, h3, figure, blockquote, ol, ul, li, dl, dt, dd) { margin: 0; padding: 0; }
.itk-lc :where(ol, ul) { list-style: none; }

/* ---- Shared head ---- */
.itk-lc__kicker,
.itk-lc__label,
.itk-lc__tab,
.itk-lc__says figcaption,
.itk-lc__testno,
.itk-lc__listhead,
.itk-lc__fit dt {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.itk-lc__kicker { color: var(--blue); }
.itk-lc__label { color: var(--muted); }
.itk-lc__title {
  margin-top: 12px;
  max-width: 21ch;
  font-family: var(--display);
  font-size: clamp(30px, 4.1vw, 54px);
  font-weight: 700;
  line-height: .97;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ============================================================
   A. Ingredients
   ============================================================ */
.itk-lc__deck {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  margin-top: 30px;
  border: var(--lc-rule) solid var(--ink);
}

/* The slab: the brand's feature, stated in the brand's own name. */
.itk-lc__spot {
  background: var(--blue);
  color: var(--on-blue);
  padding: 26px 30px 30px;
}
.itk-lc__tab { color: var(--on-blue-soft); }
.itk-lc__feature {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.itk-lc__says {
  margin-top: 24px;
  padding-left: 16px;
  border-left: var(--lc-rule) solid var(--on-blue);
  max-width: 52ch;
}
.itk-lc__says blockquote p {
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--on-blue);
}
.itk-lc__says blockquote p::before { content: "\201C"; }
.itk-lc__says blockquote p::after  { content: "\201D"; }
.itk-lc__says figcaption { margin-top: 8px; color: var(--on-blue-soft); }
.itk-lc__what {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--on-blue-soft);
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-blue-2);
}
.itk-lc__what .itk-lc__label {
  display: block;
  margin-bottom: 6px;
  color: var(--on-blue-soft);
}

/* Our side of the argument. */
.itk-lc__verdict {
  display: flex;
  flex-direction: column;
  padding: 26px 30px 30px;
  background: var(--white);
  border-left: var(--lc-rule) solid var(--ink);
}
.itk-lc__meter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  border: var(--lc-rule) solid var(--ink);
}
.itk-lc__step {
  padding: 13px 6px 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--rule);
}
.itk-lc__step:first-child { border-left: 0; }
.itk-lc__step.is-on {
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
}
.itk-lc__take {
  margin-top: 22px;
  font-size: clamp(17px, 1.45vw, 19.5px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--ink);
}

.itk-lc__gradedef {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  line-height: 1.5;
  color: var(--muted);
}
.itk-lc__gradedef b { font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: .12em; }

/* The list as a barcode: one bar per ingredient, heaviest on the left.
   Bars are equal on purpose - the label gives order, not amounts. */
.itk-lc__list { margin-top: 26px; }
.itk-lc__listhead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10.5px;
}
.itk-lc__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 58px;
  margin-top: 8px;
  padding-top: 18px;             /* room for the salt tag */
  border-bottom: var(--lc-rule) solid var(--ink);
}
.itk-lc__bar {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 22px;
  background: var(--rule);
}
.itk-lc__bar.is-mark { height: 40px; background: var(--blue); }
.itk-lc__bar.is-salt { height: 40px; background: var(--ink); }
.itk-lc__bar.is-salt span {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 3px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.itk-lc__cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 32px;
  align-items: start;
  margin-top: 14px;
}
.itk-lc__line {
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body-2);
}
.itk-lc__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.itk-lc__legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 4px;
  border: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.itk-lc__legend b {
  min-width: 24px;
  padding: 2px 4px;
  background: var(--blue);
  color: var(--on-blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.itk-lc__legend li.is-salt b { background: var(--ink); color: var(--on-ink); }

/* ============================================================
   B. Label
   ============================================================ */
.itk-lc--label { margin: 44px 0 24px; }   /* sits inside .pd-stack (gap 20px) */

.itk-lc__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--ink);
}
.itk-lc__stat {
  padding: 22px 36px 26px 0;
  border-right: 1px solid var(--ink);
}
.itk-lc__stat .itk-lc__label { display: block; margin-bottom: 18px; }
.itk-lc__num {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: clamp(84px, 11vw, 150px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.06em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.itk-lc__unit {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.itk-lc__statcap {
  margin-top: 20px;
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body-2);
}

.itk-lc__tests { padding-left: 36px; }
.itk-lc__test {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  grid-template-areas:
    "no q a"
    ".  d d";
  gap: 6px 16px;
  align-items: baseline;
  padding: 22px 0;
}
.itk-lc__test + .itk-lc__test { border-top: 1px solid var(--rule); }
.itk-lc__testno { grid-area: no; color: var(--muted); font-size: 10.5px; }
.itk-lc__q {
  grid-area: q;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.itk-lc__a {
  grid-area: a;
  justify-self: end;
  align-self: center;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.itk-lc__detail {
  grid-area: d;
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--body);
}

/* Feed it / skip it: the two lines an owner actually came for. */
.itk-lc__fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 6px;
  border: var(--lc-rule) solid var(--ink);
}
.itk-lc__fitcol { padding: 18px 24px 22px; }
.itk-lc__fitcol + .itk-lc__fitcol { border-left: var(--lc-rule) solid var(--ink); }
.itk-lc__fitcol--for  { background: var(--white); }
.itk-lc__fitcol--skip { background: var(--panel); }
.itk-lc__fit dt { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.itk-lc__fit dt::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--ink);
}
.itk-lc__fitcol--skip dt::before {
  background: transparent;
  border: 3px solid var(--blue);
  box-shadow: inset 0 0 0 2px var(--panel);
  background-image: linear-gradient(45deg, transparent 45%, var(--blue) 45% 55%, transparent 55%),
                    linear-gradient(-45deg, transparent 45%, var(--blue) 45% 55%, transparent 55%);
}
.itk-lc__fit dd {
  margin-top: 10px;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.01em;
}

/* ============================================================
   Narrow screens
   ============================================================ */
@media (max-width: 960px) {
  .itk-lc__deck { grid-template-columns: 1fr; }
  .itk-lc__verdict { border-left: 0; border-top: var(--lc-rule) solid var(--ink); }
  .itk-lc__cap { grid-template-columns: 1fr; }
  .itk-lc__legend { justify-content: flex-start; }

  .itk-lc__body { grid-template-columns: 1fr; }
  .itk-lc__stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: end;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .itk-lc__statcap { margin-top: 0; }
  .itk-lc__stat .itk-lc__label { grid-column: 1 / -1; margin-bottom: 0; }
  .itk-lc__tests { padding-left: 0; }
}

@media (max-width: 600px) {
  .itk-lc { margin-top: 48px; padding-top: 14px; }
  .itk-lc--label { margin: 32px 0 16px; }
  .itk-lc__title { font-size: 30px; line-height: 1; }
  .itk-lc__deck { margin-top: 22px; margin-inline: 0; }
  .itk-lc__spot, .itk-lc__verdict { padding: 20px 18px 22px; }
  .itk-lc__feature { font-size: 40px; }
  .itk-lc__says blockquote p { font-size: 15.5px; }
  .itk-lc__step { padding: 11px 2px 10px; font-size: 10.5px; letter-spacing: .06em; }
  .itk-lc__take { font-size: 17px; }
  .itk-lc__bars { gap: 1px; height: 52px; }
  .itk-lc__bar { height: 18px; }
  .itk-lc__bar.is-mark, .itk-lc__bar.is-salt { height: 34px; }
  .itk-lc__line { font-size: 15.5px; }
  .itk-lc__listhead span:nth-child(2) { display: none; }

  .itk-lc__stat { grid-template-columns: 1fr; gap: 14px; }
  .itk-lc__stat .itk-lc__label { display: block; margin-bottom: 18px; }
.itk-lc__num { font-size: 92px; }
  .itk-lc__test {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "no a"
      "q  q"
      "d  d";
    gap: 8px 12px;
    padding: 18px 0;
  }
  .itk-lc__q { font-size: 19px; }
  .itk-lc__fit { grid-template-columns: 1fr; }
  .itk-lc__fitcol + .itk-lc__fitcol { border-left: 0; border-top: var(--lc-rule) solid var(--ink); }
  .itk-lc__fitcol { padding: 16px 18px 18px; }
  .itk-lc__fit dd { font-size: 17px; }
}
