/* =============================================================================
   Advancement Popup Modal + Full-Page Styles
   ============================================================================= */

/* Modal size — wider than rest popup to accommodate skill lists */
.advancement-popup-panel {
  max-width: 540px;
  width: 90vw;
}

/* =============================================================================
   Skills Grouped Section — popup variant, grouped by parent-attribute
   ============================================================================= */

.skills-grouped-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skills-grouped-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.skill-group {
  display: flex;
  flex-direction: column;
}

.skill-group-header {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.5rem 0.2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
  margin-top: 0.5rem;
}

.skill-group:first-child .skill-group-header {
  margin-top: 0;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  cursor: default;
  transition: background 0.1s;
}

.skill-row:hover {
  background: var(--bg-hover);
}

.skill-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-transform: capitalize;
}

.skill-code {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 2.5rem;
  text-align: right;
}

.advance-preview {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* =============================================================================
   Milestone Info Section — Cairn / narrative-only systems
   ============================================================================= */

.milestone-info-section {
  padding: 0.5rem 0;
}

.milestone-info-section .text-muted {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================================================
   Mobile Responsive
   ============================================================================= */

@media (max-width: 480px) {
  .advancement-popup-panel {
    width: 95vw;
  }

  .skill-row {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .advance-preview {
    width: 100%;
    padding-left: 0.25rem;
  }
}
