/* Resource cards keep the shared horizontal rail and product dimensions. */
.flow-products--editorial.flow-products--resources {
  --color-heading-reveal: var(--color-accent);
  --products-inline: var(--page-gutter);
  height: auto;
  min-height: 0;
  padding-block: 180px;
}
.flow-products--resources .section-intro--products {
  flex: none;
  padding-bottom: clamp(24px, 4svh, 44px);
}
.flow-products--resources .flow-products__rail {
  flex: none;
  min-height: 0;
  /* The gutter travels with the content; clipping stays at the viewport edge. */
  width: 100%;
  margin-left: 0;
  padding-inline: var(--atomic-content-start);
  scroll-padding-inline: var(--atomic-content-start);
}
.flow-products--resources .flow-products__rail:not(.is-dragging) { cursor: auto; }
.flow-products--resources .flow-product__visual { cursor: grab; }
.flow-products--resources .is-dragging .flow-product__visual { cursor: grabbing; }

.flow-products--editorial .flow-product.flow-product--resource {
  --heading-on-surface: var(--color-white);
  --text-on-surface: var(--color-on-dark-muted);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  overflow: visible;
  color: var(--color-white);
  background: transparent;
  border-radius: 0;
  text-decoration: none;
}

.flow-product--resource .flow-product__visual {
  --product-visual-height: clamp(320px, 34vw, 480px);
  position: relative;
  display: block;
  flex: none;
  height: var(--product-visual-height);
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-product-media);
  background: var(--color-product-media);
  transition: background-color 350ms ease;
}

.flow-product--resource .flow-product__visual::before {
  content: '';
  position: absolute;
  left: 32%;
  bottom: 27%;
  width: 36%;
  height: 4%;
  background: var(--color-product-shadow);
  border-radius: 50%;
  filter: blur(14px);
  transition: background-color 350ms ease;
}

.flow-products--editorial .flow-product--resource .flow-product__visual img {
  position: absolute;
  z-index: 2;
  inset: 27.5% 26.6%;
  width: 46.8%;
  height: 45%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 16px 14px var(--color-product-shadow));
  transform: none;
  transition: filter 350ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.flow-products--editorial .flow-product--resource .flow-product__star {
  top: 22px;
  right: 22px;
  left: auto;
  width: 24px;
  height: 24px;
  fill: var(--color-heading);
  transform: none;
  transition: fill 250ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.flow-product--resource .flow-product__media-title {
  position: absolute;
  z-index: 1;
  /* Shared card-top alignment matches the former Filler / dolgu title. */
  top: calc(30.38% - 1.13em);
  left: 8%;
  width: 84%;
  color: var(--color-heading);
  font-size: var(--fs-product-title);
  font-weight: var(--fw-label);
  line-height: var(--lh-product-title);
  letter-spacing: var(--ls-product-title);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 300ms ease, transform 450ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.flow-product--resource .flow-product__resource-row {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 22px;
}

#ana-icerik .flow-products--editorial .flow-product--resource .flow-product__name {
  --fs-h3: var(--fs-h6);
  --lh-h3: var(--lh-h6);
  --ls-h3: var(--ls-h6);
  min-width: 0;
  margin: 0;
  color: var(--color-white);
  text-align: left;
  white-space: normal;
  transition: color 250ms ease;
}

.flow-product--resource .flow-product__datasheet {
  flex: none;
  padding: 5px 7px;
  border: 1px solid var(--color-on-dark-muted);
  border-radius: var(--radius-product-media);
  color: var(--color-on-dark-muted);
  font-size: var(--fs-subline);
  font-weight: var(--fw-navigation);
  line-height: var(--lh-ui);
  letter-spacing: 0;
  transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
}

.flow-product--resource .flow-product__download {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-product--resource .flow-product__download-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 7px;
  color: var(--color-on-dark-muted);
  transition: color 250ms ease;
}
.flow-product--resource:is(:hover, :focus-within) .flow-product__download-link {
  color: var(--color-accent);
}

.flow-product--resource .flow-product__divider {
  position: relative;
  display: block;
  flex: none;
  height: 1px;
  margin-block: 18px;
  background: var(--color-header-separator);
  overflow: hidden;
}
.flow-product--resource .flow-product__divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms cubic-bezier(.22, 1, .36, 1);
}
.flow-product--resource:is(:hover, :focus-within) .flow-product__divider::after {
  transform: scaleX(1);
}
.flow-product--resource .flow-product__description {
  --fs-body: var(--fs-product-description);
  --fw-body: var(--fw-product-description);
  flex: none;
  max-width: none;
  margin: 0;
}

.flow-products--editorial .flow-product--resource:is(:hover, :focus-within) .flow-product__visual {
  background: var(--color-product-media-hover);
}
.flow-products--editorial .flow-product--resource:is(:hover, :focus-within) .flow-product__visual img {
  transform: none;
  filter: drop-shadow(0 16px 14px var(--color-product-shadow-hover));
}
.flow-product--resource:is(:hover, :focus-within) .flow-product__visual::before {
  background: var(--color-product-shadow-hover);
}
.flow-products--editorial .flow-product--resource:is(:hover, :focus-within) .flow-product__star {
  fill: var(--color-accent);
  transform: rotate(180deg);
}
.flow-product--resource:is(:hover, :focus-within) .flow-product__media-title {
  opacity: 1;
  transform: none;
}
#ana-icerik .flow-products--editorial .flow-product--resource:is(:hover, :focus-within) .flow-product__name {
  color: var(--color-accent);
}
.flow-product--resource:is(:hover, :focus-within) .flow-product__datasheet {
  color: var(--color-dark);
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.flow-products--resources .flow-products__controls .button:is(:hover, :focus-visible):not(:disabled) {
  color: var(--color-dark);
  background: var(--color-accent);
}

@media (min-width: 1024px) {
  .flow-products--editorial.flow-products--resources {
    /* Reserve one line for the longest description as its font scales from 14 to 15px. */
    --atomic-card-width: max(clamp(390px, 26vw, 500px), calc(var(--fs-product-description) * 27.5));
  }
}

@media (min-width: 768px) {
  .flow-product--resource .flow-product__description { white-space: nowrap; }
}

@media (max-width: 600px) {
  .flow-products--resources .products-heading__main > .flow-products__all { margin-top: 14px; }
  .flow-product--resource .flow-product__resource-row { gap: 8px; margin-top: 16px; }
  .flow-product--resource .flow-product__divider { margin-block: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-products--editorial .flow-product--resource:is(:hover, :focus-within) :is(.flow-product__visual img, .flow-product__star) { transform: none; }
  .flow-product--resource .flow-product__divider::after { transition: none; }
}
