/* CO-166: compact ingredient and price comparisons, journal posts only.
   Keep real table headers and cell relationships at every viewport. */
.single-post .entry-content .comparison-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin-block: 1.5rem .75rem;
  -webkit-overflow-scrolling: touch;
}

.single-post .entry-content .comparison-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  color: var(--cocoa);
  font-size: 1rem;
  line-height: 1.55;
}

.single-post .entry-content .comparison-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  line-height: 1.45;
  padding-bottom: .75rem;
}

.single-post .entry-content .comparison-table th,
.single-post .entry-content .comparison-table td {
  padding: .9rem .85rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  hyphens: manual;
}

.single-post .entry-content .comparison-table thead th {
  background: var(--oat-deep);
  font-weight: 600;
}

.single-post .entry-content .comparison-table tbody th {
  background: var(--oat-soft);
  font-weight: 600;
}

.single-post .entry-content .comparison-table tr > :first-child {
  width: 27%;
}

.single-post .entry-content .comparison-table td > :last-child:not(.comparison-cell-label),
.single-post .entry-content .comparison-table th > :last-child:not(.comparison-cell-label) {
  margin-bottom: 0;
}

/* Labels are real DOM text for the mobile reading layout, not generated content. */
.single-post .entry-content .comparison-cell-label {
  display: none;
}

@media (max-width: 640px) {
  .single-post .entry-content .comparison-table,
  .single-post .entry-content .comparison-table caption,
  .single-post .entry-content .comparison-table tbody {
    display: block;
    width: 100%;
  }
  .single-post .entry-content .comparison-table {
    font-size: 1rem;
    line-height: 1.6;
  }
  /* Retain the real column headers for assistive technology. Explicit table,
     row and cell roles in the content preserve relationships after reflow. */
  .single-post .entry-content .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .single-post .entry-content .comparison-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--oat-soft);
  }
  .single-post .entry-content .comparison-table tbody th,
  .single-post .entry-content .comparison-table tbody td {
    display: block;
    width: 100%;
    border: 0;
    padding: .85rem 1rem;
  }
  .single-post .entry-content .comparison-table tbody th {
    background: var(--oat-deep);
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
    line-height: 1.5;
  }
  .single-post .entry-content .comparison-table tbody td + td {
    padding-top: 0;
  }
  .single-post .entry-content .comparison-table tr > :first-child {
    width: 100%;
  }
  .single-post .entry-content .comparison-cell-label {
    display: block;
    margin-bottom: .3rem;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--moss-deep);
  }
}/* CO-168: product-by-product ingredient verdicts; plain explanations stay visible. */
.single-post .entry-content .ingredient-product {
  margin-block: 1.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--oat-soft);
  overflow: hidden;
}
.single-post .entry-content .ingredient-product__header {
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
}
.single-post .entry-content .ingredient-product h3 {
  margin: 0 0 .55rem;
  font-size: 1.4rem;
  line-height: 1.3;
}
.single-post .entry-content .ingredient-product__verdict {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.55;
}
.single-post .entry-content .ingredient-product__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: 1.0625rem;
  line-height: 1.65;
}
.single-post .entry-content .ingredient-product__benefits,
.single-post .entry-content .ingredient-product__watch {
  min-width: 0;
  padding: 1.1rem 1.25rem 1.2rem;
}
.single-post .entry-content .ingredient-product__watch {
  border-left: 1px solid var(--line);
}
.single-post .entry-content .ingredient-product h4 {
  margin: 0 0 .7rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}
.single-post .entry-content .ingredient-product__benefits h4 {
  color: var(--moss-deep);
}
.single-post .entry-content .ingredient-product__watch h4 {
  color: var(--clay-ink);
}
.single-post .entry-content .ingredient-product ul {
  margin: 0;
  padding-left: 1.1em;
}
.single-post .entry-content .ingredient-product li + li {
  margin-top: .7rem;
}
.single-post .entry-content .ingredient-product__benefits li::marker {
  color: var(--moss-deep);
}
.single-post .entry-content .ingredient-product__watch li::marker {
  color: var(--clay-ink);
}
.single-post .entry-content a.ingredient-term {
  font-weight: 600;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
}
.single-post .entry-content a.ingredient-term:hover {
  text-decoration-style: solid;
}
.single-post .entry-content a.ingredient-term:focus-visible {
  outline: 2px solid var(--moss-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (max-width: 640px) {
  .single-post .entry-content .ingredient-product__facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .single-post .entry-content .ingredient-product__header,
  .single-post .entry-content .ingredient-product__benefits,
  .single-post .entry-content .ingredient-product__watch {
    padding: 1rem;
  }
  .single-post .entry-content .ingredient-product__watch {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .single-post .entry-content .ingredient-product h3 {
    font-size: 1.3rem;
  }
}
