/**
 * Forever Pages — readability floors (enlarge-only).
 *
 * Rules of this file:
 * 1. NEVER set a fixed font-size on a selector whose production/cascade size
 *    can exceed 14px (e.g. .section-label inside .showcase-text > p,
 *    .about-cta-eyebrow under .about-cta p, .price-features li at 1rem, etc.).
 * 2. Prefer bumping page CSS for known-small chrome; this file only floors
 *    selectors that are always <14px in production.
 * 3. Soft-text color overrides must NOT paint dark cards.
 */

html.fp-theme-light {
  --label-ink: #6B5A32;
}
html.fp-theme-dark {
  --text-soft: #C4BDB3;
  --label-ink: #E2C792;
}

html {
  --fp-label: 0.875rem; /* 14px floor */
  --fp-ls: 0.1em;
  --fp-urgency-h: 0px;
  --fp-memorial-h: 0px;
  --fp-banner-stack: 0px;
}

/* Soft-text contrast on LIGHT surfaces only — never on dark cards */
html.fp-theme-light .hero-sub,
html.fp-theme-light .intro-sub,
html.fp-theme-light .section-desc,
html.fp-theme-light .showcase-text > p,
html.fp-theme-light .faq-answer-inner,
html.fp-theme-light .occ-card p,
html.fp-theme-light .guarantee-desc {
  color: #5A544C;
}

/* Dark Signature / featured pricing card — ≥4.5:1 on charcoal */
html.fp-theme-light .price-card.featured .price-features li,
html.fp-theme-light .price-card.featured .price-note,
html.fp-theme-light .price-card.featured .price-tier,
html.fp-theme-light .price-card.featured .addon-desc,
.price-card.featured .price-features li {
  color: rgba(250, 246, 240, 0.82) !important;
}

/* --------------------------------------------------------------------------
   Floors — ONLY selectors that are always <14px on production.
   DO NOT add: .section-label, .price-features li, .addon-desc,
   .about-cta-eyebrow, .success-step-text p, .fday-cta-eyebrow/.promo,
   .inside-row-text, .mday-cta-promo, headings, hero copy, .mc-text, etc.
   -------------------------------------------------------------------------- */
nav a,
.nav-link,
.nav-badge,
.hero-eyebrow,
.cq-eyebrow,
.guarantee-eyebrow,
.stat-label,
.stats-location,
.testimonial-strip-label,
.showcase-delivered-label,
.pg-gallery-hint,
.marquee-item,
.welcome-tag,
.trust-item,
.pricing-trust-bar .trust-item,
.mem-trust-item,
.cta-guarantee p,
.success-guarantee,
.urgency-text,
.urgency-link,
.urgency-days,
.tstrip-author-role,
.tstrip-author,
.mem-tstrip-author,
.mem-tstrip-author-role,
.pg-card-badge,
.pg-card-cta,
.footer-links a,
.footer-right,
.footer-disclaimer,
.footer-note,
.footer-right small,
footer small,
.countdown-label,
.hero-rush,
.price-tier,
.price-note,
.addon-inline-desc,
.eyebrow,
.fday-eyebrow,
.mday-eyebrow,
.guarantee-seal-text,
.guarantee-seal-mini,
.delivered-mini-badge,
.addon-tier-badge,
.step-time,
.price-badge,
.price-badge-premium,
.music-time,
.countdown-unit,
.proof-text,
.test-author,
.compare-table thead th,
.compare-table tbody td:first-child,
.mg-card-eyebrow,
.mg-card-cta,
.mg-gallery-hint,
.mc-eyebrow,
.mc-author,
.included-desc,
.deadline,
.number-label,
.founder-eyebrow,
.founder-caption,
.founder-role,
.founder-meta,
.founder-signature small,
.about-cta-link,
.about-hero-eyebrow,
.model-eyebrow,
.pf-field label,
.partner-form label,
.ty-guarantee,
.ty-cta-hint,
.ty-footer-copy,
.ty-step-num,
.ty-footer-brand,
.fday-test-author,
.mday-test-author,
.chat-fab-text,
.price-sample-link,
.price-addons-link,
.price-addons-link a,
.booking-note,
.express-badge,
.memorial-banner-text,
.memorial-banner-link,
.chat-header-status,
.chat-offline-note,
.chat-msg-time,
.chat-welcome p,
.chat-header-avatar,
.chat-name-prompt label,
.chat-name-prompt label span,
.pricing-urgency,
#pricingUrgency,
.footer-disclaimer a,
.cq-author,
.values-label,
.proof-label,
.why-eyebrow,
.imagine-eyebrow,
.scroll-hint,
.hero-scroll span,
.inquiry-footer,
.inquiry-eyebrow,
.qr-price span,
.proof-cta,
.footer-main-cta,
.footer-meta,
.footer-meta a,
.addon-modal-pkg-label,
.addon-modal-body-label,
.addon-modal-skip,
.exit-modal-eyebrow,
.exit-modal-code-label,
.exit-modal-skip,
.price-compare,
.preview-label,
.activity-toast-time,
.pkg-card.featured::before,
.proof-list li,
.model-list li,
.sample-url,
.sample-url span,
.sample-url-gold,
.sample-url-badge,
footer a[href*="first-christmas"],
.footer-celebration,
.footer-celebration a,
.back-link,
.last-updated,
.pricing-welcome-banner,
.hero-price,
.hero-price strong,
.hero-trust,
.cookie-banner p,
.qr-uses li,
.inside-row-icon,
.addon-price sup,
.addon-inline-price sup,
.partners .founder-name,
.proof-phone-eyebrow,
.proof-phone-dates,
.proof-phone-body,
.proof-phone-name,
/* Intake form chrome */
.field label,
.section-num,
.section-sub,
.occasion-label,
.mood-pill,
.package-card .pkg-price,
.package-card .pkg-features li,
.check-label,
.radio-label,
.check-label small,
.radio-label small,
.addon-btn,
.submit-btn,
.submit-sub,
.order-title,
.order-detail,
.form-divider span,
.confirmed-badge,
.confirmed-includes-title,
.confirmed-includes li,
.photo-info-box p,
.page-footer,
.gold-divider span,
.logo-tagline,
.urgency-banner-close,
.memorial-banner-close,
.mem-trust-icon,
.sample-loading-text {
  font-size: var(--fp-label) !important;
  letter-spacing: var(--fp-ls);
}

