/* Stable-height desktop cards; compact tap-to-open rows for narrow or touch screens. */
.home-examples {
  width: min(1400px, calc(100% - 80px));
}
.gallery-desktop-hint,
.gallery-mobile-break {
  display: none;
}
.demo-gallery {
  --gallery-time: 480ms;
  --gallery-ease: cubic-bezier(0.22, 0.68, 0, 1);
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding: 5px 0 15px;
}
.market-card {
  position: relative;
  isolation: isolate;
  flex: 0 0 min(82vw, 420px);
  height: 560px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ffffff26;
  border-radius: 25px;
  background: #16253c;
  color: #fff;
  scroll-snap-align: start;
  box-shadow: 0 6px 16px #0b172015;
}
.market-art,
.market-shade,
.market-select {
  position: absolute;
  inset: 0;
}
.market-art {
  overflow: hidden;
  z-index: -3;
}
.market-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
.market-illustration {
  color: #bbd7ff;
  background:
    radial-gradient(ellipse at 60% 15%, #587dae66, transparent 65%),
    linear-gradient(155deg, #2b4668, #101d32);
}
.market-care .market-illustration {
  background:
    radial-gradient(ellipse at 30% 5%, #8882b65c, transparent 65%),
    linear-gradient(155deg, #454665, #1b213c);
  color: #d9d5ff;
}
.market-fitness .market-illustration {
  background:
    radial-gradient(ellipse at 70% 10%, #4f9bbc4f, transparent 65%),
    linear-gradient(155deg, #2f4b63, #132837);
  color: #b2d9f0;
}
.market-learning .market-illustration {
  background:
    radial-gradient(ellipse at 60% 10%, #8796bf55, transparent 65%),
    linear-gradient(155deg, #464a6e, #242438);
  color: #c8d4ff;
}
.market-illustration > svg {
  position: absolute;
  width: 180px;
  height: 164px;
  max-width: none;
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  opacity: 0.8;
}
.market-orbit {
  position: absolute;
  left: 50%;
  top: 55px;
  width: 235px;
  height: 235px;
  border: 1px solid #bedbff17;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 40px #bedbff07,
    0 0 0 80px #bedbff04;
}
.market-number {
  position: absolute;
  right: 22px;
  top: 21px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.55;
}
.market-shade {
  z-index: -2;
  background: linear-gradient(
    180deg,
    #07101c08 12%,
    #07101c55 33%,
    #07101ceb 65%,
    #07101cf7
  );
}
.market-status {
  position: absolute;
  left: 19px;
  top: 20px;
  padding: 7px 10px;
  background: #0b1726b5;
  border: 1px solid #ffffff3a;
  border-radius: 99px;
  color: #e9f0ff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.market-scheduled .market-status {
  background: #f3f7ffed;
  color: #172840;
  border-color: #fff9;
}
.market-title {
  position: absolute;
  left: 19px;
  right: 15px;
  bottom: 27px;
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  opacity: 0;
  pointer-events: none;
}
.market-title span {
  display: block;
}
.market-details {
  position: absolute;
  left: 28px;
  bottom: 27px;
  width: min(330px, calc(82vw - 58px));
  color: #fff;
  pointer-events: none;
}
.market-category {
  margin: 0 0 16px;
  color: #b4cff7;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.market-details h4 {
  margin: 0 0 17px;
  color: #fff;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.07;
}
.market-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #e0e7f3;
}
.market-related {
  margin: 16px 0 0;
  color: #c3cfe1;
  font-size: 12px;
  line-height: 1.65;
}
.market-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 23px;
  padding-top: 17px;
  border-top: 1px solid #bccde540;
  color: #b4cff7;
  font-size: 11px;
  line-height: 1.4;
}
.market-scheduled .market-action {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.market-action .ico {
  width: 20px;
  height: 20px;
}
#demo-gallery .market-select {
  display: block;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
  color: inherit;
  scale: 1;
  -webkit-tap-highlight-color: transparent;
}
#demo-gallery button.market-select {
  display: none;
}
#demo-gallery .sr-only,
#demo-gallery .market-launch-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#demo-gallery .market-select:focus-visible {
  outline: 3px solid #b7d5ff;
  outline-offset: -5px;
}
.demo-gallery .market-card:has(.market-select:focus-visible) {
  box-shadow: 0 0 0 3px var(--focus);
}
@media (min-width: 1001px) and (hover: hover) and (pointer: fine) {
  .home-examples:has(.is-enhanced) .gallery-desktop-hint {
    display: block;
  }
  .home-examples:has(.is-enhanced) .gallery-touch-hint {
    display: none;
  }
  .demo-gallery.is-enhanced {
    overflow: visible;
    scroll-snap-type: none;
  }
  .demo-gallery.is-enhanced .market-card {
    flex: 1 1 0%;
    height: 560px;
    transition:
      flex-grow var(--gallery-time) var(--gallery-ease),
      border-color 180ms ease;
  }
  .demo-gallery.is-enhanced .market-card.is-active {
    flex-grow: 3.6;
    border-color: #b4cfff8c;
  }
  .demo-gallery.is-enhanced .market-title {
    opacity: 1;
    transition: opacity 140ms ease 130ms;
  }
  .demo-gallery.is-enhanced .market-card.is-active .market-title {
    opacity: 0;
    transition-delay: 0ms;
  }
  .demo-gallery.is-enhanced .market-details {
    width: 330px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
      opacity 130ms ease,
      transform 250ms ease,
      visibility 0s 130ms;
  }
  .demo-gallery.is-enhanced .market-card.is-active .market-details {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 160ms, 100ms, 0ms;
  }
  #demo-gallery.is-enhanced button.market-select {
    display: block;
  }
  .demo-gallery.is-enhanced .market-illustration > svg {
    width: 140px;
    opacity: 0.48;
    transition:
      width var(--gallery-time) var(--gallery-ease),
      opacity 250ms ease;
  }
  .demo-gallery.is-enhanced .market-card.is-active .market-illustration > svg {
    width: 185px;
    opacity: 0.85;
  }
  .demo-gallery.is-enhanced .market-number {
    opacity: 0;
    transition: opacity 200ms ease;
  }
  .demo-gallery.is-enhanced .market-card.is-active .market-number {
    opacity: 0.55;
  }
}
@media (min-width: 1001px) and (max-width: 1150px) {
  .market-status {
    left: 13px;
  }
  .market-title {
    left: 14px;
    right: 10px;
    font-size: 16px;
  }
  .market-details {
    left: 23px;
  }
  .demo-gallery.is-enhanced .market-details {
    width: 300px;
  }
}
@media (max-width: 1000px), (hover: none), (pointer: coarse) {
  .example-heading {
    display: block;
  }
  .example-heading p {
    margin-top: 9px;
  }
  .demo-gallery {
    margin-right: -20px;
    padding-right: 20px;
  }
  .market-card {
    border-radius: 23px;
  }
}
@media (max-width: 600px) {
  .gallery-mobile-break {
    display: block;
  }
  .market-card {
    height: 535px;
  }
  .market-details {
    left: 24px;
    bottom: 24px;
    width: calc(82vw - 50px);
  }
  .market-details h4 {
    font-size: 30px;
  }
  .market-description {
    font-size: 13px;
  }
  .market-status {
    left: 17px;
  }
  .market-category {
    font-size: 9px;
    margin-bottom: 13px;
  }
  .market-illustration > svg {
    top: 62px;
    width: 165px;
  }
}
/* All categories stay visible as compact rows on a phone or folded screen. */
#demo-gallery:not(.is-accordion) button.market-mobile-toggle {
  display: none;
}
.demo-gallery.is-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px 0;
  margin: 0;
  overflow: visible;
  scroll-snap-type: none;
}
.demo-gallery.is-accordion .market-card {
  flex: none;
  width: 100%;
  height: 72px;
  border-radius: 18px;
  transition: height 350ms var(--gallery-ease);
}
.demo-gallery.is-accordion .market-card.is-active {
  height: 455px;
}
.demo-gallery.is-accordion .market-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 72px;
  z-index: -1;
  background: #0b1728b8;
  border-bottom: 1px solid #c4d8f51a;
}
.demo-gallery.is-accordion .market-title {
  opacity: 1;
  top: 36px;
  bottom: auto;
  left: 17px;
  right: 110px;
  transform: translateY(-50%);
  font-size: 17px;
  line-height: 1.15;
  transition: none;
}
.demo-gallery.is-accordion .market-title span {
  display: inline;
}
.demo-gallery.is-accordion .market-title span + span::before {
  content: " ";
}
.demo-gallery.is-accordion .market-status {
  left: auto;
  right: 38px;
  top: 25px;
  font-size: 9px;
  padding: 5px 8px;
}
.demo-gallery.is-accordion .market-details {
  left: 24px;
  right: 24px;
  bottom: 24px;
  width: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 120ms ease,
    transform 250ms ease,
    visibility 0s 120ms;
}
.demo-gallery.is-accordion .market-card.is-active .market-details {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 150ms, 100ms, 0ms;
}
.demo-gallery.is-accordion .market-category {
  display: none;
}
.demo-gallery.is-accordion .market-number {
  display: none;
}
.demo-gallery.is-accordion .market-card .market-action {
  visibility: hidden;
}
#demo-gallery.is-accordion button.market-select {
  display: block;
  height: 72px;
  inset: 0 0 auto;
  border-radius: 17px;
}
#demo-gallery.is-accordion button.market-select::after {
  content: "+";
  position: absolute;
  top: 25px;
  right: 15px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: #c9dcf7;
  transition: transform 250ms var(--gallery-ease);
}
#demo-gallery.is-accordion button.market-select[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
#demo-gallery.is-accordion .market-launch {
  inset: auto 24px 19px;
  width: auto;
  height: 40px;
  border-radius: 8px;
  color: #fff;
}
#demo-gallery.is-accordion .market-launch-label {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  margin: 0;
  clip: auto;
  white-space: normal;
  overflow: visible;
  font-size: 14px;
  font-weight: 600;
}
#demo-gallery .market-launch[hidden] {
  display: none;
}
.demo-gallery.is-accordion .market-illustration > svg {
  top: 10px;
  width: 90px;
  height: 70px;
  opacity: 0.35;
  transition: opacity 200ms ease;
}
.demo-gallery.is-accordion .market-card.is-active .market-illustration > svg {
  top: 85px;
  width: 145px;
  height: 125px;
  opacity: 0.7;
}
@media (min-width: 700px) {
  .demo-gallery.is-accordion .market-card.is-active {
    height: 405px;
  }
  .demo-gallery.is-accordion .market-title {
    font-size: 20px;
  }
  .demo-gallery.is-accordion .market-card.is-active .market-art {
    inset: 72px auto 0 0;
    width: 45%;
  }
  .demo-gallery.is-accordion .market-card.is-active .market-shade {
    background: linear-gradient(90deg, #07101c0a 30%, #07101ced 47%, #07101cf7);
  }
  .demo-gallery.is-accordion .market-details {
    left: calc(45% + 24px);
    width: auto;
    max-width: 460px;
  }
  #demo-gallery.is-accordion .market-launch {
    left: calc(45% + 24px);
  }
  .demo-gallery.is-accordion .market-card.is-active .market-illustration > svg {
    top: 75px;
    width: 175px;
    height: 155px;
  }
}
@media (max-width: 360px) {
  .demo-gallery.is-accordion .market-title span {
    display: block;
  }
  .demo-gallery.is-accordion .market-title span + span::before {
    content: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #demo-gallery *,
  #demo-gallery *::before,
  #demo-gallery *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Supplied photos carry the category story even in a condensed card. */
.market-professional .market-photo img {
  object-position: 42% 20%;
}
.market-care .market-photo img {
  object-position: 64% 28%;
}
.market-fitness .market-photo img {
  object-position: 40% 20%;
}
.market-learning .market-photo img {
  object-position: 44% 20%;
}
