/* Style the native wp:details blocks as cards */

.wp-block-details {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-details:hover {
  border-color: #d1d5db;
}

.wp-block-details[open] {
  border-color: #c7cbd1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wp-block-details summary {
  padding: 22px 28px;
  font-size: 17px;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wp-block-details summary::-webkit-details-marker {
  display: none;
}

.wp-block-details summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.wp-block-details[open] summary::after {
  content: '−';
  color: var(--wp--preset--color--primary);
}

.wp-block-details summary:hover {
  color: #000;
}

.wp-block-details > *:not(summary) {
  padding: 0 28px 20px;
}

.wp-block-details p {
  font-size: 15px;
  line-height: 1.8;
}
