/* All American staging hotfix 2026-11-30
   1) Keep the A/A+ text-size control from covering copy.
   2) Fit the longer "LIMITED-TIME OFFER" kicker on the starburst badge. */

/* ---- A/A+ : compact, never over content ---- */
.text-size,
.text-size.is-scrolling {
  z-index: 60;
  gap: 4px !important;
  transform: none !important;
  translate: 0 0 !important;
  scale: 1 !important;
  opacity: 1 !important;
}

.text-size .ts-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  font-size: 0.8rem;
}

/* Desktop / tablet: sit in the right page gutter (section-wrap is inset 40–56px+) */
@media (min-width: 801px) {
  .text-size,
  .text-size.is-scrolling {
    top: auto !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    right: 10px !important;
    flex-direction: column !important;
  }

  /* Extra room at the end of the page so the last line can scroll clear of the control */
  .site-footer .footer-bottom {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Mobile: dock inside the sticky header, to the left of the menu button,
   so the control never covers the "Call us" card or other page copy. */
@media (max-width: 800px) {
  .text-size,
  .text-size.is-scrolling {
    top: 0 !important;
    bottom: auto !important;
    left: auto !important;
    right: 72px !important; /* 15px header pad + 48px menu + 9px gap */
    height: 75px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .text-size .ts-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    border-width: 1.5px;
    box-shadow: inset 0 1px #ffffffe6, 0 2px 8px #071c3647;
  }
}

@media (max-width: 560px) {
  .text-size,
  .text-size.is-scrolling {
    right: 72px !important;
    height: 75px;
  }
}

/* ---- Promo kicker: "LIMITED-TIME / OFFER" on the 172px burst ---- */
.aa-promos-kicker {
  font-size: 0.92rem !important;
  letter-spacing: 0.03em !important;
  line-height: 1.05 !important;
  padding: 0 8px !important;
}
@media (width <= 800px) {
  .aa-promos-kicker,
  .aa-promos-kicker.is-empty {
    font-size: 0.78rem !important;
    padding: 0 6px !important;
  }
}

/* WordPress version: hero entrance (was driven by the app's script). */
@keyframes aa-rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.aa-rise { animation: aa-rise-in .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-content > .aa-rise:nth-child(2) { animation-delay: .08s; }
.hero-content > .aa-rise:nth-child(3) { animation-delay: .16s; }
.hero-content > .aa-rise:nth-child(4) { animation-delay: .24s; }
.hero-content > .aa-rise:nth-child(5) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .aa-rise { animation: none; } }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

/* Plain text pages */
.text-page { padding-top: 72px; padding-bottom: 96px; line-height: 1.7; overflow-wrap: anywhere; }
.text-page > * { max-width: 820px; }
.text-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 28px; }
.text-page h2 { font-size: 1.7rem; line-height: 1.25; margin: 44px 0 14px; }
.text-page h3 { font-size: 1.3rem; line-height: 1.3; margin: 32px 0 10px; }
.text-page h4 { font-size: 1.05rem; margin: 24px 0 8px; }
.text-page p { margin: 0 0 14px; font-size: 1rem; }
.text-page ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.text-page li { margin: 0 0 8px; }
.text-page li p { margin: 0 0 6px; }
.text-page a { text-decoration: underline; }