/*
 * nutriscrolls/nutrition-facts: panel with the calorie split (macronutrients, expandable full breakdown)
 * and the vitamins and minerals in source tiers. Semantic theme tokens only, so light and dark follow
 * the theme. Built for the ~380-440 px column of the food page and for full width on a phone (>= 358 px).
 */

/* ---------- Cards ----------
   The block is two cards (calories and macros; vitamins and minerals) with "About these numbers" under them, so the
   wrapper drops the shared panel look (shared.css) and each card takes it. */
.wp-block-nutriscrolls-nutrition-facts.ns-nutrition-facts {
	background: none;
	border: 0;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--60); /* the same gap as between the photo and the cards (.ns-food__side) */
	padding: 0;
}
.ns-nf__card {
	background: var(--wp--preset--color--surface-raised);
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--50);
}
/* The card edge is the divider: no rule or extra room at a card's top or bottom. */
.ns-nf__card > .ns-nf__section:first-child {
	border-top: 0;
	padding-top: 0;
}
.ns-nf__card > .ns-nf__section:last-child {
	padding-bottom: 0;
}

/* ---------- Header ---------- */
.ns-nutrition-facts__header {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	padding-bottom: var(--wp--preset--spacing--40);
}
.ns-nutrition-facts__title {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--h-4);
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: var(--wp--custom--line-height--h-4);
	margin: 0;
}
.ns-nutrition-facts__subtitle {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--body-small);
	line-height: var(--wp--custom--line-height--body-small);
	margin: 0;
}

/* ---------- Sections ---------- */
/* Equal room above and below each divider (24 px on desktop). */
.ns-nf__section {
	border-top: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line);
	padding-block: var(--wp--preset--spacing--50);
}
/* Card heading ("Vitamins and minerals"): the same size as "Nutrition facts" on the first card. */
.ns-nf__label {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--h-4);
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: var(--wp--custom--line-height--h-4);
	margin: 0 0 4px;
}
.ns-nf__nodata {
	color: var(--wp--preset--color--ink-muted);
}

/* ---------- Macronutrients: calories, split bar, legend ---------- */
.ns-nf__calories {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--30);
}
/* The hero number. Selector doubled: .ns-data (base.css) also sets font-size and line-height. */
.ns-nf__calories .ns-nf__calories-num {
	color: var(--wp--preset--color--ink);
	font-size: 2rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1;
}
.ns-nf__calories .ns-nf__calories-unit,
.ns-nf__calories .ns-nf__calories-sep {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--body-small);
	font-weight: 500;
	line-height: 1;
}
/* EU: "1,628 kJ / 389 kcal" — the slash sits between the two amounts. */
.ns-nf__calories .ns-nf__calories-sep {
	font-size: 1.25rem;
	font-weight: 400;
}

/* The bar: 14 px, 2 px gaps (the panel colour shows through), rounded ends. */
.ns-nf__split {
	border-radius: 7px;
	display: flex;
	gap: 2px;
	height: 14px;
	overflow: hidden;
}
.ns-nf__seg {
	background: var(--ns-part, var(--wp--preset--color--macro-carbs));
	border-radius: var(--wp--custom--radius--sm);
	flex: var(--ns-share, 1) 1 0%;
	min-width: 4px;
}
.ns-nf__seg--carbs,
.ns-nf__swatch--carbs { --ns-part: var(--wp--preset--color--macro-carbs); }
.ns-nf__seg--protein,
.ns-nf__swatch--protein { --ns-part: var(--wp--preset--color--macro-protein); }
.ns-nf__seg--fat,
.ns-nf__swatch--fat { --ns-part: var(--wp--preset--color--macro-fat); }
.ns-nf__seg--alcohol,
.ns-nf__swatch--alcohol { --ns-part: var(--wp--preset--color--macro-alcohol); }
.ns-nf__seg--fiber,
.ns-nf__swatch--fiber { --ns-part: var(--wp--preset--color--macro-fiber); }
.ns-nf__seg--fiber-insoluble,
.ns-nf__swatch--fiber-insoluble { --ns-part: var(--wp--preset--color--macro-fiber-insoluble); }
.ns-nf__seg--protein-other,
.ns-nf__swatch--protein-other { --ns-part: var(--wp--preset--color--macro-protein-other); }

/* Macro list under the split bar: one aligned row per part in the bar's order (swatch, name, grams muted, share bold),
   the numbers right-aligned in columns so they compare straight down. */
