.publish-form #district-field[hidden] {
  display: none;
}

.publish-form #district-field small {
  display: block;
  margin-top: 7px;
  color: #819087;
  font-weight: 400;
}

.district-switch {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.district-switch span {
  margin-right: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.district-switch a {
  padding: 7px 11px;
  border-radius: 4px;
  color: #60726b;
  font-size: 12px;
}

.district-switch a:hover,
.district-switch a.active {
  background: var(--green);
  color: #fff;
}

.city-detail {
  width: 100%;
  margin: 3px 0;
}

.city-detail summary {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.city-detail > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  padding: 11px 0 5px 12px;
}

.city-detail > div a {
  color: #667871;
  font-size: 12px;
}

.city-detail > div a:hover {
  color: var(--green);
}

.global-countries {
  margin: 25px 0 35px;
  padding: 22px 25px;
  border-radius: 8px;
  background: #eef6e7;
}

.global-countries h2 {
  margin: 0 0 15px;
  font-size: 18px;
}

.global-countries > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.global-countries a {
  padding: 7px 12px;
  border: 1px solid #d5e2d2;
  border-radius: 4px;
  background: #fff;
  color: #60726b;
  font-size: 12px;
}

.global-countries a:hover {
  border-color: #8eb99a;
  color: var(--green);
}

.china-head {
  margin-top: 25px;
}

.ranked-countries {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.country-choice {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d5e2d2;
  border-radius: 5px;
  background: #fff;
}

.country-main {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0 !important;
  padding: 0 !important;
  color: var(--ink) !important;
  font-weight: 700;
}

.country-main span {
  color: #98a59e;
  font-size: 10px;
}

.country-subfilters {
  margin-top: 7px;
}

.country-subfilters summary {
  color: var(--green);
  cursor: pointer;
  font-size: 11px;
  list-style: none;
}

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

.country-subfilters summary::before {
  content: '＋';
  margin-right: 3px;
}

.country-subfilters[open] summary::before {
  content: '−';
}

.country-subfilters > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.country-subfilters > div a {
  padding: 4px 7px;
  border: 1px solid #d5e2d2;
  border-radius: 4px;
  color: #60726b;
  font-size: 10px;
}

.country-subfilters > div a:hover {
  border-color: #8eb99a;
  color: var(--green);
}

.scope-note {
  margin: 4px 0 0;
  color: #819087;
  font-size: 12px;
}

.place-filter .scope-active input {
  border-color: var(--green);
  box-shadow: 0 0 0 2px #dcefd6;
}

.place-search {
  padding-top: 70px;
}

.place-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.place-filter label {
  color: #52635d;
  font-size: 11px;
  font-weight: 700;
}

.place-filter input,
.place-filter select {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 7px;
  padding: 0 10px;
  border: 1px solid #dce4dc;
  border-radius: 5px;
  background: #fcfdf9;
  color: var(--ink);
  font: inherit;
}

.place-filter button {
  align-self: end;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .ranked-countries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .place-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .place-filter button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .ranked-countries,
  .place-filter {
    grid-template-columns: 1fr;
  }
}
