/* Byline + круглые кнопки шаринга (как у крупных медиа) */
.post-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.post-byline__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 0.9rem;
  color: #64748b;
  min-width: 0;
}

.post-byline__prefix {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #0f172a;
}

.post-byline__author {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}
.post-byline__author:hover {
  text-decoration: underline;
}

.post-byline__author--plain {
  font-weight: 600;
  color: #0f172a;
}

.post-byline__sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
  vertical-align: middle;
}

.post-byline__time {
  color: #64748b;
  font-size: 0.88rem;
}

.post-byline__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.post-byline__action {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}

.post-byline__action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.2);
}

.post-byline__action:active {
  transform: translateY(0);
}

.post-byline a.post-byline__action,
.post-byline a.post-byline__action:visited {
  color: #0f172a;
  text-decoration: none;
}
.post-byline a.post-byline__action:hover {
  color: #0f172a;
}

.post-byline__action--copy {
  position: relative;
  overflow: hidden;
}

.post-byline__copy .post-byline__action-icon,
.post-byline__action--copy .post-byline__action-icon {
  flex-shrink: 0;
}

.post-byline__copy-done {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #ecfdf5;
  color: #047857;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.post-byline__copy.is-done .post-byline__action-icon {
  opacity: 0;
}

.post-byline__copy.is-done .post-byline__copy-done {
  opacity: 1;
}

/* Aurora (politico), Islands, Ledger: не подкрашивать иконки цветом ссылок темы */
.theme-aurora .post-byline a.post-byline__action,
.theme-aurora .post-byline a.post-byline__action:visited,
.theme-aurora .post-byline a.post-byline__action:hover,
.theme-islands .post-byline a.post-byline__action,
.theme-islands .post-byline a.post-byline__action:visited,
.theme-islands .post-byline a.post-byline__action:hover,
.theme-ledger .post-byline a.post-byline__action,
.theme-ledger .post-byline a.post-byline__action:visited,
.theme-ledger .post-byline a.post-byline__action:hover {
  color: #0f172a !important;
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}
.theme-aurora .post-byline a.post-byline__action:hover,
.theme-islands .post-byline a.post-byline__action:hover,
.theme-ledger .post-byline a.post-byline__action:hover {
  border-color: rgba(15, 23, 42, 0.22) !important;
}

@media (max-width: 520px) {
  .post-byline {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-byline__actions {
    align-self: flex-end;
  }
}
