/* Add after the existing nutrition/V316 styles. No assets, fonts or theme state. */
html[data-theme="trs"] .te-logo {
  background-color: #161616;
  background-size: calc(100% - 8px) auto;
  border-radius: 8px;
}

/* Saved galleries also live outside .nsc-shell; keep their palette self-contained. */
html[data-theme="trs"] :is(.nsc-shell, .nsc-gallery, .nsc-gallery-heading, .te-nutrition-card, .te-nutrition-share) {
  --nsc-ink: #202124;
  --nsc-muted: #596066;
  --nsc-paper: #ffffff;
  --nsc-soft: #f1f2f3;
  --nsc-accent: #303438;
  --panel: #f1f2f3;
  color: #202124;
}
html[data-theme="trs"] .te-nutrition-card {
  color: #202124;
  background: #ffffff;
  border: 1px solid #dedfe1;
}
html[data-theme="trs"] .te-nutrition-card :is(.nsc-muted, .nsc-kicker, .nsc-metrics dt) {
  color: #596066;
  opacity: 1;
}
html[data-theme="trs"] .te-nutrition-card :is(.nsc-caption, .nsc-metrics dd, .nsc-ingredients, .nsc-instructions) {
  color: #202124;
  opacity: 1;
}
html[data-theme="trs"] :is(.nsc-gallery-heading button, .nsc-gallery-item > button, .te-nutrition-share select) {
  color: #202124;
  background: #f1f2f3;
  border-color: #b9bdc1;
}

/* Two ordered photographs fill one balanced row, with no vacant half-row. */
.te-nutrition-card .nsc-card-photos[data-count="2"] > figure {
  grid-column: auto;
  margin: 0;
  aspect-ratio: 4 / 3;
}
.te-nutrition-card .nsc-card-photos[data-count="2"] > figure img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
