/* =========================================================
   Home Insights + Dave Ulrich Portfolio (HC Insight tab)
   Clean, simple, modern redesign
   ========================================================= */

.people-insight-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #cfe7eb;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(7, 140, 161, 0.12), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfc 100%);
  box-shadow: 0 14px 32px rgba(31, 50, 69, 0.06);
}

.insight-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.insight-header h2 {
  margin: 4px 0 7px;
  color: #17344e;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.insight-header p {
  margin: 0;
  max-width: 770px;
  color: #65778a;
  font-size: 0.79rem;
  line-height: 1.55;
}

.insight-open-button {
  min-width: 176px;
  border: 1px solid #cce6e9;
  border-radius: 12px;
  padding: 10px 13px;
  background: #edf8f9;
  color: #0b7182;
  text-align: left;
  cursor: not-allowed;
  opacity: 0.88;
}

.insight-open-button span,
.insight-open-button small {
  display: block;
}

.insight-open-button span {
  font-size: 0.73rem;
  font-weight: 800;
}

.insight-open-button small {
  margin-top: 3px;
  color: #7e929d;
  font-size: 0.62rem;
}

.insight-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.insight-summary-item {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  padding: 11px 13px;
  border: 1px solid #e2eaee;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.insight-summary-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #8fa1ae;
}

.insight-summary-item.attention::before { background: #d97745; }
.insight-summary-item.improving::before { background: #23946f; }
.insight-summary-item.investigate::before { background: #6d77a8; }
.insight-summary-item.actioning::before { background: #087d91; }

.insight-summary-item span,
.insight-summary-item small {
  display: block;
}

.insight-summary-item span {
  color: #65788b;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.insight-summary-item strong {
  display: block;
  margin: 2px 0 1px;
  color: #15354e;
  font-size: 1.18rem;
}

.insight-summary-item small {
  color: #8b99a6;
  font-size: 0.61rem;
}

.insight-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(255px, 0.55fr);
  gap: 12px;
  margin-top: 12px;
}

.insight-feed,
.analytics-loop {
  border: 1px solid #e3eaee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.insight-feed {
  padding: 12px;
}

.insight-feed-title,
.analytics-loop-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 2px 9px;
}

.insight-feed-title strong,
.analytics-loop-title strong {
  color: #1b3b54;
  font-size: 0.77rem;
}

.insight-feed-title span,
.analytics-loop-title span {
  color: #93a0ad;
  font-size: 0.6rem;
}

.insight-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 9px;
  border-top: 1px solid #edf1f3;
}

.insight-signal {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.signal-attention {
  background: #fff1e9;
  color: #a85734;
}

.signal-positive {
  background: #e9f7f1;
  color: #257e62;
}

.signal-question {
  background: #eef0f8;
  color: #626b9b;
}

.insight-domain {
  display: block;
  margin-bottom: 2px;
  color: #087d91;
  font-size: 0.57rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.insight-row strong {
  display: block;
  color: #1c374f;
  font-size: 0.72rem;
  line-height: 1.3;
}

.insight-row p {
  margin: 3px 0 0;
  color: #81909f;
  font-size: 0.61rem;
  line-height: 1.4;
}

.insight-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f6f8;
  color: #64788b;
  font-size: 0.57rem;
  font-weight: 800;
}

.analytics-loop {
  padding: 12px;
}

.analytics-loop-title {
  display: block;
  padding-bottom: 8px;
}

.analytics-loop-title strong,
.analytics-loop-title span {
  display: block;
}

.analytics-loop-title span {
  margin-top: 2px;
}

.loop-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 10px;
  background: #f8fafb;
  border: 1px solid #edf1f3;
}

.loop-step > span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e8f6f8;
  color: #087d91;
  font-size: 0.57rem;
  font-weight: 900;
}

.loop-step strong,
.loop-step small {
  display: block;
}

.loop-step strong {
  color: #1c3b53;
  font-size: 0.68rem;
}

.loop-step small {
  margin-top: 1px;
  color: #8795a3;
  font-size: 0.56rem;
  line-height: 1.25;
}

.loop-step.outcome {
  background: #edf8f5;
  border-color: #d4ece3;
}

.analytics-loop > i {
  display: block;
  margin: 1px 0;
  color: #9bacb8;
  font-size: 0.7rem;
  font-style: normal;
  text-align: center;
}

