/* KD Byraadsmedlemmer CSS */
.kd-byraads-widget {
  font-family: 'Inter', sans-serif;
  color: #333;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 15px;
}

.filter-label {
  font-weight: 700;
  color: #001A72;
  margin-right: 10px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: #001A72;
}

.filter-btn.active {
  color: #001A72;
  border-bottom-color: #F58220;
  font-weight: 700;
}

/* Sections */
.kommune-section {
  margin-bottom: 3rem;
}

.kommune-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.kommune-dot {
  width: 10px;
  height: 10px;
  background-color: #F58220;
  border-radius: 50%;
}

.kommune-name {
  font-size: 20px;
  font-weight: 700;
  color: #001A72;
}

.kommune-line {
  flex-grow: 1;
  height: 1px;
  background-color: #eaeaea;
}

.kommune-count {
  font-size: 14px;
  color: #888;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Person Card */
.person-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.person-photo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #f4f5f9;
}

.person-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-photo-placeholder {
  width: 100%;
  height: 100%;
}

.person-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.person-role-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #F58220;
  font-weight: 600;
  margin-bottom: 5px;
}

.person-name {
  font-size: 16px;
  font-weight: 700;
  color: #001A72;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.person-email {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
  margin-top: auto;
}

.person-email:hover {
  color: #F58220;
}
