/* Nutrition.fr — protein calculator ([nutrition_proteines]). Scoped to .nf-prot. */
.nf-prot {
  --g9: #173f2a;
  --g8: #1e5235;
  --ink: #1d2a22;
  --mut: #3d4b43;
  --cream: #faf6ef;
  --sage: #e2ebd8;
  --line: #c9d6c9;
  --star: #a86f00;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  padding: 40px max(24px, calc((100% - 1132px) / 2)) 56px;
}
.nf-prot *, .nf-prot *::before, .nf-prot *::after { box-sizing: border-box; }
.nf-prot p { margin: 0; }
.nf-prot .nf-prot__wrap { margin: 0; padding: 0; }
.nf-prot .nf-prot__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g8); }
.nf-prot .nf-prot__title { margin: 0 0 10px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 42px); font-weight: 600; line-height: 1.12; color: var(--g9); }
.nf-prot .nf-prot__lead { margin: 0 0 26px; max-width: 640px; font-size: 17px; line-height: 1.5; color: var(--mut); }
.nf-prot .nf-prot__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.nf-prot .nf-prot__card { position: relative; background: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 6px 20px rgba(23, 63, 42, .06); }
.nf-prot .nf-prot__label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--g9); }
.nf-prot .nf-prot__weight { display: flex; align-items: center; gap: 8px; }
.nf-prot .nf-prot__weight input { width: 120px; font-size: 20px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.nf-prot .nf-prot__range { margin-top: 10px; color: var(--mut); line-height: 1.45; }
.nf-prot .nf-prot__range strong { color: var(--g9); }
.nf-prot .nf-prot__search { width: 100%; font-size: 17px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; }
.nf-prot .nf-prot__search:focus, .nf-prot .nf-prot__weight input:focus, .nf-prot .nf-prot__grams:focus { outline: 3px solid #9cc79f; outline-offset: 1px; border-color: var(--g8); }
.nf-prot ul.nf-prot__suggest { position: absolute; left: 20px; right: 20px; z-index: 5; list-style: none; margin: 6px 0 0; padding: 6px; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid #dfe7df; border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .1); }
.nf-prot .nf-prot__option { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; cursor: pointer; }
.nf-prot .nf-prot__option[aria-selected="true"], .nf-prot .nf-prot__option:hover { background: var(--sage); }
.nf-prot .nf-prot__option small { color: var(--mut); }
.nf-prot .nf-prot__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nf-prot .nf-prot__quick button { margin: 0; border: 1px solid var(--line); background: var(--cream); color: var(--g9); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer; }
.nf-prot .nf-prot__quick button { background: #fff; }
.nf-prot .nf-prot__quick button:focus-visible, .nf-prot button:focus-visible, .nf-prot a:focus-visible, .nf-prot select:focus-visible { outline: 3px solid #9cc79f; outline-offset: 2px; }
.nf-prot .nf-prot__empty { padding: 4px 4px 16px; color: var(--mut); }
.nf-prot ul.nf-prot__lines { list-style: none; margin: 0; padding: 0; }
.nf-prot .nf-prot__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; background: #fff; border-radius: 16px; padding: 14px 18px; margin: 0 0 10px; box-shadow: 0 6px 20px rgba(23, 63, 42, .06); }
.nf-prot .nf-prot__name { font-weight: 700; color: var(--g9); }
.nf-prot .nf-prot__stars { color: var(--star); letter-spacing: 1px; font-size: 15px; white-space: nowrap; }
.nf-prot .nf-prot__stars span { color: #c9c9c9; }
.nf-prot .nf-prot__ctrl { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nf-prot .nf-prot__ctrl select { max-width: 100%; font-size: 15px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.nf-prot .nf-prot__qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.nf-prot .nf-prot__qty button { display: flex; align-items: center; justify-content: center; width: 36px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--cream); color: var(--g9); font-size: 18px; line-height: 1; cursor: pointer; }
.nf-prot .nf-prot__qty output { min-width: 32px; padding: 0 4px; text-align: center; font-weight: 700; }
.nf-prot .nf-prot__grams { width: 90px; font-size: 15px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.nf-prot .nf-prot__val { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; }
.nf-prot .nf-prot__val strong { display: block; font-size: 22px; color: var(--g9); }
.nf-prot .nf-prot__val small { color: var(--mut); }
.nf-prot .nf-prot__del { margin: 0; padding: 0; border: 0; background: none; color: #6d4a3a; font-size: 14px; text-decoration: underline; cursor: pointer; }
.nf-prot .nf-prot__total { position: sticky; top: 20px; background: var(--g9); color: #fff; border-radius: 20px; padding: 22px; }
.nf-prot .nf-prot__total-label { margin: 0; font-family: inherit; font-size: 14px; font-weight: 500; color: #fff; opacity: .9; }
.nf-prot .nf-prot__total-value { margin-top: 6px; font-size: 18px; }
.nf-prot .nf-prot__total-value strong { font-size: 44px; line-height: 1; }
.nf-prot .nf-prot__total-eq { margin: 6px 0 14px; }
.nf-prot .nf-prot__total-eq strong { font-size: 20px; }
.nf-prot .nf-prot__bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.nf-prot .nf-prot__bar span { display: block; width: 0; height: 100%; background: #9fd59c; border-radius: 99px; transition: width .25s ease; }
.nf-prot .nf-prot__bar-txt { margin: 8px 0 14px; font-size: 14px; line-height: 1.4; }
.nf-prot .nf-prot__micros { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; }
.nf-prot .nf-prot__micros summary { cursor: pointer; font-weight: 700; }
.nf-prot .nf-prot__micros dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 10px 0 0; font-size: 14px; }
.nf-prot .nf-prot__micros dt { font-weight: 400; }
.nf-prot .nf-prot__micros dd { margin: 0; text-align: right; }
.nf-prot .nf-prot__micros-note { margin-top: 8px; font-size: 12px; opacity: .85; }
.nf-prot .nf-prot__reset { margin: 14px 0 0; padding: 0; border: 0; background: none; color: #fff; font-size: 14px; text-decoration: underline; cursor: pointer; }
.nf-prot .nf-prot__note { margin-top: 14px; font-size: 12px; line-height: 1.45; opacity: .85; }
.nf-prot .nf-prot__sticky { display: none; }
@media (prefers-reduced-motion: reduce) { .nf-prot .nf-prot__bar span { transition: none; } }
@media (max-width: 900px) {
  .nf-prot { padding: 24px 16px 96px; }
  .nf-prot .nf-prot__lead { font-size: 16px; }
  .nf-prot .nf-prot__grid { grid-template-columns: minmax(0, 1fr); }
  .nf-prot .nf-prot__total { position: static; border-radius: 16px; }
  .nf-prot .nf-prot__total-value strong { font-size: 36px; }
  .nf-prot .nf-prot__line { grid-template-columns: 1fr; }
  .nf-prot .nf-prot__val { grid-column: 1; grid-row: auto; display: flex; align-items: baseline; gap: 10px; text-align: left; }
  #ast-scroll-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .nf-prot .nf-prot__sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--g9); color: #fff; font-size: 15px; box-shadow: 0 -6px 18px rgba(0, 0, 0, .15); }
  .nf-prot .nf-prot__sticky strong { font-size: 22px; }
  .nf-prot .nf-prot__sticky a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
}
