/* Shared copy measure for static heroes. This early layer overrides legacy
   important declarations without changing image, carousel or navigation code. */
.interior-hero-toggle {
  --button-utility-bg: var(--lifa-brand-navy, #0F1E36);
  --button-utility-bg-hover: var(--lifa-brand-navy, #0F1E36);
  --button-utility-fg: var(--lifa-brand-gold, #EED47D);
  --button-border: var(--lifa-brand-gold, #EED47D);
  --button-focus-outline: var(--lifa-brand-gold, #EED47D);
  --button-focus-ring: var(--lifa-brand-navy, #0F1E36);
  --button-shadow-utility: none;
  --motion-button-hover-y: 0px;
  position: absolute;
  z-index: 4;
  inset-inline-end: clamp(16px, 3vw, 40px);
  inset-block-end: 16px;
  min-width: 152px;
  min-height: 44px;
  gap: 8px;
}
.interior-hero-toggle svg { flex: 0 0 16px; }
.interior-hero-toggle [data-hero-play-icon],
.interior-hero-toggle[data-paused="true"] [data-hero-pause-icon] { display: none; }
.interior-hero-toggle[data-paused="true"] [data-hero-play-icon] { display: block; }
@media (max-width: 767px) {
  .interior-hero-toggle { inset-block-start: 16px; inset-block-end: auto; }
}
@media print { .interior-hero-toggle { display: none !important; } }

@layer hero-copy {
  .ai-desk-welcome .hero-welcome-accent {
    display: table !important;
    margin: 0 auto 14px !important;
    padding: 10px 16px 14px !important;
    border-radius: 6px !important;
    background: #0b1b2b !important;
    color: var(--lifa-official-gold, #eed47d) !important;
    font-family: var(--signature-writing-font, 'Reey'), cursive !important;
    font-size: .9375rem !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    text-wrap: balance !important;
    -webkit-text-fill-color: var(--lifa-official-gold, #eed47d) !important;
  }
  .ai-desk-welcome .hero-welcome-copy {
    max-width: 48ch;
    margin: 0 auto 18px;
    color: var(--desk-copy, #334155);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    text-wrap: pretty;
  }
  [data-hero-copy] h1,
  [data-hero-copy] h1 .hero-copy-title {
    font-family: var(--font-display, 'Prata'), Georgia, serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    letter-spacing: -.025em !important;
    line-height: 1.18 !important;
    text-wrap: balance !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  [data-hero-copy] h1 {
    max-width: 22ch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(2rem, 3.5vw, 4rem) !important;
  }
  [data-hero-copy] h1 .hero-copy-title {
    display: inline !important;
    font-size: 1em !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }
  [data-hero-copy] h1 > [data-hero-signature] {
    display: block !important;
    position: static !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: .28em 0 .12em !important;
    padding: .12em .12em .2em 0 !important;
    font-family: var(--signature-writing-font, 'Reey'), cursive !important;
    font-size: .68em !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    color: var(--lifa-official-gold, #eed47d) !important;
    -webkit-text-fill-color: var(--lifa-official-gold, #eed47d) !important;
    white-space: normal !important;
    text-wrap: balance !important;
    transform: none !important;
  }
  [data-hero-copy].trade-desk-intro h1 > [data-hero-signature] {
    font-size: .55em !important;
  }
  [data-hero-copy]:is(.trade-desk-intro, .thanks-intro, .rv-page) h1 > [data-hero-signature] {
    padding: .4em .8em .6em !important;
    border-radius: 6px !important;
    background: #0b1b2b !important;
  }
  [data-hero-copy].thanks-intro h1 > [data-hero-signature] {
    margin-inline: auto !important;
  }
  [data-hero-copy] .hero-content {
    width: min(100%, 760px) !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  [data-hero-copy] .hero-content > p.direct-answer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 57ch !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(1rem, 1.12vw, 1.125rem) !important;
    line-height: 1.65 !important;
    text-wrap: pretty !important;
  }
  [data-hero-copy] :is(.eyebrow, .hpv2-hero-kicker) {
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    font-size: .75rem !important;
    letter-spacing: .09em !important;
  }
  [data-hero-copy] .hero-actions {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
  }
  [data-hero-copy] .hero-actions > .btn {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 13px 20px !important;
    font-size: .8125rem !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }
  .home-hero[data-hero-copy] .hero-brand-promise {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px 0 0 !important;
    border: 0 !important;
    font-family: var(--signature-writing-font, 'Reey'), cursive !important;
    font-size: clamp(1.125rem, 1.65vw, 1.5rem) !important;
    line-height: 1.6 !important;
    color: var(--lifa-official-gold, #eed47d) !important;
  }
  .home-hero[data-hero-copy] .hero-office-card {
    order: -1 !important;
    margin: 0 !important;
  }
  .home-hero[data-hero-copy] .hero-credentials { order: 6 !important; }
  [data-hero-copy].article-header {
    min-height: 0 !important;
    padding-block: clamp(36px, 5vw, 72px) !important;
  }
  [data-hero-copy].trade-desk-intro h1 {
    font-size: clamp(1.75rem, 2.8vw, 2.75rem) !important;
  }
  [data-hero-copy].thanks-intro h1 {
    margin: 0 auto 22px !important;
    font-size: clamp(1.875rem, 3.5vw, 2.75rem) !important;
  }
  [data-hero-copy].rv-page h1 {
    margin-bottom: 20px !important;
  }
  @media (min-width: 768px) {
    [data-hero-copy].hero {
      min-height: clamp(540px, 72svh, 760px) !important;
      height: auto !important;
      max-height: none !important;
      padding-block: clamp(40px, 5vh, 64px) !important;
    }
    [data-hero-copy].hero .hero-content-wrapper {
      position: relative !important;
      inset: auto !important;
      height: auto !important;
      min-height: 0 !important;
      padding: 0 clamp(28px, 4vw, 80px) !important;
      transform: none !important;
    }
  }
  @media (max-width: 767px) {
    .home-hero[data-hero-copy]::before {
      background: linear-gradient(90deg, rgba(3, 10, 19, .8), rgba(3, 10, 19, .62) 72%, rgba(3, 10, 19, .35)) !important;
      pointer-events: none !important;
    }
    .home-hero[data-hero-copy] .hero-office-card {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }
    .home-hero[data-hero-copy] :is(.hero-office-location, .hero-office-live) { padding: 12px !important; }
    .home-hero[data-hero-copy] .hero-office-live {
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 6px !important;
    }
    .home-hero[data-hero-copy] .hero-office-state { display: flex !important; gap: 6px !important; }
    .home-hero[data-hero-copy] .hero-office-state > span:last-child { word-break: normal !important; overflow-wrap: normal !important; }
    .home-hero[data-hero-copy] .hero-status-time { font-size: 1.5rem !important; line-height: 1.2 !important; }
    .home-hero[data-hero-copy] .hero-office-day { font-size: .625rem !important; line-height: 1.5 !important; }
    .home-hero[data-hero-copy] .hero-office-hours { grid-column: 1 / -1 !important; padding: 8px 12px !important; }
    [data-hero-copy] h1 {
      max-width: 24ch !important;
      font-size: clamp(1.65rem, 6.6vw, 2.5rem) !important;
      line-height: 1.24 !important;
    }
    [data-hero-copy] h1 .hero-copy-title { line-height: inherit !important; }
    [data-hero-copy] .hero-content { gap: 17px !important; }
    [data-hero-copy] .hero-content > p.direct-answer { font-size: 1rem !important; line-height: 1.6 !important; }
    [data-hero-copy] .hero-actions > .btn { flex: 1 1 220px !important; }
  }
}
