/*
 * HPAY "Share to" row (hpayShareRow.mjs): a mono capital label with a dot-matrix glyph, then one square hairline chip per platform.
 * Chips are plain links. No logo images, no icon font, no remote file. Loaded after hpayWorkspace.css so it wears the same cream/ink/red
 * theme; the fallbacks keep it readable on a page without that theme.
 *
 * Direction: subject a link leaving HPAY, audience a person who wants one tap to post or send it, one job share it without opening a
 * second app first, mood plain exact quiet, signature the red tip of the dot-matrix arrow.
 * Targets are 44px tall at least; the grid wraps from five across on a desktop to three on a phone.
 */
.hp-share-to {
  --hp-share-line: var(--hp-line, var(--line-2, #b9ad9d));
  --hp-share-ink: var(--hp-ink, var(--fg, #171615));
  --hp-share-quiet: var(--hp-quiet, var(--fg-2, #61594f));
  --hp-share-red: var(--hp-red, var(--red, #c8102e));
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hp-share-line);
  min-width: 0;
}
.hp-share-to[hidden] { display: none !important; }
.hp-share-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--hp-share-quiet);
  font: 400 10px/1.7 var(--mono, ui-monospace, monospace);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hp-share-glyph { display: inline-flex; line-height: 0; color: var(--hp-share-ink); }
.hp-share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.hp-share-list > li { min-width: 0; margin: 0; }
.hp-share-chip {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 10px;
  border: 1px solid var(--hp-share-line);
  border-radius: 0;
  background: transparent;
  color: var(--hp-share-ink);
  font: 400 11px/1.3 var(--mono, ui-monospace, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.hp-share-chip:hover { border-color: var(--hp-share-ink); background: rgba(23, 22, 21, .06); }
.hp-share-chip:active { background: rgba(23, 22, 21, .12); }
.hp-share-chip:focus-visible { outline: 3px solid var(--hp-share-red); outline-offset: 2px; }
.hp-share-chip[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.hp-share-slot:empty { display: none; }
@media (max-width: 480px) {
  .hp-share-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-share-chip { padding-inline: 4px; letter-spacing: .04em; font-size: 10.5px; }
}
@media (forced-colors: active) {
  .hp-share-chip { border-color: ButtonText; }
  .hp-share-chip:focus-visible { outline-color: Highlight; }
}
@media print { .hp-share-to { display: none !important; } }
