.ctc-councillors-wrap {
    --ctc-accent: #c0392b;
    --ctc-accent-light: rgba(192, 57, 43, 0.08);
    --ctc-border: rgba(0, 0, 0, 0.1);
    --ctc-radius: 10px;
    --ctc-muted: rgba(0, 0, 0, 0.6);
}

.ctc-hidden {
    display: none !important;
}

/* Ward filters */
.ctc-ward-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.ctc-ward-filters li {
    margin: 0;
    padding: 0;
}

.ctc-ward-filters button {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--ctc-accent);
    border-radius: 6px;
    background: #fff;
    color: var(--ctc-accent);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ctc-ward-filters button:hover {
    background: var(--ctc-accent-light);
}

.ctc-ward-filters button.is-active,
.ctc-ward-filters button[aria-pressed="true"] {
    background: var(--ctc-accent-light);
    border-color: var(--ctc-accent);
    font-weight: 700;
}

/* Grid */
.ctc-councillors-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1200px) {
    .ctc-councillors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .ctc-councillors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ctc-councillors-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.ctc-councillor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ctc-border);
    border-radius: var(--ctc-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ctc-councillor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Photo */
.ctc-councillor-photo {
    position: relative;
    aspect-ratio: 3 / 4;
    background: rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

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

.ctc-councillor-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06));
}

.ctc-councillor-photo--placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.25;
}

/* Body */
.ctc-councillor-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px 14px;
}

.ctc-councillor-name {
    margin: 0;
    font-size: 1.4rem !important;
    font-weight: 800;
    line-height: 1.25;
}

.ctc-councillor-ward {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--ctc-muted);
    line-height: 1.3;
}

/* Designation badges */
.ctc-councillor-designations {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ctc-designation-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--ctc-border);
    background: rgba(0, 0, 0, 0.03);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Contact meta */
.ctc-councillor-footer {
    margin-top: auto;
    padding-top: 14px;
}

.ctc-councillor-meta {
    margin: 0;
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
}

.ctc-councillor-meta > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: baseline;
}

.ctc-councillor-meta dt {
    margin: 0;
    color: var(--ctc-muted);
    font-weight: 400;
}

.ctc-councillor-meta dd {
    margin: 0;
    min-width: 0;
}

.ctc-councillor-meta a {
    color: var(--ctc-accent);
    text-decoration: none;
    font-weight: 600;
}

.ctc-councillor-meta a.ctc-councillor-email {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ctc-councillor-meta a:hover {
    text-decoration: underline;
}

.ctc-councillor-meta dd .ctc-meta-sep {
    margin: 0 4px;
    color: var(--ctc-muted);
    font-weight: 400;
}

.ctc-councillor-interests {
    margin: 14px 0 0;
}

.ctc-councillor-footer > .ctc-councillor-interests:first-child {
    margin-top: 0;
}

.ctc-councillor-interests a {
    color: var(--ctc-accent);
    font-weight: 600;
    text-decoration: none;
}

.ctc-councillor-interests a:hover {
    text-decoration: underline;
}
