/* ═══════════════════════════════════════════════════════
   NM-TECH-DETAIL — page-specific styles
═══════════════════════════════════════════════════════ */

.nm-tech-detail {
  padding: 82px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--b-sub);
}

.nm-tech-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.nm-tech-detail-grid.is-full {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
}

.nm-tech-detail-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(26, 110, 255, 0.09);
  border: 1px solid var(--b-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 18px;
}

.nm-tech-detail-heading {
  font-family: var(--fd);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.nm-tech-detail-lead {
  font-size: 16px;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 22px;
}

.nm-tech-detail-body {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.8;
}

.nm-tech-detail-body p {
  margin-bottom: 14px;
}

.nm-tech-detail-body p:last-child {
  margin-bottom: 0;
}

.nm-tech-detail-body h2,
.nm-tech-detail-body h3,
.nm-tech-detail-body h4 {
  font-family: var(--fd);
  color: #fff;
  font-weight: 700;
  margin: 24px 0 12px;
  line-height: 1.3;
}

.nm-tech-detail-body h2 { font-size: 22px; }
.nm-tech-detail-body h3 { font-size: 18px; }
.nm-tech-detail-body h4 { font-size: 16px; }

.nm-tech-detail-body ul,
.nm-tech-detail-body ol {
  margin: 0 0 16px 18px;
  padding: 0;
}

.nm-tech-detail-body li {
  margin-bottom: 8px;
}

.nm-tech-detail-body a {
  color: var(--blue-l);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nm-tech-detail-body a:hover {
  color: #fff;
}

.nm-tech-detail-body strong {
  color: #fff;
  font-weight: 600;
}

.nm-tech-detail-visual {
  position: relative;
}

.nm-tech-detail-img {
  width: 100%;
  border-radius: var(--rl);
  border: 1px solid var(--b-sub);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), 0 0 36px rgba(26, 110, 255, 0.08);
  object-fit: cover;
}

.nm-tech-detail-visual::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--rl);
  background: linear-gradient(160deg, rgba(26, 110, 255, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

/* Related products */
.nm-tech-products {
  padding: 0 0 82px;
  background: var(--bg-1);
}

.nm-tech-products-hdr {
  margin-bottom: 34px;
}

.nm-tech-products-hdr .nm-sec-title {
  font-family: var(--fd);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: #fff;
}

.nm-tech-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.nm-tech-product-card {
  background: var(--bg-2);
  border: 1px solid var(--b-sub);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
}

.nm-tech-product-card:hover {
  background: var(--bg-2h);
  border-color: var(--b-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 18px rgba(26, 110, 255, 0.09);
}

.nm-tech-product-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--b-sub);
}

.nm-tech-product-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nm-tech-product-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.nm-tech-product-lead {
  font-size: 12px;
  color: var(--blue-l);
  margin-bottom: 10px;
  line-height: 1.5;
}

.nm-tech-product-desc {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.nm-tech-product-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  transition: var(--ease);
  margin-top: auto;
}

.nm-tech-product-link:hover {
  gap: 10px;
  color: var(--blue-l);
}

.nm-tech-product-link i {
  font-size: 10px;
}

@media (max-width: 992px) {
  .nm-tech-detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .nm-tech-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nm-tech-detail,
  .nm-tech-products {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .nm-tech-products-grid {
    grid-template-columns: 1fr;
  }
}
