/* Nutrition.fr — "Analyser mon assiette" ([nutrition_analyser_assiette]). Builds on submit.css (.nf-sub); scoped to .nf-plate. */
.nf-plate .nf-plate__h2 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--g9); }
/* Astra's .entry-content ul margin outranks the unscoped .nf-sub__lines rule and pushes the remove button out of the card. */
.nf-plate ul.nf-sub__lines { margin: 12px 0 0; padding: 0; }
.nf-plate .nf-sub__remove { flex: none; padding: 0; box-shadow: none; line-height: 1; }
/* Keeps the wide detail table scrolling inside its card instead of widening the one-column mobile grid. */
.nf-plate .nf-sub__grid > * { min-width: 0; }
.nf-plate .nf-plate__unit-only { flex: 1; font-size: 15px; }
.nf-plate .nf-plate__unit-only small { display: block; font-size: 12px; color: var(--mut); line-height: 1.3; }
.nf-plate input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.nf-plate .nf-plate__partial { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 13px; }
.nf-plate .nf-plate__partial p, .nf-plate .nf-plate__partial ul { margin: 0; }
.nf-plate .nf-plate__partial ul { padding-left: 18px; }
.nf-plate .nf-plate__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nf-plate .nf-plate__detail { width: 100%; min-width: 560px; margin: 0; border: 0; border-collapse: collapse; font-size: 14px; }
.nf-plate .nf-plate__detail th, .nf-plate .nf-plate__detail td { padding: 7px 6px; border: 0; border-top: 1px solid var(--sage); background: transparent; text-align: right; font-weight: 400; white-space: nowrap; }
.nf-plate .nf-plate__detail thead th { border-top: 0; font-size: 13px; font-weight: 700; color: var(--g9); }
.nf-plate .nf-plate__detail th:first-child { text-align: left; white-space: normal; }
.nf-plate .nf-plate__detail td:nth-child(2) { text-align: left; white-space: normal; color: var(--mut); }
.nf-plate .nf-plate__detail td.nf-plate__nm { color: var(--err); font-style: italic; font-size: 12px; white-space: normal; min-width: 72px; line-height: 1.25; }
.nf-plate .nf-sub__lead.nf-plate__intro { margin-bottom: 8px; }
.nf-plate .nf-plate__privacy { max-width: 760px; margin: 0 0 24px; font-size: 15px; font-weight: 600; color: var(--g8); }
.nf-plate .nf-plate__faq { max-width: 820px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--sage); }
.nf-plate .nf-plate__faq .nf-plate__faq-title { margin: 0 0 8px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; font-size: clamp(22px, 3vw, 28px); font-weight: 600; line-height: 1.2; color: var(--g9); }
.nf-plate .nf-plate__faq h3 { margin: 22px 0 6px; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--g9); }
.nf-plate .nf-plate__faq p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: var(--mut); }
.nf-plate .nf-plate__faq a { color: var(--g8); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nf-plate .nf-plate__links { display: grid; gap: 10px; margin: 0; }
.nf-plate .nf-plate__links a { display: flex; align-items: center; min-height: 44px; color: var(--g8); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* One column: the estimate comes right after the food lines, the per-food detail after it. */
@media (max-width: 900px) {
  .nf-plate .nf-sub__grid > div:first-child { display: contents; }
  .nf-plate .nf-sub__grid > div:first-child > * { min-width: 0; }
  .nf-plate [data-nf-plate-detail-card] { order: 2; margin-bottom: 0; }
}
