/* Targeted repairs for the legacy homepage. Keep after the exported BiND CSS. */

/* BiND leaves the previous landscape pixel width on these mobile blocks. */
@media only screen and (max-width: 641px) {
  #bk60272107,
  #bk60272138 {
    width: 100% !important;
    max-width: 100%;
  }

  /* Keep the existing banner artwork at its compact mobile size. */
  #w-middle-right {
    width: 112px !important;
    max-width: 112px !important;
  }

  #bk60231267 > .column {
    padding: 12px 14px 10px;
  }

  #bk60231267 .c-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
  }

  #bk60231267 img {
    width: 24px;
    height: 24px;
  }

  #w-bottom-right {
    width: 112px !important;
    max-width: 112px !important;
  }

  #bk60231269 > .column {
    padding: 12px 10px 10px;
  }
}

/* Compact screens, including smaller laptops, have no spare side gutter.
   Wide-desktop positioning remains unchanged when enough side space exists. */
.heart-contact-dock {
  display: none;
}
body.heart-dock-in-view #a-ghost_header {
  visibility: hidden !important;
  pointer-events: none !important;
}

@media only screen and (max-width: 1799px), (hover: none) and (pointer: coarse) {
  .heart-contact-dock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 24px 16px;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
  }

  #w-middle-right,
  #w-bottom-right {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    opacity: 1 !important;
    transition: opacity 200ms;
    z-index: auto;
    flex: 0 0 auto;
    max-width: calc(50vw - 28px) !important;
    margin: 0;
  }

  #bk60231267 .c-body {
    color: #222;
  }

  #w-middle-right.heart-widget-closing,
  #w-bottom-right.heart-widget-closing {
    opacity: 0 !important;
  }

  #bk60231267 a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }

  .heart-contact-dock .c-widget-close_btn {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
  }

  .heart-contact-dock a:focus-visible,
  .heart-contact-dock .c-widget-close_btn:focus-visible {
    outline: 2px solid #23256f;
    outline-offset: -2px;
  }
}

/* The legacy global reset removes outlines. Keep keyboard focus visible even
   when the original fixed desktop banners are outside the compact dock. */
#w-middle-right a:focus-visible,
#w-bottom-right a:focus-visible,
#w-middle-right .c-widget-close_btn:focus-visible,
#w-bottom-right .c-widget-close_btn:focus-visible {
  outline: 2px solid #23256f;
  outline-offset: -2px;
  box-shadow: 0 0 0 2px #fff;
}

/* Preserve the exported 20vw tablet banner dimensions; only their placement
   changes. Flex layout must not expand the 480px source artwork intrinsically. */
@media (min-width: 642px) and (max-width: 1799px), (min-width: 642px) and (hover: none) and (pointer: coarse) {
  #w-middle-right,
  #w-bottom-right {
    width: 20vw !important;
    max-width: 20vw !important;
  }
}

/* The strength panel contains two linked images below its introductory text. */
@media only screen and (min-width: 642px) and (max-width: 1279px) {
  #bk60243684 {
    min-height: var(--homepage-strength-height, 0px);
  }

  #bk60243710 {
    height: auto !important;
    overflow: visible;
  }

  #bk60243710 > .g-column {
    height: auto !important;
  }
}

@media only screen and (max-width: 340px) {
  #bk60231274 .c-title {
    font-size: 28px;
  }

  #bk60231274 .lead {
    font-size: 16px;
    letter-spacing: 0;
  }
}

@media only screen and (min-width: 642px) and (max-width: 768px) {
  #bk60231334 > .g-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px 48px;
    align-items: center;
    gap: 8px;
  }

  #bk60231334 .column.-column1 {
    width: 150px !important;
    grid-column: 1;
    grid-row: 1;
  }

  #bk60231334 .column.-column2 {
    width: 48px !important;
    margin: 0;
    grid-column: 3;
    grid-row: 1;
  }

  #bk60231334 .column.-column3 {
    width: 200px !important;
    margin: 0;
    grid-column: 2;
    grid-row: 1;
  }
}

@media only screen and (min-width: 769px) and (max-width: 1023px) {
  #bk60231334 > .g-column {
    display: grid;
    grid-template-columns: 1fr 200px;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    padding-right: 15px;
  }

  #bk60231334 .column.-column1 {
    width: 150px !important;
    grid-column: 1;
    grid-row: 1;
  }

  #bk60231334 .column.-column2 {
    width: 100% !important;
    margin: 0;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #bk60231334 .column.-column3 {
    width: 200px !important;
    margin: 0;
    grid-column: 2;
    grid-row: 1;
  }

  #bk60231334 .c-menu {
    white-space: nowrap;
  }

  #bk60247002 .m-motion > li > a {
    padding-left: 6px;
    padding-right: 6px;
  }

  #bk60247002 .m-motion > li {
    text-indent: 0;
  }

  #bk60247002 .m-motion {
    white-space: nowrap;
  }
}

@media only screen and (min-width: 642px) and (max-width: 1023px) {
  /* Preserve the photo/text overlay while reserving room for the full message. */
  #bk60231366 {
    min-height: var(--homepage-greeting-height, 0px);
  }

  #bk60234105 {
    height: auto !important;
    overflow: visible;
  }

  #bk60234105 > .g-column {
    height: auto !important;
  }

  #bk60234105 .column.-column2 {
    padding-right: 15px;
  }

  /* The four empty spacer lines pushed the white caption below its photos. */
  #bk60270385 > .column {
    display: flex;
    align-items: center;
    height: calc((100vw - 60px) * 0.1875);
    margin-top: 20px;
    padding: 0 40px;
  }

  #bk60270385 > .column > .c-none {
    display: none;
  }

  #bk60270385 p.c-body {
    line-height: 1.6;
    text-shadow: 0 1px 3px #000, 0 0 2px #000;
  }
}
