/* Project categories are ordinary links, so each category works without JavaScript. */
.cxy-r-info-page #project-filters { scroll-margin-top: calc(var(--header-height) + 18px); }
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  margin: 0;
  padding: 2px 0 8px;
  list-style: none;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs::-webkit-scrollbar { display: none; }
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs li { display: flex; flex: 0 0 auto; margin: 0; }
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid #dbe5f1;
  border-radius: 28px;
  color: #526780;
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .3s ease, border-color .3s ease;
}
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs a::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #1558e9;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs a[aria-current='page'],
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs a:hover,
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs a:focus-visible { color: #fff; border-color: #1558e9; }
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs a[aria-current='page']::before,
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs a:hover::before,
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs a:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs a:focus-visible { outline-offset: -4px; }
.cxy-project-tabs sup { position: relative; top: -.35em; font-size: 11px; line-height: 1; }

/* The retained material filter is secondary to the business categories. */
.cxy-project-materials { margin-top: 12px; }
.cxy-project-materials summary { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; color: #63778f; font-size: 14px; cursor: pointer; list-style: none; }
.cxy-project-materials summary::-webkit-details-marker { display: none; }
.cxy-project-materials summary::after { content: ''; width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s ease; }
.cxy-project-materials[open] summary::after { transform: translateY(2px) rotate(225deg); }
.cxy-project-materials [data-case-material-label] { color: #1558e9; }
.cxy-r-info-page .cxy-project-materials .cxy-fidelity-filter { gap: 7px 18px; margin-top: 3px; }
.cxy-r-info-page .cxy-project-materials .cxy-fidelity-filter button { min-height: 36px; font-size: 14px; }
.cxy-r-info-page .cxy-r-case-list-box1 .cxy-r-tips .cxy-r-container .cxy-r-txt { color: #657790; }

/* Preserve the existing feature layout while using our own blue background. */
.cxy-r-info-page .cxy-r-case-list-box1 .cxy-r-big .cxy-r-container .cxy-project-feature-bg {
  background: radial-gradient(ellipse at 80% 100%, rgba(38, 154, 238, .34), transparent 53%),
              radial-gradient(ellipse at 8% 100%, rgba(29, 190, 207, .16), transparent 48%),
              linear-gradient(120deg, #f9fbff, #edf6ff 55%, #d9eeff);
}
.cxy-r-info-page .cxy-r-case-list-box1 .cxy-r-big .cxy-r-container .cxy-r-tbox .cxy-r-play .cxy-r-play-btn,
.cxy-r-info-page .cxy-r-case-list-box1 .cxy-r-big .cxy-r-container .cxy-r-play.cxy-r-mb .cxy-r-play-btn { box-shadow: 0 3px 18px rgba(21, 88, 233, .12); }
.cxy-r-info-page .cxy-r-case-list-box1 .cxy-r-big .cxy-r-container .cxy-r-tbox .cxy-r-play .cxy-r-play-btn:hover,
.cxy-r-info-page .cxy-r-case-list-box1 .cxy-r-big .cxy-r-container .cxy-r-play.cxy-r-mb .cxy-r-play-btn:hover { box-shadow: 0 5px 22px rgba(21, 88, 233, .2); }
.cxy-r-info-page .cxy-r-case-list-box1 .cxy-r-big .cxy-r-container .cxy-r-label span { border-color: #bcd4ef; color: #526987; cursor: default; }

/* A category with two or four existing projects deserves roomier cards. */
.cxy-project-category .cxy-r-info-page .cxy-r-case-list-box1 { margin-top: clamp(32px, 4vw, 64px); }
.cxy-project-category .cxy-r-info-page .cxy-r-info-menu1 { padding-top: 0; }
.cxy-project-category .cxy-r-info-page .cxy-r-case-list-box2 .cxy-r-container ul li { width: calc(50% - calc(.6 * var(--cxy-reference-unit))); }
.cxy-project-category .cxy-r-info-page .cxy-r-case-list-box2 .cxy-r-public-img::before { padding-top: 62.5%; }
.cxy-project-category .cxy-r-info-page .cxy-r-case-list-box2 .cxy-r-public-img > img.cxy-case-logo { padding: 12%; }

@media (max-width: 767px) {
  .cxy-r-info-page .cxy-r-info-menu1 .cxy-r-container .cxy-project-tabs a { min-height: 43px; padding: 0 18px; font-size: 14px; }
  .cxy-r-info-page .cxy-r-case-list-box1 .cxy-r-tips .cxy-r-container .cxy-r-txt { padding: 18px 0 0; }
  .cxy-r-info-page .cxy-r-case-list-box1 .cxy-r-tips .cxy-r-container .cxy-r-txt p { display: block; }
  .cxy-project-category .cxy-r-info-page .cxy-r-case-list-box2 .cxy-r-container ul li { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cxy-project-tabs a, .cxy-project-tabs a::before, .cxy-project-materials summary::after { transition: none !important; }
}
html[data-motion='paused'] .cxy-project-tabs a,
html[data-motion='paused'] .cxy-project-tabs a::before,
html[data-motion='paused'] .cxy-project-materials summary::after { transition: none !important; }
