/* ============================================================
   NOVAXYL KPI article
   Responsive figures and KPI definition components only.
   Shared article typography and spacing remain in blog-post.css.
   ============================================================ */

.kpi-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tighter long-form reading rhythm for this article */
.kpi-post .post-content > p {
  margin-bottom: 1.15rem;
}

.kpi-post .post-content > .lead {
  margin-bottom: 1.75rem;
}

/* KPI definitions */
.kpi-post .post-content .kpi-definition-list {
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
}

.kpi-post .post-content .kpi-secondary-list {
  margin: 1.5rem 0 2.5rem;
}

.kpi-post .post-content .kpi-definition-item {
  margin: 0;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(176, 146, 86, 0.18);
}

.kpi-post .post-content .kpi-definition-item:last-child {
  border-bottom: 1px solid rgba(176, 146, 86, 0.18);
}

.kpi-post .post-content .kpi-definition-item h3 {
  margin: 0 0 1rem;
}

.kpi-definition {
  margin: 0;
}

.kpi-definition > div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 0.7rem;
}

.kpi-definition > div:last-child {
  margin-bottom: 0;
}

.kpi-definition dt {
  color: var(--blue-light);
  font-weight: 600;
}

.kpi-definition dd {
  min-width: 0;
  color: var(--text-primary);
}

/* Shared figure shell */
.kpi-figure {
  margin: 2rem 0 2.5rem;
}

.kpi-figure figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* Figure 1: five stages of AI value */
.kpi-governance-band {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(176, 146, 86, 0.3);
  border-radius: 2px;
  background: rgba(176, 146, 86, 0.08);
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.kpi-governance-band strong {
  color: var(--gold);
  font-weight: 600;
}

.kpi-post .post-content .kpi-stage-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kpi-post .post-content .kpi-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 18rem;
  margin: 0;
  padding: 1.1rem 0.9rem;
  border: 1px solid rgba(176, 146, 86, 0.2);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  background: var(--dark-secondary);
}

.kpi-post .post-content .kpi-stage:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: -0.69rem;
  z-index: 1;
  width: 0.55rem;
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.65;
  transform: translateY(-50%);
}

.kpi-stage-num {
  margin-bottom: 1rem;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.45;
}

.kpi-stage-name {
  min-height: 3.1rem;
  color: var(--gold);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.kpi-stage-action {
  margin: 0.9rem 0;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(176, 146, 86, 0.15);
  color: var(--blue-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kpi-post .post-content .kpi-stage-question {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.55;
}

.kpi-post .post-content .kpi-stage-metric {
  margin: auto 0 0;
  padding: 0.75rem;
  border-radius: 2px;
  background: rgba(176, 146, 86, 0.1);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Figure 2: four diagnostic patterns */
.kpi-pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.kpi-pattern {
  min-width: 0;
  padding: 1.6rem;
  border: 1px solid rgba(176, 146, 86, 0.22);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  background: var(--dark-secondary);
}

.kpi-post .post-content .kpi-pattern-signal {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.kpi-post .post-content .kpi-pattern h3 {
  margin: 0 0 0.65rem;
  color: var(--gold-light);
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.kpi-post .post-content .kpi-pattern > p:last-child {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

.kpi-pattern-success {
  margin-top: 1rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(176, 146, 86, 0.35);
  border-left: 4px solid var(--gold);
  border-radius: 2px;
  background: rgba(176, 146, 86, 0.1);
}

.kpi-post .post-content .kpi-pattern-success .kpi-pattern-signal {
  margin-bottom: 0.35rem;
}

.kpi-post .post-content .kpi-pattern-success > p:last-child {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.kpi-post .post-content .kpi-pattern-success strong {
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 900px) {
  .kpi-post .post-content .kpi-stage-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-post .post-content .kpi-stage {
    min-height: 15.5rem;
  }

  .kpi-post .post-content .kpi-stage:not(:last-child)::after {
    display: none;
  }

  .kpi-post .post-content .kpi-stage:last-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc(50% - 0.4rem);
    min-height: 0;
    justify-self: center;
  }

  .kpi-stage-name {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .kpi-pattern-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .kpi-post .post-content > p {
    margin-bottom: 1rem;
  }

  .kpi-post .post-content > .lead {
    margin-bottom: 1.5rem;
  }

  .kpi-definition > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    margin-bottom: 0.9rem;
  }

  .kpi-post .post-content .kpi-stage-flow {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .kpi-post .post-content .kpi-stage {
    min-height: 0;
    padding: 1.1rem;
  }

  .kpi-post .post-content .kpi-stage:last-child {
    grid-column: auto;
    max-width: none;
  }

  .kpi-post .post-content .kpi-stage:not(:last-child)::after {
    content: "↓";
    display: block;
    top: auto;
    right: 50%;
    bottom: -1.05rem;
    width: auto;
    font-size: 1rem;
    transform: translateX(50%);
  }

  .kpi-stage-num {
    margin-bottom: 0.65rem;
  }

  .kpi-stage-action {
    margin: 0.65rem 0;
  }

  .kpi-post .post-content .kpi-stage-question {
    font-size: 0.88rem;
  }

  .kpi-post .post-content .kpi-stage-metric {
    margin-top: 0.2rem;
    font-size: 0.84rem;
  }

  .kpi-governance-band {
    font-size: 0.78rem;
  }

  .kpi-pattern {
    padding: 1.25rem;
  }

  .kpi-pattern-success {
    padding: 1rem 1.1rem;
  }
}
