/* ============================================================================
   Shared product TECHNICAL DATA / datasheet sheet
   Source of truth: lvct-hvct-meter.php layout (lvct-sheet*)
   ============================================================================ */

.lvct-datasheet {
  padding: clamp(3.25rem, 6.5vw, 5.25rem) 0;
}

.lvct-section-head {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 40rem;
}

.lvct-section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.lvct-section-head--center .section-label {
  justify-content: center;
}

.lvct-section-head h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.2;
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--clr-black);
}

.lvct-section-head p {
  margin: 0.85rem 0 0;
  font-size: clamp(0.98rem, 0.3vw + 0.92rem, 1.06rem);
  line-height: 1.7;
  color: var(--clr-text-body);
}

.lvct-section-head--center p {
  margin-left: auto;
  margin-right: auto;
}

.lvct-sheet {
  border: 1px solid var(--clr-border);
  background: var(--clr-white);
  overflow: hidden;
}

.lvct-sheet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-bg-alt, #F9F9F9);
}

.lvct-sheet-title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--clr-black);
}

.lvct-sheet-sub {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--clr-text-body);
}

.lvct-sheet-ref {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  border: 1px solid var(--clr-primary-border);
  background: var(--clr-primary-bg);
  padding: 0.45rem 0.75rem;
}

.lvct-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.lvct-sheet-block {
  padding: clamp(1.2rem, 2.2vw, 1.65rem);
  border-right: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.lvct-sheet-block:nth-child(2n) {
  border-right: none;
}

.lvct-sheet-heading {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  font-family: 'Sora', 'Inter', sans-serif;
}

.lvct-spec-rows {
  display: grid;
  gap: 0;
}

.lvct-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--clr-border-light);
  font-size: 0.92rem;
}

.lvct-spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lvct-spec-row span {
  color: var(--clr-text-body);
  flex-shrink: 0;
  max-width: 42%;
}

.lvct-spec-row strong {
  text-align: right;
  color: var(--clr-black);
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1.4;
}

.lvct-sheet-note {
  margin: 0;
  padding: 1rem 1.35rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--clr-text-light);
  border-top: 1px solid var(--clr-border);
  background: var(--clr-bg-alt, #F9F9F9);
}

@media (max-width: 900px) {
  .lvct-sheet-grid {
    grid-template-columns: 1fr;
  }

  .lvct-sheet-block {
    border-right: none;
  }

  .lvct-sheet-block:last-child {
    border-bottom: none;
  }

  .lvct-spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .lvct-spec-row span {
    max-width: none;
  }

  .lvct-spec-row strong {
    text-align: left;
  }
}

/* ============================================================================
   Smart meter spec module switcher (Technical Data — RF Mesh / Cellular)
   ============================================================================ */

.spec-module-switcher {
  max-width: 36rem;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

.spec-module-switcher__label {
  margin: 0 0 0.85rem;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary);
}

.spec-module-switcher__track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.4rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.06),
    0 8px 28px rgba(15, 23, 42, 0.08);
}

.spec-module-switcher__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.spec-module-switcher__tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.65);
  color: #0f172a;
}

.spec-module-switcher__tab:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

.spec-module-switcher__tab.is-active {
  background: #ffffff;
  border-color: var(--clr-primary);
  color: #0f172a;
  box-shadow:
    0 4px 16px rgba(229, 26, 26, 0.14),
    0 2px 6px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.spec-module-switcher__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  transition: background 0.22s ease, color 0.22s ease;
}

.spec-module-switcher__tab.is-active .spec-module-switcher__icon {
  background: var(--clr-primary-bg, rgba(229, 26, 26, 0.1));
  color: var(--clr-primary);
}

.spec-module-switcher__title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.12rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.spec-module-switcher__hint {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #64748b;
  line-height: 1.3;
}

.spec-module-switcher__tab.is-active .spec-module-switcher__hint {
  color: var(--clr-primary);
}

.lvct-datasheet--smart-meter .lvct-section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
}

.lvct-datasheet--smart-meter .spec-variant-panel.is-active .lvct-sheet {
  animation: specPanelIn 0.28s ease;
}

.spec-variant-panel[hidden] {
  display: none !important;
}

@keyframes specPanelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .spec-module-switcher__track {
    grid-template-columns: 1fr;
  }

  .spec-module-switcher__tab {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 3.75rem;
    padding: 0.85rem 1.1rem;
    text-align: left;
  }

  .spec-module-switcher__icon {
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lvct-datasheet--smart-meter .spec-variant-panel.is-active .lvct-sheet {
    animation: none;
  }

  .spec-module-switcher__tab.is-active {
    transform: none;
  }
}