/* Buttons — 15px floor */
.mag-btn,
.price-btn,
.mday-btn,
.fday-btn,
.btn,
.btn-gold,
.btn-outline,
.btn-primary,
.btn-secondary,
.addon-modal-checkout,
.cookie-accept,
.mobile-nav-cta,
.showcase-demo-link,
.occ-modal-cta,
.success-cta,
#schedulerLoadBtn,
.partner-form-submit,
.about-cta-btn,
.ty-cta,
.nav-cta-btn {
  font-size: 0.9375rem !important;
  letter-spacing: 0.12em !important;
}

/* Phone mock — legible ≥14px */
.ps-badge,
.ps-body,
.ps-music,
.mps-eyebrow,
.mps-dates,
.mps-body,
.mps-music,
.mps-quote,
.ps-quote,
.hero-phone .ps-badge,
.hero-phone .ps-quote,
.phone-screen .ps-badge,
.phone-screen .ps-quote,
.phone-screen .ps-body,
.phone-screen .ps-music,
.proof-phone-eyebrow,
.proof-phone-dates,
.proof-phone-body {
  font-size: var(--fp-label) !important;
}

/* Music now-playing: one line; keep bar ~production height */
.music-info {
  font-size: var(--fp-label) !important;
  letter-spacing: 0.12em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: min(52vw, 22rem) !important;
  flex: 0 1 auto !important;
  line-height: 1.2 !important;
  display: inline-block !important; /* override pages that hide it on mobile */
}
.music-bar {
  flex-wrap: nowrap !important;
  align-items: center !important;
  min-height: 53px !important;
  max-height: 53px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
}
@media (max-width: 600px) {
  /* Drop prefix + artist; show full song title on one line at ≥14px */
  .music-info-prefix,
  .music-info-artist,
  .music-bars-vis {
    display: none !important;
  }
  .music-info {
    max-width: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    letter-spacing: 0.02em !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .music-time {
    flex-shrink: 0 !important;
    font-variant-numeric: tabular-nums;
  }
}

/* Logo — never wrap; never shrink below production 1.1rem (17.6px) */
.nav-logo {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 1.1rem !important; /* match production; no ≤400px shrink */
}
.nav-link-short {
  display: none;
}
@media (max-width: 400px) {
  .nav-logo {
    letter-spacing: 0.12em !important; /* tighten spacing only; keep 1.1rem */
  }
  /* Partners header: keep logo one line with ≥8px gap before right links */
  .nav-link-full {
    display: none !important;
  }
  .nav-link-short {
    display: inline !important;
  }
  .nav-right {
    gap: 0.5rem !important;
  }
  .nav-left {
    gap: 0.4rem !important;
  }
  .nav-badge {
    display: none !important; /* frees room so logo stays ≥17.6px on one line */
  }
  header {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  .nav-cta {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    letter-spacing: 0.1em !important;
  }
  .nav-link {
    letter-spacing: 0.08em !important;
  }
}

/* Footer chrome */
html.fp-theme-light .footer-links a,
html.fp-theme-dark .footer-links a {
  color: rgba(255, 255, 255, 0.58) !important;
}
.footer-right,
.footer-disclaimer,
.ty-footer-copy {
  color: rgba(255, 255, 255, 0.5) !important;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.footer-links {
  flex-wrap: wrap !important;
  max-width: 100%;
}

/* All widths: clear chat fab (bottom≈24px, h≈56) from footer text/links */
footer,
.ty-footer {
  padding-bottom: calc(24px + 56px + 1.5rem + env(safe-area-inset-bottom, 0px)) !important;
}
/* Desktop/tablet: keep right-side copyright/links clear of round chat fab */
@media (min-width: 769px) {
  body:has(.chat-fab) footer,
  body:has(.chat-fab) .ty-footer {
    padding-right: calc(24px + 56px + 1.25rem) !important;
  }
  /* Wide memorials-style pill fab + left scroll-top — clear both sides */
  body:has(.chat-fab .chat-fab-text) footer,
  body:has(.chat-fab .chat-fab-text) .ty-footer {
    /* scroll-top sits at bottom:5.5rem (88px), h≈48 */
    padding-bottom: calc(5.5rem + 48px + 1.75rem + env(safe-area-inset-bottom, 0px)) !important;
    padding-right: max(7rem, min(26rem, 42vw)) !important;
    padding-left: calc(1.25rem + 48px + 1.25rem) !important;
  }
}
body:has(#cookieBanner.visible) footer,
body:has(#cookieBanner.visible) .ty-footer {
  padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px)) !important;
}
/* Mobile: clear scroll-top (bottom≈9.25rem, h≈48) + chat/music so last footer lines stay visible */
@media (max-width: 768px) {
  footer,
  .ty-footer {
    /* 9.25rem button offset + 48px button + 1.5rem gap */
    padding-bottom: calc(9.25rem + 48px + 1.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* Mobile clears via bottom padding; don't keep desktop right inset */
  body:has(.chat-fab) footer,
  body:has(.chat-fab) .ty-footer {
    padding-right: 0 !important;
  }
  body:has(#cookieBanner.visible) footer,
  body:has(#cookieBanner.visible) .ty-footer {
    padding-bottom: calc(13rem + 48px + 1.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Urgency banners */
.urgency-banner {
  flex-wrap: nowrap !important;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}
.urgency-text,
.urgency-link {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .urgency-banner {
    flex-wrap: wrap !important;
    white-space: normal;
    justify-content: center;
  }
  .urgency-text {
    white-space: normal !important;
    text-align: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
  }
}

body.has-urgency header,
body.has-urgency header.solid {
  top: var(--fp-urgency-h, 38px) !important;
}
body.has-urgency .memorial-banner {
  top: var(--fp-urgency-h, 38px) !important;
}
body.has-urgency.has-banner header,
body.has-urgency.has-banner header.solid {
  top: calc(var(--fp-urgency-h, 38px) + var(--fp-memorial-h, 32px)) !important;
}
body.has-banner:not(.has-urgency) header,
body.has-banner:not(.has-urgency) header.solid {
  top: var(--fp-memorial-h, 32px) !important;
}
body.has-urgency .mday-hero,
body.has-urgency .fday-hero {
  padding-top: calc(6rem + var(--fp-urgency-h, 38px)) !important;
}
body.has-urgency .hero {
  padding-top: calc(5.5rem + var(--fp-urgency-h, 38px)) !important;
}
body.has-urgency.has-banner .hero {
  padding-top: calc(5.5rem + var(--fp-urgency-h, 38px) + var(--fp-memorial-h, 32px)) !important;
}

/* Chat fab: round buttons stay 50×50; memorials pill may flex */
.chat-fab:not(:has(.chat-fab-text)) {
  width: 56px !important;
  height: 56px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}
@media (max-width: 600px) {
  .chat-fab:not(:has(.chat-fab-text)) {
    width: 50px !important;
    height: 50px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  .chat-fab:has(.chat-fab-text) {
    width: auto !important;
    height: auto !important;
    min-height: 44px !important;
    max-width: calc(100vw - 28px) !important;
    white-space: nowrap !important;
  }
  .chat-fab:has(.chat-fab-text) .chat-fab-text {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12rem;
    font-size: var(--fp-label) !important;
  }
}

/* Scroll-to-top above chat + music */
.scroll-top {
  bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px)) !important;
  right: 2rem !important;
  z-index: 9998 !important;
}
@media (max-width: 600px) {
  .scroll-top {
    bottom: calc(9.25rem + env(safe-area-inset-bottom, 0px)) !important;
    right: 1rem !important;
  }
}
body:has(.chat-fab .chat-fab-text) .scroll-top {
  right: auto !important;
  left: 1.25rem !important;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
}
body:has(#cookieBanner.visible) .scroll-top {
  bottom: calc(13rem + env(safe-area-inset-bottom, 0px)) !important;
}
body:has(#cookieBanner.visible):has(.chat-fab .chat-fab-text) .scroll-top {
  bottom: calc(9rem + env(safe-area-inset-bottom, 0px)) !important;
}
