/* Copy Paste Values tool */
.hc-intro {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.hc-intro kbd {
  border: 1px solid var(--bs-border-color, #c9ced4);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bs-secondary-bg, #f3f4f6);
  color: var(--bs-body-color, #2c2c2c);
  padding: 0.08rem 0.38rem;
  font: inherit;
  font-size: 0.84em;
}

.hc-tool {
  width: 100%;
}

.hc-input-card,
.hc-result-card {
  border: 1px solid var(--bs-border-color, #d8dce1);
  border-radius: 10px;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.hc-input-card {
  padding: 1rem;
  margin-bottom: 1rem;
}

.hc-card-heading,
.hc-result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hc-card-heading h2,
.hc-result-heading h3 {
  margin: 0;
  color: var(--bs-body-color, #2c2c2c);
}

.hc-card-heading h2 {
  font-size: 1.08rem;
}

.hc-result-heading h3 {
  font-size: 0.98rem;
}

.hc-card-heading p,
.hc-result-heading p {
  margin: 0.2rem 0 0;
  color: var(--bs-secondary-color, #66707a);
  font-size: 0.84rem;
  line-height: 1.35;
}

.hc-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hc-button,
.hc-copy {
  border: 1px solid var(--site-accent);
  border-radius: 6px;
  background: transparent;
  color: var(--site-accent);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hc-button {
  padding: 0.42rem 0.72rem;
  font-size: 0.8rem;
}

.hc-copy {
  padding: 0.34rem 0.68rem;
  font-size: 0.76rem;
  flex-shrink: 0;
}

.hc-button:hover,
.hc-copy:hover {
  background: var(--site-accent);
  color: var(--site-accent-contrast);
}

.hc-button:focus-visible,
.hc-copy:focus-visible,
.hc-editor:focus-visible,
.hc-result-card textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--site-accent-ring);
}

.hc-editor {
  min-height: 180px;
  max-height: 430px;
  overflow: auto;
  margin-top: 0.9rem;
  padding: 0.85rem;
  border: 2px dashed var(--site-accent-muted);
  border-radius: 8px;
  background: var(--bs-secondary-bg, #f8f9fa);
  color: var(--bs-body-color, #2c2c2c);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.hc-editor:focus {
  border-color: var(--site-accent);
}

.hc-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--bs-secondary-color, #747d86);
  pointer-events: none;
}

.hc-editor a {
  color: var(--site-accent);
  text-decoration: underline;
}

.hc-editor p,
.hc-editor div,
.hc-editor blockquote,
.hc-editor pre,
.hc-editor ul,
.hc-editor ol {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.hc-status {
  min-height: 1.25rem;
  margin: 0.65rem 0 0;
  color: var(--bs-secondary-color, #66707a);
  font-size: 0.8rem;
}

.hc-status.hc-error {
  color: #b42318;
}

.hc-status.hc-success {
  color: #237a44;
}

.hc-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hc-result-card {
  min-width: 0;
  padding: 0.9rem;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.hc-result-card:hover {
  border-color: var(--site-accent-muted);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.hc-result-card textarea {
  display: block;
  width: 100%;
  min-height: 128px;
  margin-top: 0.75rem;
  padding: 0.7rem;
  resize: vertical;
  border: 1px solid var(--bs-border-color, #d8dce1);
  border-radius: 6px;
  background: var(--bs-secondary-bg, #f8f9fa);
  color: var(--bs-body-color, #2c2c2c);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.45;
}

.hc-code-card textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .hc-results {
    grid-template-columns: 1fr;
  }

  .hc-card-heading,
  .hc-result-heading {
    gap: 0.65rem;
  }

  .hc-card-heading {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-button,
  .hc-copy,
  .hc-result-card {
    transition: none;
  }
}
