/* english.css - typography adaptations for the English build
 *
 * The original stylesheets clamp list titles and descriptions to a single
 * line (Chinese fits) and cap them at two lines via the designer's runtime
 * `data-*-autolines` attributes. English copy needs noticeably more room, so
 * the clamps are raised here and the fixed heights are released.
 *
 * Loaded after every page stylesheet.
 */

/* ---------------------------------------------------------------------
 * One modern face for the whole copy.
 *
 * The design sets its type in Tahoma, SimSun and Noto Sans CJK - all
 * of them Chinese faces whose Latin glyphs are a dated serif.  An English
 * copy wants a single humanist UI sans, so the whole set is overridden
 * here.  The icon fonts keep their own family.
 * ------------------------------------------------------------------ */
:root {
  --efly-font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

.editableContent,
.editableContent p,
.editableContent span,
.w-detail,
.w-detail p,
.w-detail span,
.w-detailcontent,
.w-detailcontent p,
.w-detailcontent span,
.w-list-title,
.w-list-desc,
.w-list-info,
.w-list-date,
.w-list-btn,
.w-list-price,
.w-list-viewnum,
.w-list-titlelink,
.w-list-bottom,
.w-al-title,
.w-al-desc,
.w-al-btn,
.w-al-date,
.w-al-unit,
.w-nav-item-link,
.w-link-txt,
.w-nav .w-nav-item,
.w-subnav-link,
.w-crumbs-item,
.w-search-input,
.w-search-btn,
.w-search-inner,
.w-search-btn-txt,
.w-searchkey,
.w-searchkey-item,
.w-select-btn,
.w-select-link,
.w-select-dropdown,
.w-button-text,
.w-button,
.w-control-text,
.w-columns-control,
.w-page-num,
.w-page-more-box,
.w-page-go,
.w-pageline,
.w-slider-titletext,
.w-slider-title,
.w-label-tips-item,
.w-label-content-item,
.w-mobile-label,
.w-category-list-title a,
.w-category-listsecond-title a,
.w-category-listthird-title a,
.w-company-info,
.w-title,
.w-info,
.w-placeholder-text-in,
.placeholder-text-in,
.image-title,
.image-hover-desc,
.company-info-title,
.company-info-text,
.w-crumbs,
.w-list,
.w-list-ul,
.w-list-item,
.w-list-link,
.w-label,
.w-label-content,
.w-label-tips,
.mobile-label-tips-item,
.smart-item-resize,
.ui-resizable-s,
.copyright-area,
.bottom-words,
.ipv6-box,
.common-style,
.display-style,
.company-info,
.w-company-info,
a,
p,
span,
li,
td,
th,
h1,
h2,
h3,
h4,
h5,
h6,
label,
legend,
em,
strong,
small,
figcaption {
  font-family: var(--efly-font) !important;
}

/* the icon fonts must keep their own glyphs */
.mw-iconfont,
.iconfont,
.ltd-icon {
  font-family: mw-iconfont !important;
}

/* ---------------------------------------------------------------------
 * list titles and descriptions
 *
 * The design clamps a card summary to two lines, which fits Chinese but
 * cuts an English sentence in half.  A title stays a title, but the
 * summaries are shown in full - the cards grow with the copy.
 * ------------------------------------------------------------------ */
.w-list-title {
  -webkit-line-clamp: 4 !important;
  height: auto !important;
  max-height: none !important;
}

.w-list-desc {
  -webkit-line-clamp: none !important;
  height: auto !important;
  max-height: none !important;
}

/* the short summary under a search result */
.w-list-info {
  -webkit-line-clamp: none !important;
  height: auto !important;
  max-height: none !important;
}

/* news article list (w-al-*) */
.w-al-title {
  -webkit-line-clamp: 4 !important;
  height: auto !important;
  max-height: none !important;
}

.w-al-desc {
  -webkit-line-clamp: none !important;
  height: auto !important;
  max-height: none !important;
}

/* the designer's runtime clamp helpers (set via inline max-height) */
[style*="max-height"] > .w-list-desc,
[style*="max-height"] > .w-al-desc {
  max-height: none !important;
}

/* Chinese text blocks are centred on their box; English needs the same
 * optical centring once the copy is taller than the original box */
.editableContent p {
  overflow-wrap: break-word;
  word-break: normal;
}

/* the partner cards and other centred stat blocks keep their leading tidy
 * when the English label wraps to a second line */
.w-columns-content .editableContent p {
  margin-bottom: 0;
}

/* a search that finds nothing */
.efly-noresult {
  display: block;
  padding: 60px 20px;
  text-align: center;
  color: #989898;
  font-size: 15px;
  list-style: none;
}
