/* V10-P4: isolate tag cloud from Latest section and restore Latest heading/card flow. */
.ydz-home-page .ydz-main-container .content-wrap {
  display: block !important;
  float: none !important;
  width: 100% !important;
}

/* Tag cloud: it owns its full natural height; no floated tag can escape into the next module. */
.ydz-home-page .ydz-tag-title {
  display: block !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  overflow: visible !important;
}
.ydz-home-page .ydz-tag-title::after,
.ydz-home-page .ydz-tag-title .filter-wrapper::after,
.ydz-home-page .ydz-tag-title .details::after,
.ydz-home-page .ydz-tag-title .details li::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}
.ydz-home-page .ydz-tag-title .filter-wrapper {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.ydz-home-page .ydz-tag-title .details,
.ydz-home-page .ydz-tag-title .details li {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  position: static !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
  overflow: visible !important;
  list-style: none !important;
}
.ydz-home-page .ydz-tag-title .details a {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  line-height: 28px !important;
  white-space: nowrap !important;
}

/* Every portal content block starts below the previous block. */
.ydz-home-page .ydz-main-container .contentlist {
  display: block !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 18px !important;
  overflow: visible !important;
}
.ydz-home-page .ydz-main-container .contentlist::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

/* Latest heading must occupy its own row; old theme floated H3 and collapsed the parent. */
.ydz-home-page .ydz-main-container .ydz-section-title,
.ydz-home-page .ydz-main-container .ydz-latest-section > .title {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  height: auto !important;
  min-height: 36px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  overflow: visible !important;
}
.ydz-home-page .ydz-main-container .ydz-section-title h3,
.ydz-home-page .ydz-main-container .ydz-latest-section > .title h3 {
  float: none !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 36px !important;
  color: #555 !important;
}
.ydz-home-page .ydz-main-container .ydz-latest-section > .list-img {
  clear: both !important;
  margin-top: 0 !important;
}

/* Keep card geometry deterministic. */
.ydz-home-page .ydz-main-container .list-img {
  clear: both !important;
  width: 100% !important;
}
.ydz-home-page .ydz-main-container .excerpt {
  box-sizing: border-box !important;
  min-height: 0 !important;
}

@media (max-width: 720px) {
  .ydz-home-page .ydz-tag-title { margin-bottom: 10px !important; }
  .ydz-home-page .ydz-tag-title .filter-wrapper { padding: 6px !important; }
  .ydz-home-page .ydz-tag-title .details,
  .ydz-home-page .ydz-tag-title .details li { gap: 4px !important; }
  .ydz-home-page .ydz-tag-title .details a { height: 28px !important; padding: 0 8px !important; line-height: 26px !important; }
}