.ns-nf__macro-list {
	list-style: none;
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: 0;
}
.ns-nf__macro {
	align-items: center;
	display: grid;
	font-size: 0.875rem;
	gap: var(--wp--preset--spacing--20);
	grid-template-columns: auto minmax(0, 1fr) auto 3.25rem;
	line-height: 1.4;
	padding-block: 6px;
}
.ns-nf__macro + .ns-nf__macro {
	border-top: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line);
}
.ns-nf__macro .ns-nf__swatch {
	height: 10px;
	width: 10px;
}
.ns-nf__macro-name {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}
.ns-nf__macro-g {
	color: var(--wp--preset--color--ink-muted);
	font-variant-numeric: tabular-nums;
	text-align: end;
	white-space: nowrap;
}
.ns-nf__macro-pct {
	color: var(--wp--preset--color--ink);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	text-align: end;
	white-space: nowrap;
}

/* Nutrient density under the macro list: label and the score in a pill colored by tier (high dark green, moderate light
   green, low red; text >= 4.5:1 on each in both modes), then a one-line explanation. */
.ns-nf__density {
	border-top: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line);
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-block: 12px 8px;
	padding-top: 20px;
}
.ns-nf__density-head {
	align-items: center;
	display: flex;
	font-size: 0.875rem;
	justify-content: space-between;
	margin: 0;
}
.ns-nf__density-label {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}
.ns-nf__density-pill {
	align-items: center;
	appearance: none;
	background: var(--ns-pill-bg);
	border: 0;
	border-radius: 999px;
	color: var(--ns-pill-ink);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	gap: 6px;
	padding: 4px 10px 4px 14px;
}
.ns-nf__density-pill:hover {
	box-shadow: inset 0 0 0 1px currentcolor;
}
.ns-nf__density-pill:focus-visible {
	outline: var(--wp--custom--border--focus) solid var(--wp--preset--color--focus);
	outline-offset: 2px;
}
.ns-nf__density-info.ns-icon {
	height: 16px;
	opacity: 0.8;
	width: 16px;
}
.ns-nf__density-tiers {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: 0;
}
.ns-nf__density-tiers li {
	align-items: baseline;
	display: flex;
	gap: 8px;
}
.ns-nf__density-tiers li::before {
	background: var(--ns-dot);
	border: 1.5px solid var(--ns-dot-edge, var(--ns-dot));
	border-radius: 50%;
	box-sizing: border-box;
	content: "";
	flex: none;
	height: 10px;
	transform: translateY(1px);
	width: 10px;
}
/* Each dot is a tiny pill: the tier's fill, edged with its text color where the fill is pale. */
.ns-nf__density-tiers .is-high { --ns-dot: var(--wp--preset--color--density-high); }
.ns-nf__density-tiers .is-moderate { --ns-dot: var(--wp--preset--color--density-moderate); --ns-dot-edge: var(--wp--preset--color--on-density-moderate); }
.ns-nf__density-tiers .is-low { --ns-dot: var(--wp--preset--color--density-low); --ns-dot-edge: var(--wp--preset--color--on-density-low); }
.ns-nf__density-caveat {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--caption);
	margin-bottom: 0;
}
.ns-nf__density-pill.is-high {
	--ns-pill-bg: var(--wp--preset--color--density-high);
	--ns-pill-ink: var(--wp--preset--color--on-density-high);
}
.ns-nf__density-pill.is-moderate {
	--ns-pill-bg: var(--wp--preset--color--density-moderate);
	--ns-pill-ink: var(--wp--preset--color--on-density-moderate);
}
.ns-nf__density-pill.is-low {
	--ns-pill-bg: var(--wp--preset--color--density-low);
	--ns-pill-ink: var(--wp--preset--color--on-density-low);
}
.ns-nf__density-pill strong {
	font-size: 1.125rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}
.ns-nf__density-tier {
	font-size: 0.8125rem;
	font-weight: 600;
}
.ns-nf__density-note {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--caption);
	line-height: var(--wp--custom--line-height--caption);
	margin: 0;
}

/* Legend of the essential / non-essential amino acid bar (protein completeness): name over "6 g · 36%". */
.ns-nf__legend {
	display: grid;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	grid-template-columns: repeat(auto-fit, minmax(5.75rem, 1fr));
	list-style: none;
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: 0;
}
.ns-nf__legend--cols2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ns-nf__legend-item {
	display: flex;
	flex-direction: column;
	font-size: 0.875rem;
	gap: 1px;
	line-height: 1.35;
	min-width: 0;
}
.ns-nf__legend-name {
	align-items: center;
	color: var(--wp--preset--color--ink-muted);
	display: inline-flex;
	font-weight: 500;
	gap: 6px;
}
.ns-nf__legend-val {
	color: var(--wp--preset--color--ink);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	padding-inline-start: 14px;
	white-space: nowrap;
}
.ns-nf__legend-val.ns-nf__nodata {
	color: var(--wp--preset--color--ink-muted);
	font-weight: 400;
}
.ns-nf__swatch {
	background: var(--ns-part, var(--wp--preset--color--macro-carbs));
	border-radius: var(--wp--custom--radius--sm);
	display: inline-block;
	flex: none;
	height: 8px;
	width: 8px;
}
.ns-nf__swatch.is-none {
	background: none;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--line-strong);
}

