/* Google Preferred Sources control on editorial article pages. */

.hg-preferred-source {
  display: flex;
  width: min(100% - 32px, 680px);
  min-height: 48px;
  margin: 24px auto 10px;
  padding: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Primary article placement: immediately after the hero/byline, before alerts,
   disclosures, navigation controls, and the article body. */
.hg-preferred-source--primary {
  margin-top: 14px;
  margin-bottom: 14px;
}

/* Google's loader expands its iframe host to 100% but draws the standard
   control from the left edge. Constrain and center the host while leaving
   enough inline room for Google's localized English label to stay on one line. */
.hg-preferred-source > [google-add-preferred-source-btn] {
  flex: 0 1 270px;
  width: 270px !important;
  max-width: 100%;
}

.hg-preferred-source noscript a {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  color: #17313b;
  background: #fff;
  border: 1px solid #d7e2df;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.hg-preferred-source noscript a:hover,
.hg-preferred-source noscript a:focus-visible {
  color: #155446;
  border-color: #1d6f5f;
  box-shadow: 0 0 0 3px rgba(29, 111, 95, 0.16);
}

@media print {
  .hg-preferred-source {
    display: none !important;
  }
}
