/* Universal Human Index — Application UI Toolkit */

html,
body {
  font-family: var(--font-body);
  color: var(--uhi-green-dark);
  background-color: var(--uhi-light-grey);
  -webkit-font-smoothing: antialiased;
}

.font-heading,
.uhi-heading,
.uhi-stat {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

/* Header & Navigation */
.uhi-header {
  background-color: var(--uhi-green-dark);
  border-bottom: 1px solid rgba(188, 195, 209, 0.18);
  color: var(--uhi-white);
}

.uhi-logo {
  height: 2.35rem;
  width: auto;
  display: block;
}

.uhi-nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--uhi-grey);
  padding: 0.5rem 0.65rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.uhi-nav-link:hover,
.uhi-nav-link.is-active {
  color: var(--uhi-lime);
  background-color: rgba(255, 255, 255, 0.06);
}

/* Brand CTAs (44px accessible touch target) */
.btn {
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 600;
  box-shadow: none !important;
}

.uhi-btn-light {
  background-color: var(--uhi-white);
  color: var(--uhi-green-dark);
  border: 1px solid var(--uhi-white);
}

.uhi-btn-light:hover {
  background-color: var(--uhi-off-white);
  border-color: var(--uhi-off-white);
}

.uhi-btn-outline-dark {
  background-color: transparent;
  color: var(--uhi-white);
  border: 1px solid rgba(188, 195, 209, 0.55);
}

.uhi-btn-outline-dark:hover {
  border-color: var(--uhi-lime);
  color: var(--uhi-lime);
}

/* Eyebrow & Labels (from deck.css) */
.uhi-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--uhi-lime-muted);
}

.uhi-eyebrow--green {
  color: var(--uhi-green);
}

/* Deep Green Hero / Score Banner */
.uhi-hero-panel {
  background-color: var(--uhi-green-dark);
  color: var(--uhi-white);
  border: 1px solid rgba(188, 195, 209, 0.22);
  border-radius: 14px;
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
}

.uhi-score-hero {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--uhi-lime);
  font-variant-numeric: tabular-nums;
}

.uhi-score-denom {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--uhi-slate);
}

/* Insight Box (ported from deck.css) */
.uhi-insight-box {
  background: rgba(11, 81, 61, 0.38);
  border-left: 3px solid var(--uhi-lime);
  border-radius: 0 10px 10px 0;
  padding: 0.95rem 1.15rem;
}

.uhi-insight-box dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--uhi-slate);
}

.uhi-insight-box dd {
  margin: 0.1rem 0 0.55rem;
  font-weight: 600;
  color: var(--uhi-white);
}

.uhi-insight-box dd:last-child {
  margin-bottom: 0;
}

/* Clean Surface Cards */
.uhi-card {
  background-color: var(--uhi-white);
  border: 1px solid var(--uhi-grey);
  border-radius: 12px;
}

.uhi-card--warm {
  background-color: var(--uhi-off-white);
  border: 1px solid var(--uhi-grey);
  border-radius: 12px;
}

.uhi-card--dark {
  background-color: rgba(11, 81, 61, 0.25);
  border: 1px solid rgba(188, 195, 209, 0.22);
  border-radius: 12px;
  color: var(--uhi-white);
}

.uhi-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  background-color: var(--uhi-green);
  color: var(--uhi-lime);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Attribute Progress Bar */
.uhi-bar-track {
  height: 8px;
  border-radius: 9999px;
  background-color: var(--uhi-light-grey);
  overflow: hidden;
}

.uhi-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background-color: var(--uhi-green);
  transition: width 0.25s ease;
}

.uhi-bar-fill--lime {
  background-color: var(--uhi-lime);
}

.uhi-bar-fill--orange {
  background-color: var(--uhi-orange);
}

/* Radar SVG Wrapper */
.uhi-radar-wrap {
  max-width: 360px;
  margin: 0 auto;
}

.uhi-radar-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Status Pills */
.uhi-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uhi-pill--complete {
  background-color: var(--uhi-lime);
  color: var(--uhi-green-dark);
}

.uhi-pill--partial {
  background-color: rgba(220, 232, 121, 0.18);
  color: var(--uhi-lime);
  border: 1px solid rgba(220, 232, 121, 0.45);
}

.uhi-pill--partial-light {
  background-color: var(--uhi-off-white);
  color: var(--uhi-green-dark);
  border: 1px solid var(--uhi-lime-muted);
}

.uhi-pill--advisory {
  background-color: var(--uhi-off-white);
  color: var(--uhi-green);
  border: 1px solid var(--uhi-grey);
}

/* Form Controls */
.input,
.select,
.textarea {
  min-height: 44px;
  border-color: var(--uhi-grey);
  background-color: var(--uhi-white);
  color: var(--uhi-green-dark);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--uhi-green);
  outline: 2px solid rgba(11, 81, 61, 0.2);
  outline-offset: 1px;
}

/* Footer */
.uhi-footer {
  background-color: var(--uhi-green-dark);
  color: var(--uhi-slate);
  border-top: 1px solid rgba(188, 195, 209, 0.16);
}

/* Print / PDF Summary */
@media print {
  html,
  body {
    background: #ffffff !important;
    color: #1c3530 !important;
  }

  .print-hide,
  .uhi-header,
  .uhi-footer {
    display: none !important;
  }

  .uhi-hero-panel {
    background: #1c3530 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .uhi-card {
    break-inside: avoid;
  }
}
