.pa-counts {
  position: absolute;
  z-index: 30;
  left: var(--l-counts);
  top: var(--t-counts);
  transform: translate(-50%);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  max-width: 200vw;
  gap: clamp(3px, 1vw, 10px)
}

.pa-count {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;;
  align-items: center;
  font-size: clamp(10px, 1.5vw, 22px);
  font-weight: bold;
  width: clamp(40px, 5.3vw, 100px);
  /* height: clamp(40px, 5.3vw, 100px); */
  margin-left: 0.4vw;
  .count-title {
    text-align: center;
    color: white;
    font-size: clamp(8px, 1.2vw, 25px);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.75);
    margin-bottom: 2px;
    &.idf-count {
      color: pink;
    }
  }

}


.pa-count .count-number {
  width: clamp(50px, 6.0vw, 90px);
  height: clamp(50px, 6.0vw, 80px);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: red;
  background-size: 350%;
  background-position: center;;
  background-image: url('https://ik.imagekit.io/ubx4wnixel/images/blood.png');
  background-size: cover;
  color: lightgrey;
  text-align: center;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 50%;
  overflow: hidden;
  font-weight: bold;
  font-size: 20px;
  border: 1px solid black; /* Debug: remove once working */
}

.pa-count-tt {
  width: fit-content;
  max-width: 30vw;
  z-index: 50;
  position: absolute;
  top: 100%;
  left: 100%;
  transform: translate(-100%, 0);
  margin-top: 0.25rem;
}

.civilian-table {
  width: 22vw;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.civilian-table th {
  text-align: left;
  font-weight: bold;
}
.civilian-table td,
.civilian-table th {
  padding: 0.4rem 0.6rem;
}
.civilian-table .number {
  text-align: right;
}


.journalist-table {
  border-collapse: collapse;
}

.journalist-table th {
  font-weight: bold;
  text-align: left;
  padding: 0.25rem 0.5rem;
}

.journalist-table td {
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.journalist-table td.number {
  text-align: right;
}

.hospital-table {
  width: 25vw;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hospital-table th {
  text-align: left;
  font-weight: bold;
}
.hospital-table td, .hospital-table th {
  padding: 0.4rem 0.6rem;
}
.hospital-table .number {
  text-align: right;
}

.pa-tooltip.healthcare-tooltip {
  max-width: 50vw; /* wider than default */
  min-width: 400px;
}

.healthcare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.healthcare-table th {
  text-align: left;
  font-weight: bold;
}
.healthcare-table td, .healthcare-table th {
  padding: 0.4rem 0.6rem;
}
.healthcare-table .number {
  text-align: right;
}

.healthcare-summary-scroll {
  width: 30vw;
  max-height: 55vh;

  overflow-y: auto;
  padding-right: 0.5rem;
}

.healthcare-summary {
  font-size: 0.875rem;
  line-height: 1.4;
}

.healthcare-summary ul {
  margin-left: 1rem;
  padding-left: 0.5rem;
}

.healthcare-summary li {
  margin-bottom: 0.4rem;
}

.child-gallery {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    overflow: hidden;
  }
}

.child-gallery-2,
.child-gallery-3 {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-template-rows: 1fr;
}

.child-gallery-4,
.child-gallery-5,
.child-gallery-6 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
}

.gallery-image img {
  width: 11vw;
  height: 11vw;
  border-radius: 4px;
  overflow: hidden;
}

.children-summary-scroll {
  width: 35vw;
  max-height: 55vh;
  overflow-y: scroll;
  padding-right: 0.5rem;
  z-index: 50;
}

.children-summary {
  font-size: 0.875rem;
  line-height: 1.4;
}

.children-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.children-table th {
  text-align: left;
  font-weight: bold;
}

.children-table td, .children-table th {
  padding: 0.4rem 0.6rem;
}

.children-table .number {
  text-align: right;
}

table .num-col {
  text-align: right;
}