/* ---------- Full breakdown (<details>, works without script) ---------- */
.ns-nf__more {
	margin-top: var(--wp--preset--spacing--40);
}
.ns-nf__more-toggle {
	align-items: center;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--link-default);
	cursor: pointer;
	display: inline-flex;
	font-size: var(--wp--preset--font-size--body-small);
	font-weight: 600;
	gap: var(--wp--preset--spacing--10);
	line-height: var(--wp--custom--line-height--body-small);
	list-style: none;
	min-height: 24px;
}
.ns-nf__more-toggle::-webkit-details-marker {
	display: none;
}
.ns-nf__more-toggle:hover {
	color: var(--wp--preset--color--link-hover);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.ns-nf__more-toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--focus);
	outline-offset: 2px;
}
.ns-nf__more[open] > .ns-nf__more-toggle .ns-icon {
	transform: rotate(180deg);
}
.ns-nf__more-body {
	padding-top: var(--wp--preset--spacing--30);
}
.ns-nf__group + .ns-nf__group {
	margin-top: var(--wp--preset--spacing--40);
}
/* The group's parent row (carbohydrates, total fat, protein) is its heading, with amount and % DV. */
.ns-nf__group-head {
	align-items: baseline;
	border-bottom: 1px solid var(--wp--preset--color--line-strong);
	display: flex;
	gap: var(--wp--preset--spacing--30);
	justify-content: space-between;
	padding-block: 4px;
}
.ns-nf__group-title {
	color: var(--wp--preset--color--ink);
	flex: 1 1 auto;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	min-width: 0;
}
.ns-nf__group-head .ns-nf__vals {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}
.ns-nf__rows {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ns-nf__row {
	align-items: baseline;
	border-bottom: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line);
	display: flex;
	gap: var(--wp--preset--spacing--30);
	justify-content: space-between;
	padding-block: 6px;
}
.ns-nf__name {
	flex: 1 1 auto;
	font-size: 0.875rem;
	line-height: 1.4;
	min-width: 0;
	overflow-wrap: anywhere;
	padding-inline-start: calc(var(--ns-depth, 0) * 16px);
}
.ns-nf__row.is-sub .ns-nf__name {
	color: var(--wp--preset--color--ink-muted);
}
/* Protein completeness (amino acid score) at the top of the protein group */
.ns-nf__score {
	padding-block: 8px 6px;
}
.ns-nf__score-line {
	font-size: 0.875rem;
	line-height: 1.4;
	margin: 0 0 6px;
}
.ns-nf__score .ns-nf__score-num {
	color: var(--wp--preset--color--ink);
	font-size: 1.125rem;
	font-weight: 600;
}
.ns-nf__score .ns-nf__score-max {
	color: var(--wp--preset--color--ink-muted);
	font-size: 0.8125rem;
}
.ns-nf__split--aa {
	border-radius: 4px;
	height: 8px;
}
.ns-nf__score .ns-nf__legend {
	margin-top: 6px;
}
.ns-nf__aa-score,
.ns-nf__aa-note {
	color: var(--wp--preset--color--ink-muted);
	font-size: 0.75rem;
}
.ns-nf__aa-note {
	font-style: italic;
}
.ns-nf__row.is-limiting .ns-nf__name,
.ns-nf__row.is-limiting .ns-nf__aa-score,
.ns-nf__row.is-limiting .ns-nf__amt {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}
.ns-nf__aa-limiting {
	font-family: var(--wp--preset--font-family--body);
	font-style: normal;
	font-weight: 700;
}
.ns-nf__vals .ns-nf__aa-score {
	font-size: 0.75rem;
}

