/* 3D Mapping Strength — scoped under .mapping-str-root */

.mapping-str-root {
  --str-accent: #e60012;
  --str-text: #111111;
  --str-muted: #555555;
  --str-body-bg: transparent;
  --str-border: #e0e0e0;
  --str-white: #ffffff;
  --str-card-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --str-radius: 12px;
  --str-gap: 17px;
  --str-dot-size: 10px;
  --str-dot-gap: 12px;
  --str-media-width: 58%;
  --str-card-height: 257px;
  --str-max-width: none;
  --str-preview-padding-y: 0;
  --str-preview-padding-x: 0;
  --str-number-size: 1.1rem;
  --str-title-size: 1.3rem;
  --str-desc-size: 1rem;
  --str-fade-distance: 1.5rem;
  --str-fade-duration: 0.6s;
  --str-fade-stagger: 0.12s;

  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--str-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.mapping-str-root *,
.mapping-str-root *::before,
.mapping-str-root *::after {
  box-sizing: border-box;
}

.mapping-str-root h3,
.mapping-str-root p {
  margin: 0;
  padding: 0;
}

.mapping-str-root img {
  display: block;
  max-width: 100%;
  border: 0;
}

.mapping-str-root.mapping-str-preview {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: var(--str-preview-padding-y) var(--str-preview-padding-x);
  background: transparent;
}

.mapping-str-root:not(.mapping-str-preview) {
  width: 100%;
  background: transparent;
}

.mapping-str-root .mapping-str-inner {
  width: 100%;
  max-width: var(--str-max-width);
  padding: 1px 0;
}

.mapping-str-root .mapping-str-list {
  display: flex;
  flex-direction: column;
  gap: var(--str-gap);
}

.mapping-str-root .mapping-str-card {
  display: flex;
  align-items: center;
  gap: var(--str-dot-gap);
  opacity: 0;
  transform: translateY(var(--str-fade-distance));
  transition:
    opacity var(--str-fade-duration) ease,
    transform var(--str-fade-duration) ease;
  transition-delay: var(--str-fade-delay, 0s);
  will-change: opacity, transform;
}

.mapping-str-root .mapping-str-card.mapping-str-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.mapping-str-root .mapping-str-card:nth-child(1) { --str-fade-delay: calc(var(--str-fade-stagger) * 0); }
.mapping-str-root .mapping-str-card:nth-child(2) { --str-fade-delay: calc(var(--str-fade-stagger) * 1); }
.mapping-str-root .mapping-str-card:nth-child(3) { --str-fade-delay: calc(var(--str-fade-stagger) * 2); }
.mapping-str-root .mapping-str-card:nth-child(4) { --str-fade-delay: calc(var(--str-fade-stagger) * 3); }

@media (prefers-reduced-motion: reduce) {
  .mapping-str-root .mapping-str-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.mapping-str-compare-mode .mapping-str-root .mapping-str-card {
  opacity: 1;
  transform: none;
  transition: none;
}

.mapping-str-root .mapping-str-card__dot {
  flex-shrink: 0;
  width: var(--str-dot-size);
  height: var(--str-dot-size);
  background: var(--str-accent);
  border-radius: 50%;
}

.mapping-str-root .mapping-str-card__shell {
  display: flex;
  flex: 1;
  min-width: 0;
  height: var(--str-card-height);
  overflow: hidden;
  background: var(--str-white);
  border: 1px solid var(--str-border);
  border-radius: var(--str-radius);
  box-shadow: var(--str-card-shadow);
}

.mapping-str-root .mapping-str-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 30px 28px 30px 32px;
  background: var(--str-body-bg);
}

.mapping-str-root .mapping-str-card__number {
  font-size: var(--str-number-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--str-accent);
}

.mapping-str-root .mapping-str-card__title {
  margin-top: 0.5rem;
  font-size: var(--str-title-size);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--str-text);
}

.mapping-str-root .mapping-str-card__line {
  display: block;
  width: 28px;
  height: 2px;
  margin: 10px 0 12px;
  background: var(--str-accent);
  border-radius: 1px;
}

.mapping-str-root .mapping-str-card__desc {
  font-size: var(--str-desc-size);
  font-weight: 400;
  line-height: 1.7;
  color: var(--str-muted);
  word-break: keep-all;
}

.mapping-str-root .mapping-str-card__media {
  position: relative;
  flex-shrink: 0;
  width: var(--str-media-width);
  overflow: hidden;
  border-radius: 0 var(--str-radius) var(--str-radius) 0;
}

.mapping-str-root .mapping-str-card__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: fill;
  object-position: center center;
}

.mapping-str-root:not(.mapping-str-preview) .mapping-str-card__media img,
.mapping-str-root.mapping-str-preview .mapping-str-card__media img[src$=".webp"] {
  min-height: var(--str-card-height);
  object-fit: cover;
}

.mapping-str-root .mapping-str-card:nth-child(1) .mapping-str-card__media img[src$=".webp"] {
  object-position: 55% center;
}

.mapping-str-root .mapping-str-card:nth-child(2) .mapping-str-card__media img[src$=".webp"] {
  object-position: center 40%;
}

.mapping-str-root .mapping-str-card:nth-child(3) .mapping-str-card__media img[src$=".webp"] {
  object-position: center 45%;
}

.mapping-str-root .mapping-str-card:nth-child(4) .mapping-str-card__media img[src$=".webp"] {
  object-position: center center;
}

@media (max-width: 768px) {
  .mapping-str-root {
    --str-number-size: 0.8rem;
    --str-title-size: 1rem;
    --str-desc-size: 0.75rem;
    --str-card-height: auto;
    --str-media-width: 100%;
    --str-dot-gap: 10px;
  }

  .mapping-str-root .mapping-str-card__shell {
    flex-direction: column;
    height: auto;
  }

  .mapping-str-root .mapping-str-card__body {
    padding: 20px 22px;
  }

  .mapping-str-root .mapping-str-card__media {
    width: 100%;
    border-radius: 0 0 var(--str-radius) var(--str-radius);
  }

  .mapping-str-root .mapping-str-card__media img {
    min-height: 180px;
    object-fit: cover;
  }
}
