/* Scroll & Stone - social share tray.
   Horizontal row of round icon buttons.
   Tokens from house stylesheet (style.css :root). */

.st-tray {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.st-tray--article {
  margin-top: .85rem;
}

.st-tray--feed {
  margin: 0;
}

.st-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

/* ---- icon buttons and link-buttons ---- */

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(199, 162, 75, 0.45); /* --gold at reduced opacity */
  background: transparent;
  color: var(--gold, #C7A24B);
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.st-btn:hover,
.st-btn:focus-visible {
  background: rgba(199, 162, 75, 0.12);
  border-color: var(--gold, #C7A24B);
  color: var(--gold-soft, #E3C87E);
}

.st-btn:focus-visible {
  outline: 2px solid var(--gold, #C7A24B);
  outline-offset: 3px;
}

.st-btn:disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

.st-btn--image {
  width: auto;
  min-width: 94px;
  padding: 0 .65rem;
  border-radius: 999px;
}

/* ---- icon sizing ---- */

.st-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.st-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.st-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.st-icon--socials {
  width: 68px;
  gap: .3rem;
}

.st-icon--socials img {
  width: 18px;
  height: 18px;
}

.st-more {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .45rem;
}

.st-more[hidden] {
  display: none;
}

.st-tray--feed .st-row {
  flex-wrap: nowrap;
  gap: .28rem;
}

.st-tray--feed .st-btn {
  width: 44px;                  /* touch-target minimum */
  height: 44px;
  border-width: 1px;
  border-color: rgba(245, 237, 223, .78);
  background: rgba(245, 237, 223, .9);
}

.st-tray--feed .st-btn--image {
  width: auto;
  min-width: 78px;
  padding: 0 .5rem;
}

.st-tray--feed .st-icon {
  width: 20px;
  height: 20px;
}

.st-tray--feed .st-icon--socials {
  width: 62px;
  gap: .22rem;
}

.st-tray--feed .st-icon--socials img {
  width: 17px;
  height: 17px;
}

/* ---- transient status text ---- */

.st-status {
  font-family: var(--utility, "Inter", sans-serif);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--gold-soft, #E3C87E);
  min-height: 1.1em;
  margin: 0;
  padding: 0 2px;
}

.st-status[hidden] {
  display: none;
}

/* ---- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .st-btn { transition: none; }
}

@media (max-width: 520px) {
  .st-tray--article .st-row {
    flex-wrap: nowrap;
  }
}
