/* footer-ref-top — [n] markers top-aligned with footnote body */
body.friso-signature .friso-section-container.footer .super li {
  display: grid !important;
  grid-template-columns: 2.35em minmax(0, 1fr) !important;
  align-items: start !important;
  column-gap: 0 !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  justify-content: unset !important;
  gap: 0 !important;
}
body.friso-signature .friso-section-container.footer .super li:before,
body.friso-signature .friso-section-container.footer .super li::before {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: start !important;
  justify-self: start !important;
  position: static !important;
  left: auto !important;
  top: 0 !important;
  transform: none !important;
  translate: none !important;
  vertical-align: top !important;
  padding: 0 0.35em 0 0 !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  height: auto !important;
  flex: none !important;
  width: 2.35em !important;
  min-width: 2.35em !important;
  max-width: 2.35em !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  font-size: inherit !important;
}
body.friso-signature .friso-section-container.footer .super li .footer-ref-body {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: start !important;
  flex: none !important;
  min-width: 0 !important;
  width: auto !important;
  line-height: 1.35 !important;
}
body.friso-signature .friso-section-container.footer .super li.is-multiline,
body.friso-signature .friso-section-container.footer .super li.is-multiline:before,
body.friso-signature .friso-section-container.footer .super li.is-multiline::before,
body.friso-signature .friso-section-container.footer .super li.is-multiline .footer-ref-body {
  display: block !important;
  vertical-align: top !important;
  table-layout: unset !important;
  align-self: start !important;
}
body.friso-signature .friso-section-container.footer .super li.is-multiline {
  display: grid !important;
  align-items: start !important;
}

/* superscript-top-align — CF sizes; top: flush mark top with parent text top
   brand 1em → top:0; ref 0.5em → top:-1em (= (1-0.5)/0.5 in own-em) */
body.friso-signature .sup-brand,
body.friso-signature:not(.education) .sup-brand,
body.friso-signature.education .sup-brand,
body.friso-signature .friso-section-container.footer .super li .footer-ref-body .sup-brand,
body.friso-signature .navbar .friso-rect-button .sup-brand {
  font-size: 1em !important;
  top: 0 !important;
  line-height: 1 !important;
  overflow: visible !important;
  position: relative !important;
  display: inline !important;
  vertical-align: baseline !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-variant-position: normal !important;
  font-feature-settings: "sups" 0, "subs" 0 !important;
  font-family: "Noto Sans HK", "Noto Sans SC", "Arial", sans-serif !important;
}
body.friso-signature:not(.education) sup:not(.sup-brand),
body.friso-signature.education sup:not(.sup-brand),
body.friso-signature .friso-section-container.footer .super li .footer-ref-body sup:not(.sup-brand),
body.friso-signature .navbar .friso-rect-button sup:not(.sup-brand) {
  font-size: 0.5em !important;
  top: -1em !important;
  line-height: 1 !important;
  position: relative !important;
  display: inline !important;
  vertical-align: baseline !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-variant-position: normal !important;
  font-feature-settings: "sups" 0, "subs" 0 !important;
}

/* Windows: ® sits low vs CJK (YaHei/JhengHei metrics), esp. tin-carousel CTA.
   0.7em + top:-0.43em (= -(1-0.7)/0.7) — larger than footnote 0.5em, still
   top-flush. Mac keeps .sup-brand 1em / top:0. */
html.is-windows body.friso-signature .sup-brand,
html.is-windows body.friso-signature:not(.education) .sup-brand,
html.is-windows body.friso-signature.education .sup-brand,
html.is-windows body.friso-signature .friso-rect-button .sup-brand,
html.is-windows body.friso-signature .product-btn-container .sup-brand,
html.is-windows body.friso-signature .product-btn-container .friso-rect-button .sup-brand,
html.is-windows body.friso-signature #product .product-btn-container .friso-rect-button .sup-brand,
html.is-windows body.friso-signature .navbar .friso-rect-button .sup-brand {
  font-size: 0.7em !important;
  top: -0.43em !important;
  line-height: 1 !important;
  position: relative !important;
  display: inline !important;
  vertical-align: baseline !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-variant-position: normal !important;
  font-feature-settings: "sups" 0, "subs" 0 !important;
}

