/* Keep the copy slots in the initial layout while their public files load.
   The line counts match the current storefront copy and its existing type styles.
   Minimum sizes let longer copy expand without clipping. */
.brand-wordmark:empty::before {
  content: "\00a0";
}

.home-brand-title,
.home-value-primary,
.home-value-secondary,
.home-social-tagline-bottom,
.product-subtitle,
.product-passport-pill span,
.product-value-lead,
.product-value-sub,
.fomo-trust-copy span,
.footer-copyright p {
  min-block-size: 1lh;
}

.home-trust-text {
  min-block-size: calc(var(--home-trust-lines, 3) * 1lh);
}

.home-social-tagline-top {
  min-block-size: calc(var(--home-tagline-lines, 2) * 1lh);
}

.home-social-description {
  min-block-size: calc(var(--home-invitation-lines, 3) * 1lh);
}

html:not([data-content-overrides~="description"]) .product-description {
  /* Four paragraphs, with three existing 1rem gaps. */
  min-block-size: calc(var(--description-lines, 18) * 1lh + 3rem);
}

html[data-page="fomo"]:not([data-fomo-content-ready]) .fomo-sold-avatar-wrap {
  visibility: hidden;
}

.storefront-content-error {
  margin-block: 1rem;
}

.fomo-sold-title {
  min-block-size: calc(var(--fomo-title-lines, 2) * 1lh);
}

.fomo-mobile-story-desc {
  min-block-size: calc(var(--fomo-story-lines, 6) * 1lh);
}

.fomo-sold-desc {
  min-block-size: 3lh;
}

.footer-trust-disclaimer {
  min-block-size: calc(var(--footer-lines, 6) * 1lh);
}

html:not([data-trust-ready]) :is(.home-trust-strip, .product-trust-strip, .fomo-trust-strip, .home-value-props, .product-value-props),
.product-edition-badge:empty,
.product-passport-pill:has(span:empty) {
  visibility: hidden;
}

@media (min-width: 333px) { :root { --fomo-story-lines: 5; } }
@media (min-width: 339px) { :root { --home-tagline-lines: 1; } }
@media (min-width: 342px) { :root { --description-lines: 17; } }
@media (min-width: 345px) { :root { --description-lines: 16; } }
@media (min-width: 359px) { :root { --footer-lines: 5; } }
@media (min-width: 375px) { :root { --description-lines: 15; } }
@media (min-width: 378px) { :root { --fomo-story-lines: 4; } }
@media (min-width: 383px) { :root { --home-invitation-lines: 2; } }
@media (min-width: 393px) { :root { --home-trust-lines: 2; } }
@media (min-width: 402px) { :root { --description-lines: 14; } }
@media (min-width: 408px) { :root { --fomo-title-lines: 1; } }
@media (min-width: 424px) { :root { --description-lines: 13; --footer-lines: 4; } }
@media (min-width: 443px) { :root { --description-lines: 12; } }
@media (min-width: 531px) { :root { --description-lines: 11; } }
@media (min-width: 547px) { :root { --description-lines: 10; } }
@media (min-width: 714px) { :root { --description-lines: 9; } }
@media (min-width: 760px) { :root { --description-lines: 8; } }

@media (min-width: 768px) {
  :root { --description-lines: 15; --fomo-title-lines: 2; --footer-lines: 3; }
}

@media (min-width: 771px) { :root { --description-lines: 14; } }
@media (min-width: 799px) { :root { --fomo-title-lines: 1; } }
@media (min-width: 815px) { :root { --description-lines: 13; } }
@media (min-width: 853px) { :root { --description-lines: 12; } }
@media (min-width: 1030px) { :root { --description-lines: 11; } }
