/* =============================================================================
 * HRD-Mobile — R37 Talent / Career & Development (compact mobile-first)
 *
 * Presentation only. Consumes styles/tokens.css custom properties. No business
 * rules, no authority decisions. Mirrors the density of the demo card system.
 * ===========================================================================*/

.talent-hub,
.talent-area {
  display: grid;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) 0 var(--spacing-lg);
  min-width: 0;
}
.talent-hub *,
.talent-area *,
.talent-hub *::before,
.talent-area *::after,
.talent-card *,
.talent-list * {
  box-sizing: border-box;
}

.talent-header {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.talent-eyebrow {
  margin: 0;
  color: var(--color-action-primary);
  font-size: var(--typography-caption-font-size);
  font-weight: var(--typography-label-font-weight);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.talent-header h1 {
  margin: 0;
  font-size: var(--typography-heading-font-size);
  line-height: var(--typography-heading-line-height);
  font-weight: var(--typography-heading-font-weight);
}
.talent-demo-note {
  margin: 0;
  padding: var(--spacing-xxs) var(--spacing-sm);
  border-radius: var(--radius-control);
  background: #fef3c7;
  color: #92400e;
  font-size: var(--typography-caption-font-size);
  line-height: var(--typography-caption-line-height);
}

.talent-section {
  display: grid;
  gap: var(--spacing-xxs);
  min-width: 0;
}
.talent-section-title {
  margin: var(--spacing-xxs) 0 0;
  font-size: var(--typography-label-font-size);
  line-height: var(--typography-label-line-height);
  font-weight: var(--typography-heading-font-weight);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hub entry cards (ME → Career & Development → area) */
.talent-hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  width: 100%;
  min-width: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-card);
  background: var(--color-surface-default);
  box-shadow: var(--elevation-low);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
}
.talent-hub-card:active {
  background: var(--color-surface-subtle);
}
.talent-hub-card-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.talent-hub-card-copy strong {
  font-size: var(--typography-label-font-size);
  font-weight: var(--typography-heading-font-weight);
  overflow-wrap: anywhere;
}
.talent-arrow {
  flex: 0 0 auto;
  color: var(--color-text-secondary);
  font-size: 20px;
  line-height: 1;
}

/* Area detail card */
.talent-card {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-card);
  background: var(--color-surface-default);
  box-shadow: var(--elevation-low);
}
.talent-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xxs);
}
.talent-card-head h3 {
  margin: 0;
  font-size: var(--typography-label-font-size);
  font-weight: var(--typography-heading-font-weight);
  overflow-wrap: anywhere;
}
.talent-meta {
  margin: 2px 0;
  color: var(--color-text-secondary);
  font-size: var(--typography-caption-font-size);
  line-height: var(--typography-caption-line-height);
  overflow-wrap: anywhere;
}
.talent-empty {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--typography-caption-font-size);
}
.talent-note {
  margin: var(--spacing-xxs) 0 0;
  color: var(--color-text-secondary);
  font-size: 11px;
  line-height: 1.4;
  border-top: 1px dashed var(--color-border-default);
  padding-top: var(--spacing-xxs);
}
.talent-state {
  display: grid;
  gap: var(--spacing-xxs);
}
.talent-state strong {
  font-size: var(--typography-label-font-size);
}
.talent-error {
  border-color: #fecaca;
  background: #fef2f2;
}
.talent-error strong {
  color: var(--color-status-danger);
}

/* List rows (competency / IDP / learning / certification / MCU / team) */
.talent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--spacing-xxs);
}
.talent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-control);
  background: var(--color-surface-subtle);
  min-width: 0;
}
.talent-row-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.talent-row-copy strong {
  font-size: var(--typography-caption-font-size);
  font-weight: var(--typography-heading-font-weight);
  overflow-wrap: anywhere;
}

/* Chips (availability / status) */
.talent-chip {
  flex: 0 0 auto;
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.5;
}
.talent-chip--ok {
  background: #dcfce7;
  color: #15803d;
}
.talent-chip--warn {
  background: #fef3c7;
  color: #b45309;
}
.talent-chip--error {
  background: #fee2e2;
  color: #b91c1c;
}
.talent-chip--muted {
  background: var(--color-surface-subtle);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-default);
}

/* Progress (goals) */
.talent-progress {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  overflow: hidden;
  border: 1px solid var(--color-border-default);
  margin: var(--spacing-xxs) 0;
}
.talent-progress > span {
  display: block;
  height: 100%;
  background: var(--color-action-primary);
}

.talent-back-btn {
  justify-self: start;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-action-primary);
  font: inherit;
  font-weight: var(--typography-label-font-weight);
  font-size: var(--typography-label-font-size);
  min-height: 40px;
  padding: var(--spacing-xxs) 0;
  cursor: pointer;
}
.talent-back-btn:focus-visible {
  outline: 2px solid var(--color-action-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
