/* block.css — Tech Card block
 * Sourced from products.css (Figma node: 1009:1103)
 */

/* ========== wrappers ========== */
.mign-block-section {
  width: 100%;
}

.mign-block-container {
  width: 100%;
}

/* ========== tech-card ========== */
.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-surface-card);
  border-radius: var(--radius-lg);
  padding: 120px 30px;
}

.tech-card__heading {
  color: var(--color-text-primary, #1a171c);
  font-family: var(--font-family-sans-en, "DIN 2014");
  font-size: var(--font-size-4xl, 40px);
  font-style: normal;
  font-weight: var(--font-weight-light, 300);
  line-height: 130%; /* 52px */
  letter-spacing: var(--letter-spacing-normal, 0);
  text-align: left;
  width: 100%;
  margin: 0;
}

.tech-card__lead {
  color: var(--color-warm-950, #1a171c);
  font-family: var(--font-family-sans-jp, "Ryo Gothic PlusN");
  font-size: var(--font-size-xl, 20px);
  font-style: normal;
  font-weight: var(--font-weight-serif-jp-light, 300);
  line-height: 200%; /* 40px */
  letter-spacing: var(--letter-spacing-normal, 0);
  margin-top: 48px;
  margin-bottom: 48px;
}

.tech-card__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ========== tech-row ========== */
.tech-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 24px 0;
}

.tech-row + .tech-row {
  border-top: 1px solid var(--color-border-default);
}

.tech-row__num {
  flex: 0 0 80px;
  color: var(--color-text-secondary, #5b575c);
  font-family: var(--font-family-sans-en, "DIN 2014");
  font-size: var(--font-size-2xl, 24px);
  font-style: normal;
  font-weight: var(--font-weight-light, 300);
  line-height: 130%; /* 31.2px */
  letter-spacing: var(--letter-spacing-normal, 0);
}

.tech-row__name {
  flex: 0 0 360px;
  color: var(--color-text-primary, #1a171c);
  font-family: var(--font-family-sans-en, "DIN 2014");
  font-size: var(--font-size-2xl, 24px);
  font-style: normal;
  font-weight: var(--font-weight-light, 300);
  line-height: 130%; /* 31.2px */
  letter-spacing: var(--letter-spacing-normal, 0);
  margin: 0;
}

.tech-row__desc {
  flex: 1 1 0;
  min-width: 0;
  color: var(--color-text-secondary, #5b575c);
  font-family: var(--font-family-sans-jp, "Ryo Gothic PlusN");
  font-size: var(--font-size-base, 16px);
  font-style: normal;
  font-weight: var(--font-weight-serif-jp-light, 300);
  line-height: 200%; /* 32px */
  letter-spacing: var(--letter-spacing-normal, 0);
  margin: 0;
}

/* ========== editor helpers ========== */
.tech-row--edit {
  flex-direction: column;
  gap: 8px;
}

.tech-row__fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed #ccc;
  border-radius: 4px;
  padding: 12px;
}

.tech-row__add {
  padding: 16px 0;
}

/* ========== responsive (mobile ≤ 768px) ========== */
@media (max-width: 768px) {
  .tech-card {
    padding: 30px;
  }

  .tech-card__heading {
    font-size: var(--font-size-3xl);
  }

  .tech-card__lead {
    margin-top: 32px;
    margin-bottom: 32px;
    font-size: var(--font-size-base);
  }

  .tech-row {
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
  }

  .tech-row__num {
    flex: 1 1 auto;
    font-size: var(--font-size-xl);
  }

  .tech-row__name {
    flex: 1 1 auto;
    font-size: var(--font-size-xl);
  }
}
