/* DW How to Quote — front-end styles */

.dwhtq-widget {
  font-size: 0.875rem;
  line-height: 1.5;
}

.dwhtq-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  max-width: 100%;
}

.dwhtq-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  min-width: 0;
}

.dwhtq-label {
  flex: 0 0 auto;
  min-width: 5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #888;
}

.dwhtq-code {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  background: #f5f5f5;
  border-radius: 3px;
  color: #555;
}

.dwhtq-preview {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
}

.dwhtq-preview a {
  color: #0066cc !important;
  text-decoration: underline !important;
}

.dwhtq-copy-btn {
  flex: 0 0 auto;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #555;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.dwhtq-copy-btn:hover {
  background: #eee;
  color: #222;
}

.dwhtq-copy-btn.dwhtq-copied {
  color: #2e7d32;
  border-color: #a5d6a7;
  background: #e8f5e9;
}

/* Print: replace copy buttons with a clean citation line */
.dwhtq-print {
  display: none;
}

@media print {
  .dwhtq-widget .widget-title,
  .dwhtq-widget .widgettitle {
    display: none !important;
  }
  .dwhtq-links {
    display: none !important;
  }
  .dwhtq-print {
    display: block;
    border-top: 3px solid #ccc;
    padding-top: 1.6rem;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #333;
  }
}
