/* global.css does not define color variables; keep the small palette local to this component. */
.cv-details {
  --cv-border: #e3e6e9;
  --cv-bg: #ffffff;
  --cv-hover-bg: #f8f9fa;

  margin: 1.25rem 0;
  border: 1px solid var(--cv-border);
  border-radius: 0.375rem;
  background-color: var(--cv-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 4px 8px rgba(0, 0, 0, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.cv-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

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

.cv-details summary:hover {
  background-color: var(--cv-hover-bg);
}

.cv-details summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  margin-left: 0.5rem;
}

.cv-details[open] summary::after {
  transform: rotate(45deg);
}

.cv-details[open] summary {
  border-bottom: 1px solid var(--cv-border);
}

.cv-details .cv-details-body {
  padding: 0.75rem 1rem;
}

.cv-details ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}
