/**
 * @file
 * Styles for the PI Permanent Link block.
 *
 * Uses CSS custom properties defined by the hjccm theme design system.
 * Fallback values are included for standalone use.
 */

/* ─── Wrapper ─────────────────────────────────────────────────────────────── */
.pi-permanent-link {
  background-color: var(--gray-five, #f5f7f9);
}

/* ─── Label ───────────────────────────────────────────────────────────────── */
.pi-permanent-link__label {
  font-size: 0.875rem;
  color: var(--gray-one, #444445);
}

/* ─── URL link ────────────────────────────────────────────────────────────── */
.pi-permanent-link__url {
  font-size: 0.875rem;
  color: var(--primary-complementary-link, #405d8f);
  text-decoration: underline;
  transition: color 0.25s ease-in-out;
}

.pi-permanent-link__url:hover {
  color: var(--accent-dark, #091d31);
}

/* ─── Copy button ─────────────────────────────────────────────────────────── */
.pi-permanent-link__copy-btn {
  border: 1.5px solid var(--primary-complementary-link, #405d8f);
  color: var(--primary-complementary-link, #405d8f);
  background-color: transparent;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.25s ease-in-out,
              color 0.25s ease-in-out,
              border-color 0.25s ease-in-out;
}

.pi-permanent-link__copy-btn:hover {
  background-color: var(--primary-complementary-link, #405d8f);
  color: var(--white, #fff);
  border-color: var(--primary-complementary-link, #405d8f);
}

.pi-permanent-link__copy-btn:focus-visible {
  outline: 2px solid var(--primary-complementary-link, #405d8f);
  outline-offset: 2px;
}

.pi-permanent-link__copy-btn.is-copied {
  background-color: #008568;
  border-color: #008568;
  color: var(--white, #fff);
}

/* ─── SVG icon inside button ──────────────────────────────────────────────── */
.pi-permanent-link__copy-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  fill: currentColor;
  pointer-events: none;
}
