/* TK2150 product brochure — self-contained styles (embed + standalone) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.product-brochure {
  margin: 0;
  font-family: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.product-brochure__panels {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.panel {
  width: 100%;
}

.panel__stage {
  position: relative;
  width: 100%;
  background-color: var(--panel-bg, #000);
}

.panel__image {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.panel__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 2vw, 4rem) clamp(1.25rem, 3vw, 2rem) 0;
  pointer-events: none;
}

.panel__copy {
  width: 100%;
  text-align: center;
  color: #fff;
  pointer-events: auto;
}

.panel__heading {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.panel__body {
  margin: 0;
  padding-top: clamp(0.75rem, 2vw, 1.25rem);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: nowrap;
}

/* Panel 1 — hero */
.panel--hero .panel__heading {
  font-size: clamp(1.25rem, 2.8vw, 2.75rem);
  text-wrap: nowrap;
}

/* Panel 3 — IP65 / operating temperature */
.panel--ip65 .panel__heading {
  font-size: clamp(1.125rem, 2.4vw, 2.25rem);
  text-wrap: balance;
  max-width: 90%;
  margin-inline: auto;
}

/* Panel 2 — connectivity */
.panel--connectivity .panel__heading {
  font-size: clamp(1.25rem, 2.6vw, 2.5rem);
}

/* Light-background panels */
.panel--light .panel__copy {
  color: #111;
}

.panel--light .panel__body {
  color: rgba(17, 17, 17, 0.82);
}

/* Port callouts — coordinates are % of panel image (see brochure.html comments) */
.port-callouts {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.port-callout {
  position: absolute;
  left: var(--x);
  top: var(--port-y);
  transform: translateX(-50%);
  width: 0;
  height: calc(var(--label-y) - var(--port-y));
  margin: 0;
}

.port-callout__line {
  position: absolute;
  inset: 0 auto auto 50%;
  width: 2px;
  height: 100%;
  margin: 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f0c06a 0%, #dea850 100%);
  box-shadow: 0 0 8px rgba(222, 168, 80, 0.35);
}

.port-callout__label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0.4em 0 0;
  color: #fff;
  font-size: clamp(0.625rem, 1.05vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.port-callout__sublabel {
  display: block;
  font-size: 0.82em;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.port-callout--stacked .port-callout__label {
  white-space: normal;
}

@media (max-width: 768px) {
  .panel--hero .panel__heading,
  .panel__body {
    text-wrap: balance;
    white-space: normal;
  }

  .port-callout__label {
    font-size: clamp(0.5rem, 2.6vw, 0.6875rem);
    letter-spacing: 0.04em;
  }

  .port-callout__line {
    width: 1.5px;
  }
}

@media (max-width: 480px) {
  .port-callouts {
    transform: scale(0.92);
    transform-origin: center top;
  }
}
