.dropdown-wrapper {
  background: #fafafa;
  border: 1px solid #ccc;
  padding: 20px;
}

 details {
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1em;
    font-family: "inter-bold", sans-serif;
    margin-bottom: 20px;

    background: #ffffff; /* NEW */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  summary {
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    
    padding: 2px 0; /* NEW */
  }

  summary:hover {
  opacity: 0.85; /* NEW */
}

summary h2 {
  font-size: 25px;
  font-family: "abril-tiling", serif!important;
  font-weight:100!important;
  padding-bottom: 5px!important;
  display: inline-block;/* NEW */
}

  /* Remove default triangle in Chrome */
  summary::-webkit-details-marker {
    display: none;
  }

  summary::after {
    content: "▼";
    float: right;
    transition: transform 0.2s ease;
  }

 /* details[open] {
    border-left: 4px solid #ccc; 
    padding-left: calc(1em - 4px);
  }*/

  details[open] summary::after {
    transform: rotate(180deg);
  }

  .dropdown-content {
    margin-top: 0.5em;
    color: #444;

  }

  .dropdown-content p {
     font-family: "inter-bold", sans-serif!important;
  }

.dropdown-content h4 {
  margin-top: 30px;
  font-size: 18px;
  letter-spacing: 0.02em;
}


  .dropdown-content ul li {
      font-family: "inter-bold", sans-serif!important;
      font-size: 16px;
  }

  .dropdown-content ul li img {
     clip-path: square(40%);
     height: 100px;
  }

/* DROPDOWN FOR WARDS - PICK A WARD */
/* Container */
.ward-picker {
  margin: 15px 0 25px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f8f8f8;
}



/* Summary looks like a tool header, not content */
.ward-picker summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
}

.ward-picker summary::-webkit-details-marker {
  display: none;
}
/* Normalize border when ward picker is open */
.ward-picker[open] {
  border-left-width: 1px;
}

.ward-picker[open]:focus,
.ward-picker[open]:focus-visible {
  outline: none;
}

.ward-picker-label {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ward-picker summary:focus-visible {
  outline: 2px solid #999;
  outline-offset: 2px;
}




/* Ward picker container */
.ward-picker {
  margin: 15px 0 25px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fcfcfc; /*#f8f8f8;*/
  box-shadow: none;
}

/* Ward picker summary: flex layout so triangle is at the right */
.ward-picker summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between; /* pushes triangle to the right */
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Remove default triangle in Chrome */
.ward-picker summary::-webkit-details-marker {
  display: none;
}

/* Custom triangle at right */
.ward-picker summary::after {
  content: "▲";      /* down-pointing triangle */
  font-size: 12px;
  opacity: 0.6;
  margin-left: 10px;
  transition: transform 0.2s ease;
}

/* Rotate triangle when expanded */
.ward-picker[open] summary::after {
  transform: rotate(0deg); /* still points down; optional: rotate 180deg if you want it up when open */
}

/* Ward links grid */
.ward-links {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

/* Ward selection buttons */
.ward-links a {
  display: block;
  text-align: center;
  padding: 12px 18px;    /* increased padding: more vertical + horizontal space */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
}

/* Hover effect */
.ward-links a:hover {
  background: #eee;
}


/* END WARD LINKS */

/* Links grid */
.ward-links {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

/* Ward buttons */
.ward-links a {
  display: block;
  text-align: center;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  text-decoration: none!important;
}

.ward-links a:hover {
  background: #eee;
}

p.return {
  text-align: right;
  clear: both;
  font-size: 14px;
}

p.return a {
  text-decoration: none;
  color: #444;
}

p.return a:hover {
  color: #808080;
}

  /* ADDITIONAL CSS */
  /* Candidate grid layout */
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin: 10px 0 20px 0;
  list-style: none;
}

.candidate {
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  overflow: hidden;
  background: #fff;
  margin-left: 0!important;

  box-shadow: 0 1px 4px rgba(0,0,0,0.05); /* NEW */
}

.candidate:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.candidate img {
  width: 100%;
  height: 200px!important;
  object-fit: cover;
  display: block;
}

.candidate-name {
  padding: 10px;
  font-family: "inter-bold", sans-serif;
  font-size: 15px;
}

.candidate-name a {
  text-decoration: none;
  color: #000;
}

/* Responsive */
@media (max-width: 800px) {
  .candidate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .candidate-grid {
    grid-template-columns: 1fr;
  }
}

details + details {
  margin-top: 25px;
}
