/* Sitewide article sharing controls. Injected server-side by the Worker to avoid CLS. */
/* Universal for every current and future PBR article page. */
.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-block: 1px solid var(--rule);
  background: rgba(243, 234, 215, 0.88);
}

.article-share-label {
  margin-right: 0.35rem;
  color: var(--navy-deep);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-share-link,
.article-share-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.65rem 0.78rem;
  text-decoration: none;
}

.article-share-link:hover,
.article-share-link:focus-visible,
.article-share-button:hover,
.article-share-button:focus-visible {
  background: var(--navy);
  color: #fff;
}

.article-share-button[hidden] {
  display: none;
}

@media (max-width: 620px) {
  .article-share {
    align-items: stretch;
  }

  .article-share-label {
    flex-basis: 100%;
    margin-right: 0;
  }

  .article-share-link,
  .article-share-button {
    flex: 1 1 calc(50% - 0.55rem);
    text-align: center;
  }
}