.domain-card-analytics {
  border-color: #b7dce3;
  background:
    radial-gradient(circle at 88% 0%, rgba(26, 127, 152, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(235, 248, 250, 0.86), rgba(255, 255, 255, 0.98) 48%);
}

.domain-status.is-concept {
  background: #e3f4f7;
  color: #08798c;
  border-color: #c3e4ea;
}

.analytics-layer-badge {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf7f8, #e6f3f8);
  color: #167789;
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid #d2e9ee;
}

.ulrich-full {
  margin-top: 18px;
}

@media (max-width: 1050px) {
  .insight-body-grid {
    grid-template-columns: 1fr;
  }

  .analytics-loop {
    display: grid;
    grid-template-columns: repeat(9, auto);
    gap: 5px;
    align-items: center;
  }

  .analytics-loop-title {
    grid-column: 1 / -1;
  }

  .analytics-loop > i {
    transform: rotate(-90deg);
  }
}

@media (max-width: 900px) {
  .insight-header {
    flex-direction: column;
  }

  .insight-open-button {
    width: 100%;
  }

  .insight-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-loop {
    display: block;
  }

  .analytics-loop > i {
    transform: none;
  }
}

@media (max-width: 620px) {
  .people-insight-card {
    padding: 16px;
  }

  .insight-summary-grid {
    grid-template-columns: 1fr;
  }

  .insight-row {
    grid-template-columns: 31px minmax(0, 1fr);
  }

  .insight-state {
    grid-column: 2;
    justify-self: start;
  }
}

/* Keep domain cards clean: no oversized shadow/watermark label behind content. */
.domain-card::before {
  content: none !important;
}

/* =========================================================
   DAVE ULRICH PORTFOLIO — Clean Modern Redesign
   ========================================================= */

#panelHcInsight .section-heading.compact {
  margin-bottom: 16px;
}

#panelHcInsight .ghost-button {
  display: none;
}

#panelHcInsight .section-heading p {
  max-width: 620px;
  color: #64788a;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* 2×2 clean grid */
#panelHcInsight .ulrich-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Base card */
#panelHcInsight .quadrant {
  --u-color: #07899e;
  --u-soft: #e8f7fa;
  --u-border: #c5e8ee;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
  padding: 18px 18px 16px;
  border: 1px solid var(--u-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--u-color) 8%, transparent), transparent 42%),
    #ffffff;
  box-shadow: 0 6px 20px rgba(20, 45, 65, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#panelHcInsight .quadrant:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 45, 65, 0.08);
}

/* Top row: badge + role name */
#panelHcInsight .quadrant > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--u-soft);
  color: var(--u-color);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

#panelHcInsight .quadrant > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#panelHcInsight .quadrant strong {
  color: #132b42;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

#panelHcInsight .quadrant small {
  color: #64788a;
  font-size: 0.74rem;
  line-height: 1.45;
}

/* Hide the old progress / value block completely for now */
#panelHcInsight .quadrant b {
  display: none;
}

/* Color variants matching classic Ulrich matrix */
#panelHcInsight .quadrant-strategic {
  --u-color: #07899e;
  --u-soft: #e0f5f8;
  --u-border: #b8e4eb;
}

#panelHcInsight .quadrant-change {
  --u-color: #0a9b6e;
  --u-soft: #e0f6ec;
  --u-border: #b5e8d3;
}

#panelHcInsight .quadrant-admin {
  --u-color: #5b4ff0;
  --u-soft: #eceaff;
  --u-border: #d0ccff;
}

#panelHcInsight .quadrant-employee {
  --u-color: #e07a00;
  --u-soft: #fff3e0;
  --u-border: #f2d9a8;
}

/* Bottom note — clean & informative */
#panelHcInsight .ulrich-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f4f8fa;
  border: 1px solid #e2ebf0;
  color: #5f7385;
  font-size: 0.72rem;
  line-height: 1.5;
}

#panelHcInsight .ulrich-note strong {
  color: #1a3a52;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  #panelHcInsight .ulrich-grid {
    grid-template-columns: 1fr;
  }

  #panelHcInsight .quadrant {
    min-height: 0;
  }
}

@media (min-width: 901px) and (max-height: 700px) {
  #panelHcInsight .quadrant {
    min-height: 128px;
    padding: 14px 15px 13px;
    gap: 8px;
  }

  #panelHcInsight .quadrant > span {
    width: 36px;
    height: 36px;
    font-size: 0.74rem;
  }

  #panelHcInsight .quadrant strong {
    font-size: 0.9rem;
  }

  #panelHcInsight .quadrant small {
    font-size: 0.68rem;
  }
}