/* cf-no-additive-icons — last win; match d14j587mdy11hp.cloudfront.net */
@media screen and (max-width: 768px) {
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container {
    max-width: 220px !important;
    width: 220px !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: flex-start !important;
    gap: 0 !important;
    margin-top: 2em !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div > div:first-child {
    width: auto !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img.no-additive-icon,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img[src*="vanilla"],
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img[src*="sugar"],
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div > div:first-child img,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img {
    width: 66% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: inline-block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
  }
}
/* desktop: icons flush to 全系列不添加 L/R (overrides prior 290px/space-around) */
@media screen and (min-width: 769px) {
  body.friso-signature:not(.education) {
    --no-added-title-w: calc(672px * 256 / 652);
    /* asset 782×97 → rendered H from locked W */
    --no-added-title-h: calc(var(--no-added-title-w) * 97 / 782);
    --no-added-icon-w: 99.18px; /* 104.4 × 0.95 */
  }
  /* tin-girl +10% vs tin-girl-cf-align 44vh */
  body.friso-signature:not(.education) .baby,
  body.friso-signature:not(.education) .baby-container {
    --baby-sticky-height: 48.4vh !important; /* 44vh × 1.1 */
  }
  body.friso-signature:not(.education) .baby-container-btm .baby-container {
    height: calc(var(--baby-sticky-height) * 1.18) !important;
  }
  body.friso-signature:not(.education) .baby-container-btm .baby-container img,
  body.friso-signature:not(.education) .baby-container-btm .baby-container picture img {
    height: calc(var(--baby-sticky-height) * 1.18) !important;
    width: auto !important;
    max-width: none !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: var(--no-added-title-w) !important;
    max-width: var(--no-added-title-w) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    /* move headline + icons + labels up by 1 headline height */
    margin-top: calc(-1 * var(--no-added-title-h)) !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2em !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }
  /* column width = icon; text centered under icon (may overhang); L/R cols stay flush */
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div:first-child,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div:last-child {
    flex: 0 0 var(--no-added-icon-w) !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: var(--no-added-icon-w) !important;
    width: var(--no-added-icon-w) !important;
    max-width: var(--no-added-icon-w) !important;
    min-width: var(--no-added-icon-w) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div > div:first-child {
    width: var(--no-added-icon-w) !important;
    max-width: var(--no-added-icon-w) !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container > div > div:first-child img,
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container img.no-additive-icon {
    width: var(--no-added-icon-w) !important;
    max-width: var(--no-added-icon-w) !important;
    min-width: var(--no-added-icon-w) !important;
    height: auto !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
  }
  body.friso-signature:not(.education) .baby-slide-2 .baby-slide-txt .natural-container .txt-semibold {
    text-align: center !important;
    white-space: nowrap !important;
    width: max-content !important;
    max-width: none !important;
    margin-top: 0.55em !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* trackeasy-mobile-unwrap — nowrap was overflowing 86vw and skewing L/R gutters.
   Desktop keeps exact <br>+nowrap line breaks. */
@media screen and (max-width: 768px) {
  body.friso-signature:not(.education) #product .track-easy-container-inner-left.mobile-only .track-easy-text .txt-normal.trackeasy-p1 .nowrap,
  body.friso-signature:not(.education) #product .track-easy-container-inner-left.mobile-only .track-easy-text .txt-normal.trackeasy-p2 .nowrap,
  body.friso-signature:not(.education) #product .track-easy-container-inner-left.mobile-only .track-easy-text .txt-normal .nowrap,
  body.friso-signature:not(.education) #product .track-easy-container-inner-left.mobile-only .nowrap {
    white-space: normal !important;
  }
}



/* farm-title-screen-full-m — mobile step0 title area locked to 393×852 ref; headline up */
@media screen and (max-width: 768px) {
  body.friso-signature:not(.education) .farm-animation-pin {
    --farm-ref-w: 393px;
    --farm-ref-h: 852px;
    /* same 4/5 × top-third as before, but fixed to 852 so all phones match */
    --farm-title-band: calc(var(--farm-ref-h) / 3 * 4 / 5); /* 227.2px */
    --farm-pin-title-side: calc(var(--farm-ref-w) * 0.02); /* 2% of 393 ≈ 7.86px */
    --farm-pin-title-w: calc(100% - 2 * var(--farm-pin-title-side));
    --farm-pin-title-h: calc(50 / 368.3 * (var(--farm-ref-w) - 2 * var(--farm-pin-title-side)));
  }
  body.friso-signature:not(.education) .farm-animation-pin .farm-pin-title,
  body.friso-signature:not(.education) .farm-pin-title,
  body.friso-signature:not(.education) .patented-technology-title.farm-pin-title {
    flex: 0 0 var(--farm-title-band) !important;
    height: var(--farm-title-band) !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--farm-pin-title-side) !important;
    padding-right: var(--farm-pin-title-side) !important;
    /* more bottom pad + less top → headline sits higher (flex-end) */
    padding-bottom: calc(var(--farm-pin-title-h) * 0.75) !important;
    padding-top: 40px !important; /* was 52px */
    box-sizing: border-box !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }
  body.friso-signature:not(.education) .farm-animation-pin .farm-pin-title h2,
  body.friso-signature:not(.education) .farm-pin-title h2,
  body.friso-signature:not(.education) .farm-pin-title picture {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
  }
  body.friso-signature:not(.education) .farm-animation-pin .farm-pin-title .patented-technology-title__img,
  body.friso-signature:not(.education) .farm-pin-title .patented-technology-title__img,
  body.friso-signature:not(.education) .farm-pin-title picture .patented-technology-title__img,
  body.friso-signature:not(.education) img.patented-technology-title__img,
  body.friso-signature:not(.education) img[src*="009-patented-technology-title"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: 368.3 / 50 !important;
    display: block !important;
    margin: 0 !important;
    object-fit: contain !important;
    transform: none !important;
  }
}






/* signature-content-before-stronger — only ::before bg (user gradient) */
@media screen and (min-width: 769px) {
  body.friso-signature:not(.education) .signature-content::before {
    background: linear-gradient(
      to bottom,
      rgba(12, 5, 1, 0.0) 0%,
      rgba(12, 5, 1, 0.85) 22%,
      rgba(12, 5, 1, 0.8) 48%,
      rgba(12, 5, 1, 0.8) 80%,
      rgba(11, 5, 1, 0.12) 88%,
      transparent 100%
    ) !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}



/* fala-img-revealed-after — wrapper::after user gradient (desktop) */
@media screen and (min-width: 769px) {
  body.friso-signature:not(.education) .fala-signature-container-img-wrapper::after {
    content: "" !important;
    display: block !important;
    background: linear-gradient(to bottom, rgba(31, 12, 6, 0) 0%, rgba(31, 12, 6, 0.12) 28%, rgba(31, 12, 6, 0.4) 52%, rgba(31, 12, 6, 0.72) 74%, rgba(31, 12, 6, 0.72) 90%, rgba(31, 12, 6, 0) 100%) !important;
  }
}
