.topic-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  font: 600 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.topic-share-button,
.topic-share-options a,
.topic-share-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #0f5c6e;
  border-radius: 999px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.topic-share-button {
  background: #0f5c6e;
  color: #fff;
  font-weight: 750;
}

.topic-share-button:hover,
.topic-share-button:focus-visible {
  background: #0a4654;
}

.topic-share-button:focus-visible,
.topic-share-options a:focus-visible,
.topic-share-options button:focus-visible {
  outline: 3px solid #b7ff57;
  outline-offset: 3px;
}

.topic-share-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-share-options[hidden] { display: none; }

.topic-share-options a,
.topic-share-options button {
  background: #fff;
  color: #0f5c6e;
}

.topic-share-options a:hover,
.topic-share-options button:hover {
  background: #e7f1f3;
}

.topic-share-status {
  flex-basis: 100%;
  min-height: 1.4em;
  margin: 0;
  color: #5b6770;
  font-size: 13px;
  font-weight: 500;
}

.topic-hero .topic-share {
  margin: 20px 0 0;
}

.topic-hero .topic-share-status {
  color: rgba(255,255,255,.72);
}

.topic-share[data-share-placement="after-votes"],
.topic-share[data-share-placement="after-sources"] {
  margin: 28px 0 42px;
}

@media (max-width: 520px) {
  .topic-share {
    align-items: stretch;
  }

  .topic-share-button {
    width: 100%;
  }

  .topic-share-options {
    width: 100%;
  }

  .topic-share-options a,
  .topic-share-options button {
    flex: 1 1 calc(50% - 8px);
  }
}

@media print {
  .topic-share { display: none; }
}