/* Swatches of the parent rows and their first-level children: in the indent, so the names stay aligned. */
.ns-nf__name {
	position: relative;
}
.ns-nf__dot {
	--ns-dot: var(--wp--preset--color--macro-carbs);
	background: var(--ns-dot);
	border-radius: var(--wp--custom--radius--sm);
	display: inline-block;
	height: 8px;
	margin-inline-end: 6px;
	width: 8px;
}
.ns-nf__row .ns-nf__dot {
	left: calc(var(--ns-depth, 1) * 16px - 14px);
	margin: 0;
	position: absolute;
	top: 0.55em;
}
.ns-nf__dot--carbs { --ns-dot: var(--wp--preset--color--macro-carbs); }
.ns-nf__dot--starch { --ns-dot: var(--wp--preset--color--macro-starch); }
.ns-nf__dot--fiber { --ns-dot: var(--wp--preset--color--macro-fiber); }
.ns-nf__dot--fiber-insoluble { --ns-dot: var(--wp--preset--color--macro-fiber-insoluble); }
.ns-nf__dot--fat { --ns-dot: var(--wp--preset--color--macro-fat); }
.ns-nf__dot--fat-mono { --ns-dot: var(--wp--preset--color--macro-fat-mono); }
.ns-nf__dot--fat-poly { --ns-dot: var(--wp--preset--color--macro-fat-poly); }
.ns-nf__dot--protein { --ns-dot: var(--wp--preset--color--macro-protein); }
.ns-nf__dot--protein-other { --ns-dot: var(--wp--preset--color--macro-protein-other); }
/* Links: ink, underlined only on hover and focus. */
.ns-nf__group .ns-nf__name a,
.ns-nf__more--vm .ns-nf__name a,
.ns-nf__group-title a {
	color: inherit;
	text-decoration: none;
}
.ns-nf__group .ns-nf__name a:hover,
.ns-nf__group .ns-nf__name a:focus-visible,
.ns-nf__more--vm .ns-nf__name a:hover,
.ns-nf__more--vm .ns-nf__name a:focus-visible,
.ns-nf__group-title a:hover,
.ns-nf__group-title a:focus-visible {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: currentcolor;
	text-underline-offset: 0.2em;
}
.ns-nf__est {
	color: var(--wp--preset--color--ink-muted);
	cursor: help;
	font-size: 0.75rem;
	font-style: italic;
	font-weight: 400;
	margin-inline-start: 0.2em;
}
.ns-nf__vals {
	align-items: baseline;
	display: flex;
	flex: none;
	font-size: 0.8125rem;
	gap: var(--wp--preset--spacing--30);
	justify-content: flex-end;
	line-height: 1.4;
	text-align: end;
	white-space: nowrap;
}
.ns-nf__vals .ns-data {
	font-size: inherit;
	line-height: inherit;
}
.ns-nf__dv {
	color: var(--wp--preset--color--ink-muted);
	min-width: 5.5em;
}
.ns-nf__group-head .ns-nf__dv {
	color: var(--wp--preset--color--ink-muted);
	font-weight: 400;
}

/* ---------- Vitamins and minerals: highlight, "also strong at" rows, link to the full list ---------- */
.ns-nf__vm {
	margin-top: 10px;
}
/* One colour for vitamins and minerals alike: blue means "share of your day" (the tile and the meters below). */
.ns-nf__hero {
	--ns-hero-bg: var(--wp--preset--color--google-blue-soft);
	--ns-hero-ink: var(--wp--preset--color--on-google-blue-soft);
	background: var(--ns-hero-bg);
	border-radius: 12px;
	color: var(--ns-hero-ink);
	padding: 16px;
}
.ns-nf__hero-title {
	color: inherit;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
}
.ns-nf__hero-big {
	align-items: flex-end;
	display: flex;
	gap: 12px;
	margin: 6px 0 0;
}
.ns-nf__hero .ns-nf__hero-num {
	color: inherit;
	flex: none;
	font-size: 3.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}
