/* 28pc.win homepage icon and semantic color enhancement. */
html body[data-page='home'] .c28-enhance-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke: currentColor;
}

html body[data-page='home'] .route-band-primary > a:nth-child(1) {
  --route-color: #1566d7;
  --route-soft: #edf4ff;
}

html body[data-page='home'] .route-band-primary > a:nth-child(2) {
  --route-color: #1b9a59;
  --route-soft: #e9f8ef;
}

html body[data-page='home'] .route-band-primary > a:nth-child(3) {
  --route-color: #7547c7;
  --route-soft: #f1ecff;
}

html body[data-page='home'] .route-band-primary > a:nth-child(4) {
  --route-color: #c66320;
  --route-soft: #fff1e6;
}

html body[data-page='home'] .route-band-primary > a:nth-child(5) {
  --route-color: #087f77;
  --route-soft: #e5f7f4;
}

html body[data-page='home'] .route-band-primary > a .nav-icon,
html body[data-page='home'] .route-band-primary > a svg {
  color: var(--route-color) !important;
}

html body[data-page='home'] .route-band-primary > a:hover,
html body[data-page='home'] .route-band-primary > a[aria-current='page'] {
  background: var(--route-soft) !important;
  color: var(--route-color) !important;
}

html body[data-page='home'] .result-tags > .result-tag {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

html body[data-page='home'] .result-tags > .result-tag .c28-enhance-icon {
  width: 15px;
  height: 15px;
}

html body[data-page='home'] .history-zone .section-heading h2,
html body[data-page='home'] .records-workbench .rm-header h2 {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
}

html body[data-page='home'] .history-zone .section-heading h2 {
  color: #1566d7 !important;
}

html body[data-page='home'] .records-workbench .rm-header h2 {
  color: #7547c7 !important;
}

html body[data-page='home'] .history-zone .section-heading h2 .c28-enhance-icon,
html body[data-page='home'] .records-workbench .rm-header h2 .c28-enhance-icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 8px;
}

html body[data-page='home'] .history-zone .section-heading h2 .c28-enhance-icon {
  background: #edf4ff;
}

html body[data-page='home'] .records-workbench .rm-header h2 .c28-enhance-icon {
  background: #f1ecff;
}

html[data-theme='dark'] body[data-page='home'] .history-zone .section-heading h2 .c28-enhance-icon,
html[data-theme='dark'] body[data-page='home'] .records-workbench .rm-header h2 .c28-enhance-icon {
  background: #253247;
}

@media (max-width: 620px) {
  html body[data-page='home'] .result-tags > .result-tag {
    gap: 4px;
    padding-right: 9px !important;
    padding-left: 9px !important;
  }

  html body[data-page='home'] .result-tags > .result-tag .c28-enhance-icon {
    width: 13px;
    height: 13px;
  }
}
