/* ==========================================================================
   Paddy Studio — "Share / Embed this on your site" box under each embeddable
   tool. Self-contained on top of /blog/style.css (not every tool page loads
   tool-common.css).
   ========================================================================== */
.embed-share {
  margin: 0 0 1.25rem;
  border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.92rem; line-height: 1.55;
}
.embed-share summary {
  display: flex; align-items: center; gap: 0.55rem; cursor: pointer;
  min-height: 44px; padding: 0.55rem 1rem;
  font-weight: 700; color: var(--text-muted);
  list-style: none;
}
.embed-share summary::-webkit-details-marker { display: none; }
.embed-share summary::after { content: "+"; margin-left: auto; font-weight: 700; color: var(--text-dim); }
.embed-share[open] summary::after { content: "−"; }
.embed-share summary span { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.8rem; color: var(--indigo); }
.embed-share summary:hover { color: var(--text); }
.embed-share summary:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; border-radius: 14px; }

.embed-share-body { padding: 0 1rem 1rem; }
.embed-share-body p { margin: 0 0 0.7rem; color: var(--text-muted); }

.embed-code {
  display: block; width: 100%; resize: vertical;
  padding: 0.7rem 0.8rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.78rem; line-height: 1.5;
}
.embed-code:focus { outline: 2px solid #22d3ee; outline-offset: 1px; }

.embed-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 0.7rem; }
.embed-copy {
  min-height: 44px; padding: 0.5rem 1rem; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #818cf8, #22d3ee); color: #0b0620;
  font: inherit; font-weight: 700;
}
.embed-copy:hover { filter: brightness(1.08); }
.embed-copy:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }
.embed-credit-opt { display: flex; align-items: center; gap: 0.45rem; color: var(--text-dim); font-size: 0.85rem; cursor: pointer; }
.embed-credit-opt input { width: 1.05rem; height: 1.05rem; accent-color: #818cf8; }