.ns-nf__hero-of {
	font-size: 1rem;
	line-height: 1.3;
	min-width: 0;
	padding-bottom: 6px;
}
.ns-nf__hero-rank {
	background: var(--wp--preset--color--surface-raised);
	border-radius: 8px;
	color: var(--ns-hero-ink);
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 12px 0 0;
	padding: 6px 10px;
}
/* Links inside the tinted blocks keep the block's color (the theme's link color would clash). */
.ns-nf__hero .ns-nf__hero-title a,
.ns-nf__hero .ns-nf__hero-of a,
.ns-nf__strong-row .ns-nf__strong-name a {
	color: inherit;
	text-decoration: none;
}
.ns-nf__hero .ns-nf__hero-title a:hover,
.ns-nf__hero .ns-nf__hero-title a:focus-visible,
.ns-nf__hero .ns-nf__hero-of a:hover,
.ns-nf__hero .ns-nf__hero-of a:focus-visible,
.ns-nf__strong-row .ns-nf__strong-name a:hover,
.ns-nf__strong-row .ns-nf__strong-name a:focus-visible {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.ns-nf__hero a:focus-visible,
.ns-nf__strong-row a:focus-visible {
	outline: 2px solid var(--wp--preset--color--focus);
	outline-offset: 2px;
}
.ns-nf__strong {
	list-style: none;
	margin: 6px 0 0; /* the same gap as between the rows */
	padding: 0;
}
/* Each row is a meter: the blue fill runs to the share of the day (--ns-fill, capped at 100%), the rest is the track.
   Text contrast is >= 4.5:1 on fill and track in both modes (TOKENS.md). */
.ns-nf__strong-row {
	align-items: baseline;
	background: linear-gradient(to right, var(--wp--preset--color--meter) var(--ns-fill, 0%), var(--wp--preset--color--meter-track) var(--ns-fill, 0%));
	border-radius: 8px;
	color: var(--wp--preset--color--ink);
	display: flex;
	gap: 8px;
	justify-content: space-between;
	margin-bottom: 6px;
	padding: 9px 12px;
}
.ns-nf__strong-name {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}
.ns-nf__strong-qty {
	color: var(--wp--preset--color--on-meter);
	font-size: 0.9rem;
	line-height: 1.3;
	text-align: end;
}
.ns-nf__strong-qty em {
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 600;
	margin-inline-start: 6px;
}
.ns-nf__vm-note {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--caption);
	line-height: var(--wp--custom--line-height--caption);
	margin: 10px 0 0;
}
/* "See all N vitamins and minerals" opens the full list in place; the label changes to "Show fewer". */
.ns-nf__more--vm {
	margin-top: 14px;
}
.ns-nf__more--vm:not([open]) .ns-nf__vm-close,
.ns-nf__more--vm[open] .ns-nf__vm-open {
	display: none;
}

.ns-nf__none {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--caption);
	line-height: var(--wp--custom--line-height--caption);
	margin: var(--wp--preset--spacing--30) 0 0;
}
.ns-nf__none strong {
	font-weight: 600;
}

/* ---------- Footnote and source ---------- */
/* "About these numbers": a quiet, closed toggle under the cards (muted, small). */
.ns-nf__about {
	margin-top: calc(var(--wp--preset--spacing--40) - var(--wp--preset--spacing--60)); /* 16 px under the last card, not the card gap */
	padding-inline: var(--wp--preset--spacing--20);
}
.ns-nf__about > .ns-nf__more-toggle {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 500;
}
.ns-nf__about > .ns-nf__more-toggle:hover {
	color: var(--wp--preset--color--ink);
}
.ns-nutrition-facts__footnote {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}
.ns-nutrition-facts__note {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--caption);
	line-height: var(--wp--custom--line-height--caption);
	margin: 0;
}
.ns-nutrition-facts__source {
	color: var(--wp--preset--color--ink-muted);
	margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.ns-nf__more-toggle .ns-icon {
		transition: transform var(--wp--custom--motion--duration--fast) var(--wp--custom--motion--easing);
	}
}

/* ---------- Personal needs (blocks/view/personal.js) ---------- */
/* A % that has no label value (EU fiber) is printed empty so personal mode can fill it: no gap while empty. */
.ns-nf__dv:empty {
	display: none;
}
/* "22% of need" is longer than "22% DV". */
.ns-nf__dv[data-ns-p] {
	min-width: 5.5em;
}
/* Personal mode shows its own highlight, rows and list; the server's label-mode variants stay in the markup. */
.ns-nf__vitamins.is-personal .ns-nf__vm:not(.ns-nf__vm--personal),
.ns-nf__vitamins.is-personal .ns-nf__more--vm .ns-nf__more-body > :not(.ns-nf__vm-list--personal) {
	display: none;
}
/* "Your needs: woman, 34, pregnant (EFSA)  Change" */
.ns-nf__needs {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--caption);
	line-height: var(--wp--custom--line-height--caption);
	margin: var(--wp--preset--spacing--10) 0 0;
}
.ns-nf__needs-text {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}
.ns-nf__needs-change {
	background: none;
	border: 0;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--link-default);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	margin: 0 0 0 var(--wp--preset--spacing--10);
	min-height: 24px;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.ns-nf__needs-change:hover {
	color: var(--wp--preset--color--link-hover);
}
.ns-nf__needs-change:focus-visible {
	outline: var(--wp--custom--border--focus) solid var(--wp--preset--color--focus);
	outline-offset: 2px;
}
