/* Chinese-first UI copy shared by NexT pages and the standalone content map. */
:root {
  --pzx-ui-en-size: .875em;
  --pzx-ui-en-color: #bfc4c1;
  --pzx-ui-nav-en-size: 12px;
  --pzx-ui-pair-gap: .3em;
}
.pzx-bilingual {
  display: inline-flex;
  flex-direction: column;
  gap: var(--pzx-ui-pair-gap);
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
  white-space: normal;
  line-height: 1.45;
  text-align: inherit;
  word-break: normal;
  overflow-wrap: break-word;
}
.pzx-bilingual > .pzx-bilingual__zh,
.pzx-bilingual > .pzx-bilingual__en {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.pzx-bilingual > .pzx-bilingual__en {
  font-size: max(12px, var(--pzx-ui-en-size));
  color: var(--pzx-ui-en-color);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
h1 .pzx-bilingual > .pzx-bilingual__en,
h2 .pzx-bilingual > .pzx-bilingual__en {
  font-size: max(16px, .62em);
  line-height: 1.35;
}

/* Filled controls use their own foreground, not the muted text of dark panels. */
.home-portal-action--primary,
.portal-not-found-actions__primary,
.home-portal-map > a:hover,
.portal-page-map-cta > a:hover,
.semantic-map-footer > a:hover,
.hbe-button {
  --pzx-ui-en-color: currentColor;
}

/* Titles stay complete. Each summary language has its own reading space. */
.pzx-card-title .pzx-bilingual {
  gap: .35em;
}
.pzx-card-title .pzx-bilingual__en {
  font-size: max(14px, .85em);
  line-height: 1.5;
}
.pzx-card-summary .pzx-bilingual {
  display: flex;
  gap: .55em;
}
.pzx-card-summary .pzx-bilingual > span,
.pzx-card-summary > .pzx-summary-single {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.pzx-card-summary .pzx-bilingual__en {
  font-size: max(13px, .95em);
  line-height: 1.65;
}
.search-state {
  padding: 24px 12px;
  text-align: center;
}
.search-popup,
.local-search-popup {
  --pzx-ui-en-color: #4b5351;
}
.search-state > i {
  font-size: 32px;
  color: var(--pzx-ui-en-color);
}
.search-state p {
  margin: 16px 0;
  font-size: 15px;
}
.search-state__retry {
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid #237b75;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.search-state__retry:focus-visible {
  outline: 2px solid #72d6cf;
  outline-offset: 4px;
}
@media (max-width: 640px) {
  .pzx-card-summary .pzx-bilingual > span,
  .pzx-card-summary > .pzx-summary-single {
    -webkit-line-clamp: 2;
  }
}
