/* Shared website footer contract for Home, Client Portal, and Office Portal. */
@media (min-width: 761px) {
  html body[data-page]:not(.is-mobile-app-shell) > footer {
    --site-footer-gold: #c8a45f;
    --site-footer-gold-soft: #e8d9b8;
    --site-footer-teal: #0b806f;
    position: relative !important;
    isolation: isolate !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 48px !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 112px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 30px max(48px, calc((100vw - 1480px) / 2)) !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(105deg, #061f2d 0%, #092f41 58%, #0a474c 100%) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 -10px 28px rgba(8, 46, 65, 0.08) !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.9rem !important;
    text-align: left !important;
  }

  html body[data-page]:not(.is-mobile-app-shell) > footer::before {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    height: 3px !important;
    background: linear-gradient(
      90deg,
      var(--site-footer-gold) 0 16%,
      var(--site-footer-teal) 16% 84%,
      var(--site-footer-gold) 84% 100%
    ) !important;
    pointer-events: none !important;
  }

  html body[data-page]:not(.is-mobile-app-shell) > footer::after {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    top: -74px !important;
    right: 18% !important;
    width: 170px !important;
    height: 170px !important;
    border: 1px solid rgba(232, 217, 184, 0.1) !important;
    border-radius: 0 !important;
    background: transparent !important;
    transform: rotate(18deg) !important;
    pointer-events: none !important;
  }

  html body[data-page]:not(.is-mobile-app-shell) > footer > p {
    position: relative !important;
    z-index: 1 !important;
    width: auto !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
    text-align: inherit !important;
  }

  html body[data-page]:not(.is-mobile-app-shell) > footer > p:first-child {
    padding-left: 18px !important;
    color: rgba(255, 255, 255, 0.82) !important;
  }

  html body[data-page]:not(.is-mobile-app-shell) > footer > p:first-child::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: 3px !important;
    height: 30px !important;
    background: linear-gradient(180deg, var(--site-footer-gold), var(--site-footer-teal)) !important;
    transform: translateY(-50%) !important;
  }

  html body[data-page]:not(.is-mobile-app-shell) > footer > p:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 20px !important;
    font-size: 0 !important;
    text-align: right !important;
  }

  html body[data-page]:not(.is-mobile-app-shell) > footer a,
  html body[data-page]:not(.is-mobile-app-shell) > footer a:visited {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 36px !important;
    padding: 0 2px !important;
    border-bottom: 1px solid transparent !important;
    color: var(--site-footer-gold-soft) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: color 160ms ease, border-color 160ms ease !important;
  }

  html body[data-page]:not(.is-mobile-app-shell) > footer a:is(:hover, :focus-visible) {
    border-bottom-color: var(--site-footer-gold) !important;
    color: #ffffff !important;
    outline: none !important;
  }

}

html body[data-page]:not(.is-mobile-app-shell) > footer a:focus-visible {
  outline: 2px solid #f4d58d !important;
  outline-offset: 3px !important;
}

@media (max-width: 820px), (hover: none) and (pointer: coarse), (display-mode: standalone) {
  html:not(.is-tablet-desktop) body[data-page]:not(.is-mobile-app-shell) > footer {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 56px 0 0 !important;
    padding: 24px 20px !important;
    border: 0 !important;
    border-top: 1px solid rgba(185, 145, 84, 0.36) !important;
    border-radius: 0 !important;
    background: linear-gradient(135deg, #10283a 0%, #0d2637 54%, #075452 100%) !important;
    box-shadow: 0 -16px 34px rgba(16, 40, 58, 0.1) !important;
    color: rgba(255, 255, 255, 0.86) !important;
    text-align: center !important;
  }

  html:not(.is-tablet-desktop) body[data-page]:not(.is-mobile-app-shell) > footer > p {
    width: 100% !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

  html:not(.is-tablet-desktop) body[data-page]:not(.is-mobile-app-shell) > footer a,
  html:not(.is-tablet-desktop) body[data-page]:not(.is-mobile-app-shell) > footer a:visited {
    color: #f4d58d !important;
    font-weight: 850 !important;
    text-decoration: none !important;
  }

  html:not(.is-tablet-desktop) body[data-page]:not(.is-mobile-app-shell) > footer a:is(:hover, :focus-visible) {
    color: #ffffff !important;
  }
}

/* Portal sign-in uses the same quiet desktop footer as Install App and Policies. */
@media (min-width: 761px) {
  html body[data-page="portal"]:not(.is-mobile-app-shell):not(.portal-authenticated) > footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: min(calc(100% - 48px), 1440px) !important;
    max-width: 1440px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 20px 0 28px !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #5f6f7d !important;
    font-size: 0.78rem !important;
    text-align: left !important;
  }

  html body[data-page="portal"]:not(.is-mobile-app-shell):not(.portal-authenticated) > footer::before,
  html body[data-page="portal"]:not(.is-mobile-app-shell):not(.portal-authenticated) > footer::after,
  html body[data-page="portal"]:not(.is-mobile-app-shell):not(.portal-authenticated) > footer > p:first-child::before {
    content: none !important;
    display: none !important;
  }

  html body[data-page="portal"]:not(.is-mobile-app-shell):not(.portal-authenticated) > footer > p,
  html body[data-page="portal"]:not(.is-mobile-app-shell):not(.portal-authenticated) > footer > p:first-child,
  html body[data-page="portal"]:not(.is-mobile-app-shell):not(.portal-authenticated) > footer > p:last-child {
    position: static !important;
    z-index: auto !important;
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #5f6f7d !important;
    -webkit-text-fill-color: #5f6f7d !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: inherit !important;
  }

  html body[data-page="portal"]:not(.is-mobile-app-shell):not(.portal-authenticated) > footer > p:first-child {
    font-weight: 760 !important;
  }

  html body[data-page="portal"]:not(.is-mobile-app-shell):not(.portal-authenticated) > footer a,
  html body[data-page="portal"]:not(.is-mobile-app-shell):not(.portal-authenticated) > footer a:visited {
    position: static !important;
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #5f6f7d !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    text-transform: none !important;
  }

  html body[data-page="portal"]:not(.is-mobile-app-shell):not(.portal-authenticated) > footer a:is(:hover, :focus-visible) {
    color: #0a6b68 !important;
    text-decoration: underline !important;
    text-decoration-color: #c8a45f !important;
    text-underline-offset: 3px !important;
  }
}
